/* ═══════════════════════════════════════════════════════════
   Crypto Exchange — Responsive
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .header-inner { gap: 12px; }
  .hero-section { padding: 48px 0; }
  .hero-section h1, .hero-title { font-size: 1.8rem; }
  .hero-section p, .hero-subtitle { font-size: 1rem; }
  .footer-grid { gap: 30px; }
  .archive-hero h1 { font-size: 1.6rem; }
  .archive-hero p { font-size: .9rem; }
  .author-bio { flex-direction: column; text-align: center; }
  .author-bio img { margin: 0 auto 12px; }
  .exchange-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .exchange-table { min-width: 600px; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .site-header .container { padding: 8px 16px; }
  .header-inner { flex-wrap: wrap; position: relative; }
  .site-branding { flex: 1; min-width: 0; }
  .site-title { font-size: 1.1rem; }
  .site-description { display: none; }
  .header-auth-btns { order: 5; margin-left: auto; }
  .header-auth-btns a { padding: 5px 10px; font-size: .78rem; }
  .menu-toggle { order: 6; margin-left: 8px; }
  .search-toggle { order: 7; }
  .lang-switcher { order: 4; }
  .header-search-form { width: 100%; order: 10; padding: 8px 0; }
  .header-search-form input { width: 100%; font-size: 14px; }
  .market-data-strip .container { gap: 16px; padding: 0 12px; }
  .market-strip-item { font-size: .72rem; }
  .hero-section { padding: 24px 0; min-height: auto; }
  .hero-section h1, .hero-title { font-size: 1.4rem; line-height: 1.3; }
  .hero-section p, .hero-subtitle { font-size: .9rem; margin-bottom: 16px; }
  .hero-section .hero-btn { padding: 10px 28px; font-size: .9rem; }
  .section-title { font-size: 1.15rem; }
  .section { padding: 28px 0; }
  .steps-section, .features-section { padding: 28px 0; }

  /* Stats Mobile */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item { padding: 16px 12px; }
  .stat-icon { font-size: 1.4rem; }
  .stat-number { font-size: 1.5rem; }

  /* Exchange Grid Mobile */
  .exchange-grid { gap: 16px; }
  .exchange-card { padding: 16px; margin-bottom: 12px; }
  .exchange-card h3 { font-size: 1rem; }
  .ticker-section .container > div[style*="grid"] { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .price-ticker > div[style*="grid"] { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ticker-grid { grid-template-columns: 1fr; gap: 10px; }
  .ticker-item { padding: 14px; }
  .exchange-compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .exchange-compare table { min-width: 500px; }
  #gainers-losers > div[style*="grid"] { grid-template-columns: 1fr; }

  /* FAQ Mobile */
  .faq-item { padding: 14px 16px; }
  .faq-item summary { font-size: .9rem; }

  /* Featured Posts Mobile */
  .featured-posts { padding: 32px 0; }
  .section-header-row { margin-bottom: 16px; }
  .featured-posts-grid[data-columns="3"] { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .post-card .post-body { padding: 12px; }
  .post-card .post-title { font-size: .9rem; margin-bottom: 6px; }
  .post-card .post-meta { font-size: .7rem; gap: 5px 8px; padding-top: 8px; flex-wrap: wrap; }
  .post-card .post-meta .post-meta-sep { display: none; }
  .post-card .post-meta .post-author { flex: 1 1 100%; }
  .post-excerpt { font-size: .78rem; -webkit-line-clamp: 2; margin-bottom: 8px; }

  /* Single Post Mobile */
  .post-detail .featured-image-wrap { aspect-ratio: 16/9; max-height: 280px; }
  .post-detail .featured-image-content { bottom: 20px; left: 20px; right: 20px; }
  .post-detail .post-title-overlay { font-size: 1.2rem; }
  .post-meta-bar { padding: 12px 20px; gap: 10px; font-size: .78rem; }
  .post-content { padding: 20px; font-size: .92rem; line-height: 1.85; }
  .post-content h2 { font-size: 1.2rem; }
  .post-content h3 { font-size: 1.05rem; }
  .post-content blockquote { padding: 16px; margin: 16px 0; }
  .post-content img { margin: 16px 0; }
  .post-content pre { padding: 14px; font-size: .8rem; }
  .post-tags { padding: 16px 20px; }
  .author-bio { padding: 20px; margin: 20px; flex-direction: column; text-align: center; align-items: center; }
  .author-bio img { width: 48px; height: 48px; margin: 0 auto 10px; }
  .author-bio-name { text-align: center; }
  .author-bio-desc { text-align: center; }
  .author-bio a { display: block; text-align: center; }
  .post-nav-grid { grid-template-columns: 1fr; }
  .post-nav-link { padding: 14px; }

  /* Testimonials Mobile */
  .testimonials-section { padding: 32px 0; }
  .testimonial-card { width: 260px; padding: 16px; }
  .testimonial-avatar { width: 36px; height: 36px; font-size: .9rem; }
  .testimonial-name { font-size: .82rem; }
  .testimonial-role { font-size: .7rem; }
  .testimonial-quote { font-size: .8rem; line-height: 1.6; }
  .testimonial-stars { font-size: .75rem; }

  /* Sidebar Mobile */
  .main-layout { flex-direction: column; gap: 24px; padding: 24px 0; }
  .content-area > .archive-hero-card { margin-bottom: 14px; }
  .content-area > .archive-hero-card > .archive-hero,
  .content-area > .archive-hero { padding: 14px 0; margin-bottom: 12px; }
  .content-area > .archive-hero .archive-hero-card,
  .content-area > .archive-hero-card { padding: 16px; }
  .archive-hero-title { font-size: 1.35rem; line-height: 1.25; margin-bottom: 6px; }
  .archive-hero-desc { font-size: .82rem; line-height: 1.5; margin-bottom: 6px; }
  .archive-hero-meta { gap: 6px 10px; line-height: 1.5; }
  .subcategory-nav { margin: 10px 0 16px; padding: 8px 0; gap: 8px; }
  .widget-area { width: 100%; }
  .widget { padding: 18px; margin-bottom: 16px; }
  .widget-title { font-size: .85rem; margin-bottom: 14px; padding-bottom: 10px; }
  .widget ul li { padding: 8px 0; }
  .widget ul li a { font-size: .82rem; }

  /* Search Widget Mobile */
  .widget_search .search-field { padding: 10px 14px; font-size: .88rem; }

  /* Custom Widgets Mobile */
  .featured-post-link { padding: 8px; gap: 10px; }
  .featured-post-thumb { width: 52px; height: 52px; border-radius: 6px; }
  .featured-post-title { font-size: .82rem; }
  .featured-post-date { font-size: .68rem; }
  .popular-post-item { padding-left: 30px; padding-bottom: 10px; margin-bottom: 10px; }
  .popular-post-counter { width: 20px; height: 20px; font-size: .65rem; }
  .popular-post-title { font-size: .82rem; }
  .widget-social-icons { gap: 6px; }
  .widget-social-icon { padding: 6px 10px; font-size: .75rem; }
  .widget-price-item { padding: 10px 0; }
  .widget-price-icon { width: 28px; height: 28px; font-size: .7rem; }
  .widget-price-symbol { font-size: .82rem; }
  .widget-price-data .wprice { font-size: .82rem; }

  /* Footer Mobile */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-about { grid-column: span 2; }
  .footer-col-title { font-size: .9rem; margin-bottom: 12px; }
  .footer-about-text { font-size: .8rem; }
  .footer-newsletter .container { flex-direction: column; gap: 16px; text-align: center; }
  .footer-newsletter form { width: 100%; }
  .footer-social { gap: 8px; }
  .footer-social a { width: 36px; height: 36px; font-size: .8rem; }
  .footer-badges { gap: 8px; }
  .footer-badges > div, .footer-badges > span { font-size: .7rem; padding: 4px 10px; }
  .footer-disclaimer { font-size: .72rem; padding: 12px 0; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }

  /* Pagination Mobile */
  .pagination, .nav-links { gap: 4px; }
  .pagination a, .nav-links a { padding: 6px 12px; font-size: .85rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .section { padding: 32px 0; }
  .section-title { font-size: 1.1rem; }
  .hero-section h1, .hero-title { font-size: 1.2rem; }
  .hero-section { padding: 24px 0; }
  .ticker-section .container > div[style*="grid"] { grid-template-columns: 1fr; }
  .exchange-card { border-radius: 8px; padding: 12px; }
  .content-area > .archive-hero-card > .archive-hero,
  .content-area > .archive-hero { padding: 10px 0; margin-bottom: 10px; }
  .content-area > .archive-hero .archive-hero-card,
  .content-area > .archive-hero-card { padding: 14px; }
  .archive-hero-title { font-size: 1.2rem; margin-bottom: 4px; }
  .archive-hero-meta { font-size: .76rem; }
  .archive-hero-badge { padding: 4px 8px; }

  /* Stats Small Mobile */
  .stats-grid { gap: 12px; }
  .stat-item { padding: 12px 8px; }
  .stat-icon { font-size: 1.2rem; }
  .stat-number { font-size: 1.3rem; }
  .stat-label { font-size: .72rem; }

  /* Featured Posts Small Mobile */
  .featured-posts { padding: 24px 0; }
  .featured-posts-grid[data-columns="3"] { grid-template-columns: 1fr; gap: 12px; }
  .post-card .post-body { padding: 10px; }
  .post-card .post-title { font-size: .85rem; margin-bottom: 4px; }
  .post-card .post-meta { font-size: .65rem; gap: 4px 7px; flex-wrap: wrap; }
  .post-card .post-meta .post-meta-sep { display: none; }
  .post-card .post-meta .post-author { flex: 1 1 100%; }
  .post-card .post-cat { font-size: .55rem; padding: 1px 5px; }
  .post-excerpt { font-size: .75rem; -webkit-line-clamp: 2; margin-bottom: 6px; }

  /* Single Post Small Mobile */
  .post-detail .featured-image-wrap { max-height: 200px; }
  .post-detail .featured-image-content { bottom: 14px; left: 14px; right: 14px; }
  .post-detail .post-title-overlay { font-size: 1rem; }
  .post-detail .category-badge-link { font-size: .65rem; padding: 2px 8px; }
  .post-meta-bar { padding: 10px 14px; gap: 8px; font-size: .72rem; }
  .post-meta-bar .meta-avatar { width: 22px; height: 22px; }
  .post-content { padding: 16px 14px; font-size: .88rem; line-height: 1.75; }
  .post-content h2 { font-size: 1.1rem; margin-top: 1.5em; }
  .post-content h3 { font-size: 1rem; }
  .post-content blockquote { padding: 12px; margin: 12px 0; }
  .post-content pre { padding: 10px; font-size: .75rem; }
  .post-content table { font-size: .78rem; }
  .post-content table th, .post-content table td { padding: 6px 8px; }
  .post-tags { padding: 12px 14px; }
  .post-tags a { padding: 3px 8px; font-size: .7rem; }
  .author-bio { padding: 14px; margin: 14px 0; flex-direction: column; text-align: center; align-items: center; }
  .author-bio img { width: 40px; height: 40px; margin: 0 auto 8px; }
  .author-bio-name { font-size: .85rem; text-align: center; }
  .author-bio-desc { font-size: .78rem; text-align: center; }
  .author-bio a { display: block; text-align: center; }
  .post-nav-link { padding: 12px; }
  .post-nav-link .nav-title { font-size: .82rem; }

  /* Testimonials Small Mobile */
  .testimonials-section { padding: 24px 0; }
  .testimonial-card { width: 240px; padding: 12px; }
  .testimonial-header { gap: 8px; margin-bottom: 8px; }
  .testimonial-avatar { width: 30px; height: 30px; font-size: .75rem; }
  .testimonial-name { font-size: .75rem; }
  .testimonial-role { font-size: .62rem; }
  .testimonial-quote { font-size: .72rem; line-height: 1.5; }
  .testimonial-stars { font-size: .65rem; letter-spacing: 1px; }

  /* Widget Small Mobile */
  .widget { padding: 14px; margin-bottom: 12px; }
  .widget-title { font-size: .8rem; margin-bottom: 10px; }
  .widget ul li { padding: 6px 0; }
  .widget ul li a { font-size: .78rem; }
  .featured-post-link { padding: 6px; gap: 8px; }
  .featured-post-thumb { width: 46px; height: 46px; }
  .featured-post-title { font-size: .78rem; }
  .popular-post-item { padding-left: 26px; }
  .popular-post-counter { width: 18px; height: 18px; font-size: .6rem; }
  .popular-post-title { font-size: .78rem; }
  .widget-social-icon { padding: 5px 8px; font-size: .7rem; }

  /* Footer Small Mobile */
  .footer-main { padding: 32px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-about { grid-column: span 1; }
  .footer-col-title { font-size: .82rem; }
  .footer-about-text { font-size: .75rem; }
  .footer-newsletter h3 { font-size: 1rem; }
  .footer-newsletter p { font-size: .8rem; }
  .footer-newsletter input { padding: 8px 12px; font-size: .82rem; }
  .footer-newsletter button { padding: 8px 16px; font-size: .82rem; }
  .footer-bottom-links { gap: 6px 12px; }
  .footer-bottom-links a { font-size: .72rem; }

  /* Pagination Small Mobile */
  .pagination a, .pagination .current { padding: 5px 10px; font-size: .8rem; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-section { min-height: 50vh; padding: 24px 0; }
  .main-nav { max-height: 90vh; }
}

@media (max-width: 768px) {
  .post-share-collapsible {
    display: block !important;
  }
  .post-share-collapsible .share-summary {
    display: flex !important;
  }
  .post-share-collapsible .share-buttons-row {
    display: none !important;
  }
  .post-share-collapsible.open .share-buttons-row {
    display: flex !important;
  }
}
