/**
 * Multiple Dark News Ultra - Main Stylesheet
 * Design System: Premium dark/light theme with glassmorphism
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Primary Colors */
    --color-primary: #e63946;
    --color-primary-dark: #c1121f;
    --color-primary-light: #f4a4a8;
    
    /* Secondary Colors */
    --color-secondary: #6c5ce7;
    --color-secondary-dark: #5b4cdb;
    --color-secondary-light: #a29bfe;
    
    /* Accent Colors */
    --color-accent: #00b4d8;
    --color-accent-dark: #0096c7;
    --color-accent-light: #90e0ef;
    
    /* Additional Colors */
    --color-orange: #f39c12;
    --color-green: #27ae60;
    --color-pink: #e84393;
    
    /* Dark Theme (Default) */
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: rgba(26, 26, 46, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --text-muted: #6c757d;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    
    /* Gradients */
    --gradient-red: linear-gradient(135deg, #e63946 0%, #9d0208 100%);
    --gradient-purple: linear-gradient(135deg, #6c5ce7 0%, #4834d4 100%);
    --gradient-blue: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    --gradient-orange: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    --gradient-green: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    --gradient-pink: linear-gradient(135deg, #e84393 0%, #d63031 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #0f0f0f 100%);
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow-red: 0 0 30px rgba(230, 57, 70, 0.3);
    --shadow-glow-purple: 0 0 30px rgba(108, 92, 231, 0.3);
    --shadow-glow-blue: 0 0 30px rgba(0, 180, 216, 0.3);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-tooltip: 400;
    --z-toast: 500;
    
    /* Container */
    --container-max: 1400px;
    --container-padding: 1rem;
}

/* Light Theme */
[data-theme="light"],
.light-mode {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(0, 0, 0, 0.03);
    
    --text-primary: #0f0f0f;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    
    --border-color: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.05);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ============================================
   BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-base), color var(--transition-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Gradient Backgrounds */
.gradient-red { background: var(--gradient-red); }
.gradient-purple { background: var(--gradient-purple); }
.gradient-blue { background: var(--gradient-blue); }
.gradient-orange { background: var(--gradient-orange); }
.gradient-green { background: var(--gradient-green); }
.gradient-pink { background: var(--gradient-pink); }
.gradient-dark { background: var(--gradient-dark); }
.gradient-hero { background: var(--gradient-hero); }

/* Text Colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-red { color: var(--color-primary); }
.text-purple { color: var(--color-secondary); }
.text-blue { color: var(--color-accent); }

/* Glass Effect */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ============================================
   HEADER STYLES
   ============================================ */
.breaking-news-bar {
    background: var(--gradient-red);
    padding: 0.5rem 0;
    font-size: var(--text-sm);
}

.breaking-news-inner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.breaking-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.pulse {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.ticker-content {
    display: flex;
    gap: var(--space-xl);
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.ticker-item:hover {
    color: white;
}

/* Header Main */
.header-ad-wrapper {
    background: var(--bg-secondary);
    padding: var(--space-md) 0;
    text-align: center;
}

.site-header {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: var(--z-sticky);
}

.sticky-header {
    position: sticky;
    top: 0;
}

.header-main {
    padding: var(--space-md) 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

/* Site Branding */
.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-description {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
}

/* Navigation */
.main-navigation {
    flex: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu li.active > a {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.dropdown-arrow {
    display: flex;
    transition: transform var(--transition-fast);
}

.nav-menu li:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu a {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
}

.sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.search-toggle,
.dark-mode-toggle,
.mobile-menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.search-toggle:hover,
.dark-mode-toggle:hover,
.mobile-menu-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dark-mode-toggle .toggle-moon {
    display: none;
}

.dark-mode .dark-mode-toggle .toggle-sun {
    display: none;
}

.dark-mode .dark-mode-toggle .toggle-moon {
    display: block;
}

/* Mobile Menu Toggle */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.hamburger span:nth-child(1) { width: 100%; }
.hamburger span:nth-child(2) { width: 75%; }
.hamburger span:nth-child(3) { width: 50%; }

.mobile-menu-toggle:hover .hamburger span {
    width: 100%;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: var(--z-modal);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    width: 100%;
    max-width: 700px;
    padding: 0 var(--space-lg);
}

.search-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: white;
    font-size: var(--text-2xl);
    cursor: pointer;
}

.search-form {
    position: relative;
}

.search-field {
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    padding-right: 60px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
}

.search-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow-red);
}

.search-submit {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-red);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
}

.search-suggestions {
    margin-top: var(--space-lg);
    color: white;
}

.suggestion-section h4 {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
    opacity: 0.7;
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.trending-tags .tag {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.trending-tags .tag:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 242, 250, 0.863);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background: var(--bg-card);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-title {
    font-size: var(--text-xl);
    font-weight: 600;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-menu a {
    display: block;
    padding: var(--space-md);
    color: var(--text-primary);
    font-weight: 500;
}

.mobile-menu-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-secondary);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.breadcrumb-list a {
    color: var(--text-secondary);
}

.breadcrumb-list a:hover {
    color: var(--color-primary);
}

.breadcrumb-separator {
    display: flex;
    opacity: 0.5;
}

.breadcrumb-item.current {
    color: var(--text-primary);
}

/* Notification Bar */
.notification-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--gradient-red);
    color: white;
    padding: var(--space-md);
    transform: translateY(-100%);
    transition: transform var(--transition-base);
    z-index: var(--z-toast);
}

.notification-bar.active {
    transform: translateY(0);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: var(--text-xl);
    cursor: pointer;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-main {
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo img {
    max-height: 50px;
    width: auto;
    margin-bottom: var(--space-md);
}

.footer-site-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
}

.footer-description {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social .social-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: rgb(121, 9, 9);
}

.footer-column-title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.footer-menu li {
    margin-bottom: var(--space-sm);
}

.footer-menu a {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-menu a:hover {
    color: var(--color-primary);
}

/* Newsletter */
.footer-newsletter p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
}

.newsletter-form .form-group {
    display: flex;
    gap: var(--space-sm);
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.consent-checkbox input {
    margin-top: 2px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: var(--space-lg) 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.footer-menu-inline {
    display: flex;
    gap: var(--space-lg);
}

.footer-menu-inline a {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.footer-menu-inline a:hover {
    color: var(--color-primary);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-red);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    box-shadow: var(--shadow-glow-red);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-sticky);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-red);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   TOOLS HUB SECTION
   ============================================ */
.tools-hub-section {
    padding: var(--space-3xl) 0;
    min-height: auto;
}

.tools-hub-section .hero-title {
    margin-bottom: var(--space-md);
}

.tools-hub-section .hero-subtitle {
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.tools-search-box {
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
}

.search-form-large .search-input-wrapper {
    display: flex;
    gap: var(--space-sm);
    background: var(--bg-glass);
    padding: var(--space-sm);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.search-input-xl {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: var(--text-lg);
    padding: var(--space-md);
}

.search-input-xl::placeholder {
    color: var(--text-muted);
}

.search-category-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-base);
    cursor: pointer;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: white;
}

.tool-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.tool-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.home-search-results {
    margin-top: var(--space-2xl);
}

/* ============================================
   MOBILE ZOOM PREVENTION
   ============================================ */
@media screen and (max-width: 768px) {
    /* Prevent zoom on input focus */
    input[type="text"],
    input[type="search"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }
    
    /* Viewport zoom control */
    @viewport {
        zoom: 1.0;
        min-zoom: 1.0;
        max-zoom: 1.0;
        user-zoom: fixed;
    }
}

/* ============================================
   RESPONSIVE STYLES - MOBILE FIRST
   ============================================ */

/* Large Desktop */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 992px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Grid adjustments */
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet */
@media (max-width: 992px) {
    :root {
        --text-6xl: 2.5rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
    }
    
    .container {
        max-width: 768px;
    }
    
    /* Navigation */
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero section */
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    /* Grid layouts */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Content layout */
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
    }
    
    /* Tool filters */
    .filter-row {
        flex-direction: column;
    }
    
    .filter-selects {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Featured sections */
    .featured-article {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    
    /* Single post */
    .entry-title {
        font-size: var(--text-3xl);
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --space-3xl: 2.5rem;
        --space-2xl: 2rem;
        --space-xl: 1.5rem;
    }
    
    .container {
        max-width: 100%;
        padding: 0 var(--container-padding);
    }
    
    /* Breaking news */
    .breaking-news-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .ticker-wrapper {
        width: 100%;
    }
    
    /* Header */
    .site-header .container {
        height: 60px;
    }
    
    .site-logo img {
        max-height: 40px;
    }
    
    /* Hero */
    .hero-section {
        padding: var(--space-2xl) 0;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-search-box {
        flex-direction: column;
    }
    
    .hero-search-box .btn {
        width: 100%;
    }
    
    /* Grid - Single column */
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr;
    }
    
    /* Cards */
    .card {
        max-width: 100%;
    }
    
    .card-image {
        aspect-ratio: 16 / 9;
    }
    
    /* Tool filters mobile */
    .tool-filters {
        padding: var(--space-md);
    }
    
    .filter-search {
        flex-direction: column;
    }
    
    .filter-search .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-selects {
        grid-template-columns: 1fr;
    }
    
    .filter-tags {
        flex-wrap: wrap;
    }
    
    /* Results grid */
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    /* Movies grid */
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .footer-menu-inline {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    /* Single post */
    .entry-header {
        padding: var(--space-lg) 0;
    }
    
    .entry-title {
        font-size: var(--text-2xl);
    }
    
    .entry-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .author-info {
        justify-content: center;
    }
    
    /* Author box */
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    /* Comments */
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Mobile menu */
    .mobile-menu {
        width: 100%;
        max-width: 320px;
    }
    
    /* Search overlay */
    .search-overlay-content {
        padding: var(--space-lg);
    }
    
    .search-input-wrapper {
        flex-direction: column;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        flex-wrap: wrap;
        font-size: var(--text-sm);
    }
    
    /* Tabs */
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
    
    /* Tool header */
    .tool-header {
        padding: var(--space-xl) 0;
    }
    
    .tool-title {
        font-size: var(--text-3xl);
    }
    
    /* Featured vehicle/movie */
    .featured-vehicle-card,
    .featured-movie {
        grid-template-columns: 1fr;
    }
    
    .featured-vehicle-image,
    .featured-movie-poster {
        max-height: 250px;
    }
    
    /* Compare section */
    .compare-slots {
        flex-direction: column;
    }
    
    /* Job cards */
    .card-job .job-header {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .job-actions {
        flex-direction: column;
    }
    
    /* AI tools grid */
    .ai-tools-grid {
        grid-template-columns: 1fr;
    }
    
    /* Trending topics */
    .trending-topic {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xs);
    }
    
    /* Load more button */
    .load-more-wrapper {
        padding: var(--space-lg) 0;
    }
    
    /* Back to top */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: var(--space-md);
        right: var(--space-md);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --text-3xl: 1.25rem;
        --text-2xl: 1.125rem;
    }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .section-title {
        font-size: var(--text-xl);
    }
    
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .movie-card .movie-poster {
        aspect-ratio: 2 / 3;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .card-actions .btn {
        width: 100%;
    }
}

/* Hide post tags */
.post-tags,
.entry-footer .post-tags,
.single-post .post-tags {
    display: none !important;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .breaking-news-bar,
    .back-to-top,
    .ad-space {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
