/* =========================================================================
 * STYLESHEET - /studio/assets/css/style.css 
 * Enhanced color psychology 60% 30% 10% 
 * Smooth animations & attractive locking
 * Fully mobile friendly responsive
 * ========================================================================= */

/* --- 1. Enhanced Root Variables & Reset --- */
:root {
    /* Enhanced Color Psychology - 60% Primary / 30% Secondary / 10% Accent */
    --primary-color: #2563eb;           /* 60% - Trust, Calm, Professional */
    --primary-light: #dbeafe;
    --primary-dark: #1e40af;
    --secondary-color: #475569;         /* 30% - Balance, Sophistication */
    --secondary-light: #f1f5f9;
    --accent-color: #dc2626;            /* 10% - Attention, Urgency */
    --accent-light: #fef2f2;
    
    /* Enhanced Neutral Palette */
    --text-color: #374151;
    --text-heading: #111827;
    --text-muted: #6b7280;
    --bg-color: #ffffff;
    --bg-subtle: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Enhanced Layout */
    --header-height: 70px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    
    /* Enhanced Shadows */
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-large: 0 20px 50px rgba(0, 0, 0, 0.15);
    
    /* Enhanced Transitions */
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-quick: 0.2s ease-out;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- 2. Enhanced Base & Typography --- */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Body Lock */
body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Enhanced Typography Scale */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h1 { 
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--text-heading) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 { 
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 { 
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Enhanced Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-smooth);
    position: relative;
}

a:hover {
    color: var(--primary-dark);
}

/* Enhanced Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.25rem;
}

.text-center { 
    text-align: center; 
}

/* --- 3. Enhanced Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-bounce);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-smooth);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--secondary-light);
    color: var(--secondary-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* --- 4. Enhanced Layout & Sections --- */
section {
    padding: 4rem 0;
    position: relative;
}

/* Enhanced Notification Bar */
.notification-bar {
    position: sticky;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #334155 100%);
    color: #fff;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.notification-bar p { 
    margin: 0;
    font-weight: 500;
}

.notification-bar.hidden { 
    transform: translateY(-100%);
    opacity: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    margin-left: 1rem;
    line-height: 1;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all var(--transition-quick);
}

.close-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

/* Enhanced Header */
.site-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all var(--transition-smooth);
}

body.notification-hidden .site-header {
    top: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Enhanced Logo */
.logo {
    display: flex;
    align-items: center;
    transition: transform var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 40px;
    width: auto;
    transition: all var(--transition-smooth);
}

/* Enhanced Mobile Navigation */
.main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    z-index: 998;
}

.main-nav.is-active {
    transform: translateX(0);
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.main-nav ul li a {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-smooth);
}

.main-nav ul li a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Enhanced Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: block;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 1001;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all var(--transition-smooth);
}

.mobile-nav-toggle:hover {
    background: var(--bg-subtle);
}

.hamburger-icon {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--text-heading);
    transition: all var(--transition-smooth);
    border-radius: 1px;
}

.hamburger-icon::before, .hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-heading);
    transition: all var(--transition-smooth);
    border-radius: 1px;
}

.hamburger-icon::before { 
    top: -8px; 
    transform-origin: center;
}

.hamburger-icon::after { 
    top: 8px; 
    transform-origin: center;
}

.nav-open .hamburger-icon { 
    background-color: transparent; 
}

.nav-open .hamburger-icon::before { 
    transform: rotate(45deg) translate(0, 8px); 
}

.nav-open .hamburger-icon::after { 
    transform: rotate(-45deg) translate(0, -8px); 
}

/* Enhanced Hero Section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-subtle) 0%, #f0f4ff 50%, var(--bg-subtle) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(71, 85, 105, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section .subtitle {
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Enhanced AdSense Placeholder */
.ad-unit {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-subtle);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--transition-smooth);
}

.ad-unit:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

#adsense-leaderboard { 
    min-height: 90px; 
    margin: 1rem 0;
}

#adsense-in-article { 
    min-height: 250px; 
    max-width: 300px; 
    margin: 2rem auto;
}

/* Enhanced Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-light);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card .icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, #e0e7ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-bounce);
}

.tool-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.tool-card .icon-wrapper svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    transition: all var(--transition-smooth);
}

.tool-card:hover .icon-wrapper svg {
    color: white;
}

.tool-card h3 { 
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tool-card p { 
    margin-bottom: 1.5rem; 
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Enhanced Trust Section */
.trust-section { 
    background: linear-gradient(135deg, var(--bg-subtle) 0%, #f8fafc 100%);
    position: relative;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

.trust-item { 
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-light);
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-light);
}

.trust-item .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--secondary-light) 0%, #f1f5f9 100%);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-bounce);
}

.trust-item:hover .icon-wrapper {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-light) 0%, #e0e7ff 100%);
    border-color: var(--primary-color);
}

.trust-item .icon-wrapper svg {
    width: 32px;
    height: 32px;
    color: var(--secondary-color);
    transition: all var(--transition-smooth);
}

.trust-item:hover .icon-wrapper svg {
    color: var(--primary-color);
    transform: scale(1.1);
}

.trust-item h3 { 
    font-size: 1.2rem; 
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Enhanced Footer */
.site-footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #334155 100%);
    color: #e2e8f0;
    text-align: center;
    padding: 3rem 0 2rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #cbd5e1;
    transition: all var(--transition-smooth);
}

.footer-links a:hover {
    color: white;
    transform: translateY(-2px);
}

/* --- 5. Enhanced Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for grid items */
.tools-grid .tool-card,
.trust-grid .trust-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tools-grid .tool-card.visible,
.trust-grid .trust-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 6. Enhanced Media Queries (Mobile-First) --- */

/* Tablet */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .hero-section {
        padding: 6rem 0;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .mobile-nav-toggle { 
        display: none; 
    }
    
    /* Enhanced Desktop Navigation */
    .main-nav {
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        backdrop-filter: none;
        transform: translateX(0);
        display: block;
    }
    
    .main-nav ul {
        flex-direction: row;
        gap: 2rem;
    }
    
    .main-nav ul li a {
        font-size: 1rem;
        font-weight: 500;
        padding: 0.5rem 1rem;
    }
    
    .main-nav ul li a:hover {
        background: var(--primary-light);
        transform: translateY(-2px);
    }

    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
        text-align: left;
    }
    
    .trust-item .icon-wrapper {
        margin-left: 0;
        margin-right: 0;
    }
    
    section {
        padding: 6rem 0;
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    .container {
        padding: 0 2rem;
    }
    
    h1 { font-size: 4rem; }
    
    .hero-section {
        padding: 8rem 0;
    }
}

/* --- 7. Enhanced On-Page Content & SEO Section --- */
.content-section {
    padding: 3rem 0;
    background: var(--bg-color);
}

.content-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

.content-block h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-heading) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-block h3 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.content-block p,
.content-block ul {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.content-block ul {
    list-style-position: outside;
    padding-left: 1.5rem;
}

.content-block li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 0.5rem;
}

.content-block li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

/* Enhanced Formula Box */
.formula-box {
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0f4ff 100%);
    border: 2px solid var(--primary-color);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-smooth);
}

.formula-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.formula-box code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: rgba(255,255,255,0.7);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

/* Enhanced FAQ Accordion */
.faq-accordion .faq-item {
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-smooth);
}

.faq-accordion .faq-item:hover {
    background: var(--bg-subtle);
}

.faq-accordion .faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.2rem !important;
    font-weight: 600;
    padding: 1.5rem 0;
    cursor: pointer;
    position: relative;
    padding-right: 3rem;
    margin: 0 !important;
    color: var(--text-heading);
    transition: all var(--transition-smooth);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: all var(--transition-smooth);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
    background: var(--primary-color);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0 1rem;
    color: var(--text-color);
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
    padding-bottom: 1.5rem;
    font-size: 1.1rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Enhanced Internal Linking Section */
.internal-link-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0f4ff 100%);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--primary-color);
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.internal-link-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.internal-link-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
    color: var(--text-heading);
    position: relative;
}

.internal-link-section p {
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
}