/* --- 0. VARIABLES --- */
:root {
    /* Colors - Light Theme Only */
    --bg-body-start: #f8fafc;    /* Top of screen (White-ish) */
    --bg-body-end: #e2e8f0;      /* Bottom of screen (Light Gray) */
    --bg-nav: rgba(255, 255, 255, 0.95); /* Slightly transparent white for Glass effect */
    
    --text-main: #334155;        
    --text-heading: #0f172a;     
    
    /* Nav Buttons */
    --nav-btn-bg: #f1f5f9;       
    --nav-btn-text: #475569;     
    --nav-btn-hover: #e2e8f0;    
    --nav-btn-active-text: #0f172a; 

    /* Verdict Box (Golden Gradient) */
    --verdict-bg-start: #fffbeb; 
    --verdict-bg-end: #fff7ed;   
    --verdict-border: #fcd34d;   
    --rating-text: #4f46e5;      
    
    /* CTA Button (Emerald Gradient) */
    --btn-cta-start: #10b981;    /* Lighter Green */
    --btn-cta-end: #047857;      /* Darker Green */
    --btn-cta-text: #ffffff;
    
    /* Container */
    --container-bg: #ffffff;
}

/* --- 1. RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    
    /* GRADIENT BACKGROUND */
    background: linear-gradient(to bottom, var(--bg-body-start), var(--bg-body-end));
    min-height: 100vh; /* Ensures gradient stretches full height */
}

/* --- 2. NAVIGATION (Glassmorphism & Grid) --- */
nav {
    width: 100%;             
    height: 70px;            
    background-color: var(--bg-nav);
    backdrop-filter: blur(10px); /* Blurs content behind the header (Apple style) */
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); 
    
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px;

    /* THE GRID SYSTEM */
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center; 
}

/* Logo - Column 1 */
.logo {
    grid-column: 1;
    justify-self: start; 
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    white-space: nowrap; 
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%); 
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

/* Keep logo text visible on hover — nav .logo:hover has higher specificity than nav a:hover */
nav .logo:hover {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Nav Wrapper - Column 2 */
.nav-links {
    grid-column: 2;
    justify-self: center; 
    display: flex;
    gap: 10px;
}

/* Nav Buttons */
nav a {
    text-decoration: none;       
    background: linear-gradient(135deg, #f1f5f9 0%, #dbeafe 100%); /* Enhanced gradient */
    color: var(--nav-btn-text);
    padding: 8px 20px;           
    border-radius: 99px;         
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap; 
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
}

/* Active page indicator - scales up the button */
nav a.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

nav a:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--nav-btn-active-text);
    transform: scale(0.95); /* Shrinks on hover */
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

/* Active page doesn't shrink on hover, only changes color slightly */
nav a.active:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: scale(1.08); /* Maintains size */
}

/* Click animation - shake effect */
nav a:active {
    animation: buttonPress 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes buttonPress {
    0% { transform: scale(1); }
    10% { transform: scale(1.15) rotate(0deg); }
    20% { transform: scale(1.15) rotate(-3deg); }
    30% { transform: scale(1.15) rotate(3deg); }
    40% { transform: scale(1.15) rotate(-3deg); }
    50% { transform: scale(1.15) rotate(3deg); }
    60% { transform: scale(1.15) rotate(-2deg); }
    70% { transform: scale(1.15) rotate(2deg); }
    80% { transform: scale(1.15) rotate(0deg); }
    90% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Shake nearby buttons when one is clicked */
nav a:active ~ a,
nav:has(a:active) a:not(:active) {
    animation: neighborShake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes neighborShake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    20% { transform: translateX(-2px) rotate(-1deg); }
    40% { transform: translateX(2px) rotate(1deg); }
    60% { transform: translateX(-2px) rotate(-1deg); }
    80% { transform: translateX(2px) rotate(1deg); }
}

/* Keyboard focus styles for accessibility */
nav a:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
    background-color: var(--nav-btn-hover);
}

/* --- 3. CONTAINER --- */
.container {
    max-width: 800px;        
    margin: 40px auto;       
    padding: 40px;           
    background-color: var(--container-bg);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.01);
}

/* --- 4. TYPOGRAPHY --- */
h1 { 
    font-size: 2.5rem; 
    line-height: 1.2; 
    margin-bottom: 20px; /* Spacing below title */
    color: var(--text-heading); 
    font-weight: 800; 
    letter-spacing: -0.02em;
}

h2 { 
    font-size: 1.75rem; 
    margin-top: 50px; 
    margin-bottom: 30px; /* Added bottom margin instead of border */
    color: var(--text-heading); 
    font-weight: 800;
}

h3 { margin-bottom: 15px; color: var(--text-heading); font-weight: 800;}
p { margin-bottom: 25px; font-size: 1.125rem; } 

/* --- 5. COMPONENTS --- */

/* Verdict Box (Enhanced Golden Gradient) */
.verdict-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 40%, #fde68a 100%);
    border: 2px solid #fbbf24;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 35px;
    box-shadow: 
        0 4px 14px rgba(251, 191, 36, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.rating {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--rating-text);
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

/* CTA Button (Enhanced Emerald Gradient) */
.cta-button {
    display: block;          
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: var(--btn-cta-text);
    padding: 18px 36px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 12px;
    width: 100%;             
    text-align: center;
    margin-top: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 14px rgba(5, 150, 105, 0.4),
        0 2px 6px rgba(5, 150, 105, 0.2),
        inset 0 -2px 8px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

/* Animated shimmer effect */
.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, 
        transparent 0%, 
        rgba(255,255,255,0.3) 45%,
        rgba(255,255,255,0.5) 50%,
        rgba(255,255,255,0.3) 55%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    transform: translateX(-100%);
}

.cta-button:hover { 
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 25px rgba(5, 150, 105, 0.5),
        0 5px 12px rgba(5, 150, 105, 0.3),
        inset 0 -2px 8px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.cta-button:hover::before {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 
        0 5px 15px rgba(5, 150, 105, 0.4),
        inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Keyboard focus styles */
.cta-button:focus-visible {
    outline: 3px solid #10b981;
    outline-offset: 3px;
}

/* Pros and Cons */
.pros-cons {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.pros, .cons {
    flex: 1;
    padding: 30px;
    border-radius: 12px;
    text-align: center;      
}

/* Light mode Pros/Cons with Enhanced Gradients */
.pros { 
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
    border: 2px solid #86efac;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.cons { 
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 50%, #fecaca 100%);
    border: 2px solid #fca5a5;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.pros h3 { color: #166534; margin-top: 0; }
.cons h3 { color: #991b1b; margin-top: 0; }

.pros ul, .cons ul { padding: 0; margin: 0; list-style: none; }
.pros li, .cons li { margin-bottom: 10px; font-weight: 500; }

/* --- 6. MOBILE RESPONSIVE --- */
@media (max-width: 600px) {
    nav {
        display: flex !important;       
        flex-direction: column;         
        height: auto !important;        
        padding: 15px !important;
        gap: 15px;
    }
    
    .logo {
        width: 100%;
        text-align: center;            
    }

    .nav-links {
        display: flex !important;      
        flex-direction: row !important;
        flex-wrap: wrap;               
        justify-content: center;       
        width: 100%;
        gap: 10px;
    }

    /* Improved touch targets for mobile */
    nav a {
        padding: 12px 18px;
        font-size: 0.9rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .container { 
        margin: 20px auto; 
        padding: 20px; 
        border-radius: 0;    
        box-shadow: none;    
    }
    
    .pros-cons { flex-direction: column; gap: 20px; }
}

/* Review Cards for Home Page */
.review-card {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.review-header {
    margin-bottom: 15px;
}

.review-card h3 {
    color: var(--text-heading);
    font-size: 1.4rem;
}

.review-card p {
    color: var(--text-main);
    margin-bottom: 20px;
}

.review-card .cta-button {
    margin-top: 0;
}

/* =============================================================
   7. ARTICLE ENHANCEMENTS
   ============================================================= */

/* --- Better body font --- */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

article p,
article li {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

/* Article body text — slightly larger, more breathing room */
article p {
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 24px;
    color: #374151;
}

/* Bold text inside paragraphs — darker for contrast */
article p strong {
    color: #1e293b;
}

/* --- h2 section dividers --- */
article h2 {
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

/* --- Nicer inline lists --- */
article > ul,
article > div > ul {
    list-style: none;
    padding-left: 0;
}

article > ul > li,
article > div > ul > li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}

article > ul > li::before,
article > div > ul > li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: 600;
}

/* --- Pros/Cons text alignment fix --- */
.pros li, .cons li {
    text-align: left;
    padding: 6px 0;
    line-height: 1.6;
}

/* --- Review card bottom accent on hover --- */
.review-card {
    position: relative;
    overflow: hidden;
}

.review-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.review-card:hover::after {
    transform: scaleX(1);
}

/* --- Review card rating as pill --- */
.review-card .rating {
    display: inline-block;
    padding: 3px 12px;
    background: #eff6ff;
    border-radius: 99px;
    color: #3b82f6;
    font-size: 0.8rem;
}

/* --- Smooth scroll & selection color --- */
html {
    scroll-behavior: smooth;
}

::selection {
    background: #bfdbfe;
    color: #1e293b;
}

/* --- Mobile adjustments --- */
@media (max-width: 600px) {
    article p {
        font-size: 1rem;
        line-height: 1.75;
    }
}