/* Edukadio - True App Replica (Juicy & Alive) */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;700;800;900&display=swap');

:root {
    /* Brand Colors - Exact App Match from _layout.tsx and AdaptiveTheme.ts */
    --primary: #F59E0B;       /* Amber 500 */
    --primary-hover: #FCD34D; /* Amber 300 */
    --primary-sh: #D97706;    /* Amber 600 (Shadow) */
    
    --secondary: #3B82F6;     /* Blue 500 */
    --secondary-hover: #60A5FA;
    --secondary-sh: #2563EB;  /* Blue 600 (Shadow) */
    
    --success: #10B981;       /* Emerald 500 */
    --success-sh: #059669;
    
    /* App Background Gradient Step-down */
    --bg-base: #F0F5FA;
    --bg-gradient-start: #93C5FD;
    --bg-gradient-mid: #BFDBFE;
    --bg-gradient-end: #DBEAFE;

    /* Text */
    --text-main: #1E293B;     /* Slate 800 */
    --text-muted: #64748B;    /* Slate 500 */
    
    /* UI Elements */
    --card-bg: #FFFFFF;
    --card-border: #E2E8F0;   /* Slate 200 */
    --card-sh: #CBD5E1;       /* Slate 300 (Bottom Border) */
    
    /* Dimensions */
    --radius-xl: 32px;        /* Large friendly curves */
    --radius-lg: 20px;
    --radius-md: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 40%, var(--bg-gradient-end) 100%);
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background-color: transparent;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* --- Animated Landscape (The Living Background) --- */
/* Match exactly with AnimatedBackground.tsx blobs */

.blob-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob-1, .blob-2, .blob-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px); /* Exact app blur */
    opacity: 0.8;
}

/* Top Left Breathing Blob - Color: #EFF6FF */
.blob-1 {
    top: -5%;
    left: -5%;
    width: 300px;
    height: 300px;
    background-color: #EFF6FF;
    animation: blob-breath 4s ease-in-out infinite alternate;
}

/* Middle Right Accent Blob - Color: #DBEAFE */
.blob-2 {
    top: 30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background-color: #DBEAFE;
    animation: blob-float 5s ease-in-out infinite alternate-reverse;
}

/* Bottom Left Subtle Blob - Color: #EEF2FF */
.blob-3 {
    bottom: -5%;
    left: 5%;
    width: 350px;
    height: 350px;
    background-color: #EEF2FF;
    animation: blob-breath 4.5s ease-in-out infinite alternate;
}

@keyframes blob-breath {
    0% { transform: scale(0.9) translateY(0); }
    100% { transform: scale(1.1) translateY(-20px); }
}

@keyframes blob-float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, 20px); }
}

/* --- Layout Containers --- */

.container {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    padding: 2rem 0 4rem 0;
    flex: 1;
}

/* --- NavBar --- */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1000px;
    width: 92%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1E293B;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.lang-select-wrapper {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #1E293B;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 2px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: none;
    min-width: 140px;
    overflow: hidden;
    z-index: 1000;
}

.lang-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.lang-option {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: background 0.2s;
}

.lang-option:hover {
    background: var(--bg-base);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 5rem 1rem 3rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 600;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.1s;
    user-select: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 0 var(--primary-sh);
}

.btn-primary:active {
    box-shadow: 0 0 0 var(--primary-sh);
    transform: translateY(4px);
}

.btn-outline {
    background-color: white;
    color: var(--secondary);
    border: 2px solid var(--card-border);
    box-shadow: 0 4px 0 var(--card-border);
}

.btn-outline:active {
    box-shadow: 0 0 0 var(--card-border);
    transform: translateY(4px);
}

/* Grid for Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.card {
    background: #FFFFFF;
    border: 2px solid var(--card-border);
    border-bottom: 6px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 24px 32px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.1s ease-in-out;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary);
    border-bottom-color: var(--secondary-sh);
}

.card:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 800;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
}

/* --- Footer (Minimal: Duolingo Style) --- */
footer {
    padding: 4rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin-bottom: 1.5rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-credits {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* --- Content Wrapper (Privacy/Terms) --- */
.content-wrapper {
    background: white;
    padding: 3rem 4rem;
    border-radius: var(--radius-xl);
    border: 2px solid var(--card-border);
    border-bottom: 6px solid var(--card-border);
    margin: 2rem 0;
}

.content-wrapper h1 { font-size: 2.5rem; margin-bottom: 1rem; font-weight: 900; }
.content-wrapper h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; font-weight: 800; }
.content-wrapper p, .content-wrapper li { color: var(--text-muted); font-weight: 600; margin-bottom: 1rem; }

/* --- Info Boxes --- */
.info-box {
    background: var(--bg-base);
    border: 2px solid var(--card-border);
    padding: 24px 32px;
    border-radius: 20px;
    margin: 2rem 0;
}

.info-box strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
}

/* --- Navigation Chips (Internal Buttons) --- */
.nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: white;
    border: 2px solid var(--card-border);
    border-bottom-width: 4px;
    border-radius: 12px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.1s;
    margin: 4px 0;
}

.nav-chip:hover {
    border-color: var(--secondary);
    background: var(--bg-base);
}

.nav-chip:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}


/* --- Contact Links & Chips --- */
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-base);
    border: 2px solid var(--card-border);
    border-bottom-width: 4px;
    border-radius: 12px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.1s;
    margin: 4px 0;
}

.contact-link:hover {
    border-color: var(--secondary);
    background: white;
}

.contact-link:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.contact-link::before {
    content: '✉️';
    font-size: 1.1rem;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .container { width: 95%; }
    .hero h1 { font-size: 2.25rem; }
    .nav-links { display: none; }
    .card-grid { grid-template-columns: 1fr; }
    .content-wrapper { padding: 1.5rem; }
}
