/* 
   UX Pro 2025 - Material Design Style 
   Project: icplayer.com Redesign
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

:root {
    /* Color Palette - mAuthor Inspired + Material 3 */
    --md-sys-color-primary: #1A365D;       /* Deep Navy */
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #D1E4FF;
    --md-sys-color-on-primary-container: #001D36;
    
    --md-sys-color-secondary: #006D77;     /* Teal Accent */
    --md-sys-color-on-secondary: #FFFFFF;
    
    --md-sys-color-background: #FDFBFF;
    --md-sys-color-on-background: #1A1C1E;
    
    --md-sys-color-surface: #FDFBFF;
    --md-sys-color-on-surface: #1A1C1E;
    --md-sys-color-surface-variant: #E1E2EC;
    
    --md-sys-color-outline: #74777F;
    
    /* Elevation / Shadows */
    --elevation-1: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    --elevation-2: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    --elevation-3: 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px rgba(0, 0, 0, 0.3);
    
    /* Spacing & Layout */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 64px;
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
    --border-radius-pill: 9999px;

    /* Typography */
    --font-family-base: 'Inter', sans-serif;
    --font-family-code: 'Roboto Mono', monospace;
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--md-sys-color-primary);
}

h1 { font-size: 3.5rem; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: 2.25rem; letter-spacing: -0.02em; line-height: 1.2; }
h3 { font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.3; }
p { font-size: 1rem; color: #475569; line-height: 1.6; }

/* Components: Buttons (Material 3 Style) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 48px;
    border-radius: var(--border-radius-pill);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    gap: 8px;
    border: none;
}

.btn-primary {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    box-shadow: var(--elevation-1);
}

.btn-primary:hover {
    box-shadow: var(--elevation-2);
    transform: translateY(-1px);
    background-color: #24426d; /* Slightly lighter */
}

.btn-secondary {
    background-color: transparent;
    color: var(--md-sys-color-primary);
    border: 1px solid var(--md-sys-color-outline);
}

.btn-secondary:hover {
    background-color: var(--md-sys-color-primary-container);
    border-color: var(--md-sys-color-primary);
}

.btn-text {
    background: transparent;
    color: var(--md-sys-color-primary);
    padding: 0 16px;
    font-weight: 500;
    font-size: 0.9375rem; /* 15px */
}

.btn-text:hover {
    background-color: rgba(26, 54, 93, 0.08);
}

.btn-text.active {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-primary);
    font-weight: 700;
}

/* Components: Cards */
.card {
    background: var(--md-sys-color-surface);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--elevation-3);
}

/* --- DOCUMENTATION CONTENT STYLES (Typography Reset for .card content) --- */
.card h1 { margin-bottom: 24px; font-size: 2.5rem; border-bottom: 2px solid #f1f5f9; padding-bottom: 16px; }
.card h2 { margin-top: 40px; margin-bottom: 20px; font-size: 2rem; color: #1e293b; }
.card h3 { margin-top: 32px; margin-bottom: 16px; font-size: 1.5rem; color: #334155; }
.card p { margin-bottom: 16px; font-size: 1rem; color: #475569; }

/* Documentation Lists */
.card ul, .card ol { margin-bottom: 16px; padding-left: 24px; list-style-position: outside; }
.card ul { list-style-type: disc; }
.card ol { list-style-type: decimal; }
.card li { margin-bottom: 8px; color: #475569; }

/* Fix for Navigation Links inside Cards (Double Bullet issue) */
.card .footer-links, .card .nav-links {
    list-style-type: none;
    padding-left: 0;
}

/* Documentation Code Blocks */
.card pre {
    background: #1e293b; /* Dark Navy Background */
    color: #e2e8f0;       /* Light text */
    padding: 20px;
    border-radius: 8px;
    font-family: var(--font-family-code);
    font-size: 0.9rem;
    overflow-x: auto;
    margin: 24px 0;
    line-height: 1.5;
    border: 1px solid #334155;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.card code {
    font-family: var(--font-family-code);
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #0f172a;
    font-size: 0.9em;
    border: 1px solid #e2e8f0;
}

.card pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    border: none;
}

/* Documentation Tables */
.card table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

.card table th, .card table td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.card table th {
    background-color: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.card table tr:nth-child(even) {
    background-color: #fcfcfc;
}

.card table tr:hover {
    background-color: #f1f5f9;
}

/* Layout: Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--elevation-1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--md-sys-color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand span {
    color: var(--md-sys-color-secondary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--md-sys-color-primary);
    cursor: pointer;
    padding: 8px;
}

/* Layout: Hero */
.hero {
    padding: 160px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #f1f5f9 0%, transparent 40%),
                radial-gradient(circle at bottom left, #e0f2fe 0%, transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-tagline {
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--md-sys-color-secondary);
    margin-bottom: var(--spacing-md);
    display: block;
}

.hero-actions {
    margin-top: var(--spacing-xl);
    display: flex;
    gap: var(--spacing-md);
}

.hero-visual {
    position: relative;
}

.hero-img-container {
    background: white;
    padding: 10px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--elevation-3);
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
}

.hero-img-container:hover {
    transform: rotate(0deg);
}

.hero-img {
    width: 100%;
    border-radius: var(--border-radius-md);
    display: block;
}

/* Section: Features */
.features-section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xxl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: var(--spacing-md);
}

/* Section: Stats/GitHub (Dark Deep Glass Effect) */
.stats-bar {
    background: radial-gradient(circle at center, #1e3a8a 0%, #0f172a 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    color: white;
}

/* Subtle tech grid background pattern */
.stats-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: center;
    justify-items: center;
    position: relative;
    z-index: 1;
}

/* The Glass Capsule */
.stat-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Top highlight */
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);     /* Bottom shadow */
    border-radius: 24px;
    padding: 48px 32px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
    cursor: default;
}

/* Hover Effect */
.stat-item:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 60px -10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.1) inset; /* Inner glow */
}

/* Icons */
.stat-item i {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

/* Neon Glow on Hover */
.stat-item:hover i {
    color: #38bdf8; /* Sky Blue Neon */
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 20px #38bdf8);
}

.stat-item h4 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-item span {
    display: block;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.stat-item:hover span {
    color: white;
}


/* Footer */
.main-footer {
    background: #0f172a; /* Darker than primary */
    color: white;
    padding: 64px 0 32px;
    font-size: 0.875rem; /* 14px */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand h3 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-brand p {
    color: #94a3b8;
}

.footer-col h4 {
    color: white;
    font-size: 0.9375rem; /* 15px */
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(2px);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between; /* Spread content: copyright left, social right */
    align-items: center;
    text-align: left;
    color: #64748b;
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: #94a3b8;
    font-size: 1.2rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: white;
    transform: translateY(-2px);
}

/* Utilities */
.badge {
    display: inline-block;
    padding: 4px 8px;
    background: #E0F2FE;
    color: #0369A1;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- NEW PRO CSS 2025 STYLES for ANIMATIONS --- */

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0; /* Start hidden */
}

/* Delays for staggered animation */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 900px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 32px;
    }
}
@media (max-width: 600px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    .hero { padding: 120px 0 60px; }
    h1 { font-size: 2.5rem; }
    
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--elevation-2);
        gap: 16px;
    }

    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        width: 100%;
        display: block;
    }

    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    
    /* Documentation specific mobile tweaks */
    .card pre { font-size: 0.8rem; padding: 16px; }
    .card table { font-size: 0.85rem; display: block; overflow-x: auto; }
}