/* ============================================
   US HOT NEWS - RESPONSIVE STYLES
   ============================================ */

/* Tablet Breakpoint */
@media (max-width: 1199px) {
  /* Typography */
  :root {
    --text-5xl: 36px;
    --text-4xl: 32px;
    --text-3xl: 28px;
  }

  /* Header */
  .header-content {
    gap: var(--space-lg);
  }

  .search-bar {
    max-width: 350px;
  }

  /* Layouts */
  .home-layout,
  .page-wrapper,
  .category-layout,
  .article-layout {
    gap: var(--space-lg);
  }

  .home-sidebar,
  .category-sidebar,
  .article-sidebar {
    width: 250px;
  }

  /* Grids */
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid.three-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hero */
  .hero-card {
    min-height: 350px;
  }

  .hero-headline {
    font-size: var(--text-3xl);
  }

  /* Article */
  .article-headline {
    font-size: 36px;
  }

  .article-body p {
    font-size: 17px;
  }

  /* Share Bar */
  .share-bar {
    display: none;
  }

  /* Footer */
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Breakpoint */
@media (max-width: 767px) {
  /* Typography */
  :root {
    --text-5xl: 28px;
    --text-4xl: 24px;
    --text-3xl: 22px;
    --text-2xl: 20px;
    --text-xl: 18px;
    --text-lg: 16px;
  }

  /* Top Bar */
  .top-bar {
    display: none;
  }

  /* Header */
  .main-header {
    padding: var(--space-md) 0;
  }

  .header-content {
    flex-wrap: wrap;
  }

  .logo-text {
    font-size: var(--text-3xl);
  }

  .search-bar {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin-top: var(--space-sm);
  }

  /* Primary Nav */
  .primary-nav {
    position: relative;
  }

  .nav-list {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  /* Sub Nav */
  .sub-nav {
    display: none;
  }

  /* Mobile Navigation */
  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    z-index: 1001;
  }

  .mobile-nav-list {
    padding: 0;
  }

  .mobile-nav-link {
    padding: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Ticker */
  .ticker-badge {
    padding: var(--space-xs) var(--space-sm);
    font-size: 10px;
  }

  /* Hero */
  .hero-section {
    padding: var(--space-md) 0;
  }

  .hero-card {
    min-height: 280px;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero-content {
    padding: var(--space-lg);
  }

  .hero-headline {
    font-size: var(--text-2xl);
  }

  .hero-summary {
    font-size: var(--text-base);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  /* Layouts */
  .home-layout,
  .page-wrapper,
  .category-layout {
    flex-direction: column;
    padding: var(--space-md);
  }

  .home-sidebar,
  .category-sidebar {
    width: 100%;
    order: 2;
  }

  .home-main,
  .category-main {
    order: 1;
  }

  /* Article Layout */
  .article-layout {
    flex-direction: column;
    padding: var(--space-md);
  }

  .article-main {
    max-width: none;
  }

  .article-sidebar {
    width: 100%;
    order: 2;
  }

  /* Section */
  .home-section {
    padding: var(--space-lg) 0;
  }

  /* Grids */
  .top-stories-grid,
  .two-col-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-grid.two-col {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  /* Sports Scores Bar */
  .sports-scores-bar {
    flex-direction: column;
    overflow-x: visible;
  }

  .sports-score-card {
    min-width: auto;
    width: 100%;
  }

  /* Category Banner */
  .category-banner {
    padding: var(--space-xl) 0;
  }

  .category-banner-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .category-icon {
    font-size: 48px;
  }

  .category-info h1 {
    font-size: var(--text-3xl);
  }

  /* Filter Bar */
  .filter-bar {
    position: static;
    padding: var(--space-sm) 0;
  }

  .filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
  }

  .filter-pill {
    flex-shrink: 0;
  }

  /* Subcategory Banner */
  .subcategory-banner {
    padding: var(--space-lg) 0;
  }

  .breadcrumb {
    font-size: var(--text-xs);
    flex-wrap: wrap;
  }

  /* Article */
  .article-headline {
    font-size: var(--text-2xl);
  }

  .article-body p {
    font-size: 16px;
    line-height: 1.7;
  }

  .article-body p:first-of-type::first-letter {
    font-size: 48px;
  }

  .article-body blockquote p {
    font-size: 18px;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .article-featured-image .image-placeholder {
    height: 250px;
  }

  /* Share Bar - Mobile */
  .article-share {
    position: fixed;
    left: auto;
    right: var(--space-sm);
    top: auto;
    bottom: var(--space-lg);
    transform: none;
    flex-direction: row;
    background: var(--white);
    padding: var(--space-sm);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
  }

  .share-button {
    width: 40px;
    height: 40px;
  }

  /* Sidebar */
  .sidebar {
    gap: var(--space-lg);
  }

  /* Footer - compact styles handled in footer.css */

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .legal-links {
    flex-direction: column;
    gap: var(--space-sm);
  }

  /* Ad Placeholders */
  .ad-leaderboard {
    height: 50px;
  }

  .ad-rectangle {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .ad-half-page {
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto;
  }

  /* Cards */
  .card {
    border-radius: var(--radius-sm);
  }

  .subcategory-card {
    margin-bottom: var(--space-lg);
  }

  .subcategory-card-image {
    height: 180px;
  }

  /* Buttons */
  .btn {
    width: 100%;
    justify-content: center;
  }

  /* Page Header */
  .page-header {
    padding: var(--space-xl) 0;
    text-align: center;
  }

  /* Contact Form */
  .contact-form {
    padding: var(--space-lg);
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
  }

  /* Section Header */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

/* Small Mobile */
@media (max-width: 374px) {
  :root {
    --text-5xl: 24px;
    --text-4xl: 20px;
    --text-3xl: 18px;
  }

  .logo-text {
    font-size: var(--text-2xl);
  }

  .hero-headline {
    font-size: var(--text-xl);
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .card:hover,
  .subcategory-card:hover {
    transform: none;
  }

  /* Increase tap targets */
  .nav-link {
    min-height: 44px;
  }

  .filter-pill {
    min-height: 36px;
  }

  .article-tag {
    min-height: 32px;
  }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-card {
    min-height: 200px;
  }

  .mobile-nav {
    max-height: 200px;
    overflow-y: auto;
  }
}

/* Print Styles */
@media print {
  .top-bar,
  .primary-nav,
  .sub-nav,
  .mobile-nav,
  .ticker-wrapper,
  .home-sidebar,
  .category-sidebar,
  .article-sidebar,
  .share-bar,
  .article-in-ad,
  .article-bottom-ad,
  .ad-placeholder {
    display: none !important;
  }
  /* Footer visible in print */

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .article-headline {
    font-size: 24pt;
  }

  .article-body p {
    font-size: 11pt;
    line-height: 1.5;
  }

  .article-body p::first-letter {
    font-size: inherit;
    float: none;
    padding: 0;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ticker-track {
    animation: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --gray-100: #FFFFFF;
    --gray-200: #E0E0E0;
    --gray-300: #CCCCCC;
    --gray-400: #999999;
    --gray-500: #777777;
    --gray-600: #555555;
    --gray-700: #444444;
    --gray-800: #000000;
  }

  .card,
  .sidebar-widget {
    border: 2px solid var(--gray-800);
  }

  .nav-link.active::after {
    height: 4px;
  }
}
