/*
Theme Name: DeshKaBasha (Elementor Editable)
Theme URI: https://deshkabasha.in
Author: DeshKaBasha Team
Author URI: https://deshkabasha.in
Description: A premium, cinematic WordPress theme for Indian language learning. Features 3D scroll effects, glassmorphism, parallax layers, animated gradients, and a luxury color palette. Built for DeshKaBasha.in — making Indian languages accessible to everyone.
Version: 4.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: deshkabasha
Tags: education, language-learning, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, blog, two-columns, right-sidebar
*/

/* ============================================
   DESHKABASHA PREMIUM - LUXURY COLOR SYSTEM
   ============================================
   Deep Charcoal:      #0B1120
   Rich Navy:          #111827
   Dark Surface:       #1F2937
   Gold Primary:       #D4A853
   Gold Light:         #F0D48A
   Gold Glow:          rgba(212,168,83,0.15)
   Teal Secondary:     #0D9488
   Teal Light:         #5EEAD4
   Coral Accent:       #E76F51
   Warm Cream:         #FDF8F0
   Soft White:         #FAFAF9
   Text Dark:          #1A1A2E
   Text Muted:         #6B7280
   Glass White:        rgba(255,255,255,0.08)
   Glass Border:       rgba(255,255,255,0.12)
   ============================================ */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --charcoal: #0B1120;
    --navy: #111827;
    --dark-surface: #1F2937;
    --gold: #D4A853;
    --gold-light: #F0D48A;
    --gold-dark: #B8860B;
    --gold-glow: rgba(212, 168, 83, 0.15);
    --gold-gradient: linear-gradient(135deg, #D4A853 0%, #F0D48A 50%, #D4A853 100%);
    --teal: #0D9488;
    --teal-light: #5EEAD4;
    --teal-glow: rgba(13, 148, 136, 0.15);
    --coral: #E76F51;
    --coral-light: #F4A261;
    --cream: #FDF8F0;
    --soft-white: #FAFAF9;
    --text-dark: #1A1A2E;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --glass-white: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-strong: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-xl: 0 40px 100px rgba(0,0,0,0.2);
    --shadow-gold: 0 8px 32px rgba(212,168,83,0.25);
    --shadow-teal: 0 8px 32px rgba(13,148,136,0.2);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-main: 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Inter', 'Noto Sans', -apple-system, sans-serif;
    --font-telugu: 'Noto Sans Telugu', 'Gautami', sans-serif;
    --font-hindi: 'Noto Sans Devanagari', 'Mangal', sans-serif;
    --font-tamil: 'Noto Sans Tamil', 'Latha', sans-serif;
    --font-kannada: 'Noto Sans Kannada', 'Tunga', sans-serif;
    --font-malayalam: 'Noto Sans Malayalam', 'Kartika', sans-serif;
    --max-width: 1240px;
    --header-height: 72px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.2em;
    color: var(--text-muted);
    font-size: 1.05rem;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-dark);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.active > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.active > * {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px;
}

.site-content.full-width {
    grid-template-columns: 1fr;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background: rgba(11, 17, 32, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(11, 17, 32, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-branding .site-logo {
    width: 44px;
    height: 44px;
    background: var(--gold-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

.site-branding .site-logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.site-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.03em;
}

.site-title a { color: inherit; }

.site-title .highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-description {
    font-size: 0.72rem;
    color: var(--text-light);
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    display: block;
    padding: 10px 18px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--gold-light);
    background: var(--glass-white);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    transform: translateX(-50%) scaleX(1);
}

/* Dropdown */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 10px;
    min-width: 220px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 100;
}

.main-navigation li:hover .sub-menu {
    display: flex;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 10px 14px;
    color: white;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--glass-strong);
}

/* Body padding for fixed header */
body {
    padding-top: var(--header-height);
}

/* ============================================
   HERO SECTION - CINEMATIC
   ============================================ */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--charcoal);
    overflow: hidden;
}

/* Animated gradient mesh background */
.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(212,168,83,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 80% 20%, rgba(13,148,136,0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 80% at 60% 80%, rgba(231,111,81,0.08) 0%, transparent 50%),
        var(--charcoal);
    animation: heroGradient 12s ease-in-out infinite alternate;
}

@keyframes heroGradient {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* Floating particles */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 1s; animation-duration: 9s; }
.particle:nth-child(3) { left: 35%; top: 30%; animation-delay: 2s; animation-duration: 6s; }
.particle:nth-child(4) { left: 50%; top: 70%; animation-delay: 0.5s; animation-duration: 8s; }
.particle:nth-child(5) { left: 65%; top: 25%; animation-delay: 1.5s; animation-duration: 10s; }
.particle:nth-child(6) { left: 75%; top: 55%; animation-delay: 3s; animation-duration: 7s; }
.particle:nth-child(7) { left: 85%; top: 35%; animation-delay: 2.5s; animation-duration: 9s; }
.particle:nth-child(8) { left: 90%; top: 75%; animation-delay: 0.8s; animation-duration: 6s; }
.particle:nth-child(9) { left: 45%; top: 15%; animation-delay: 1.2s; animation-duration: 11s; }
.particle:nth-child(10) { left: 5%; top: 80%; animation-delay: 2.2s; animation-duration: 8s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.3; }
    25% { transform: translateY(-30px) translateX(10px) scale(1.5); opacity: 0.6; }
    50% { transform: translateY(-15px) translateX(-10px) scale(1); opacity: 0.4; }
    75% { transform: translateY(-40px) translateX(5px) scale(1.2); opacity: 0.5; }
}

/* 3D floating language scripts */
.hero-floating-scripts {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-script {
    position: absolute;
    font-size: 3rem;
    opacity: 0.06;
    color: white;
    animation: floatScript 15s ease-in-out infinite;
    font-family: var(--font-telugu);
}

.floating-script:nth-child(1) { left: 5%; top: 15%; animation-delay: 0s; font-size: 4rem; }
.floating-script:nth-child(2) { left: 85%; top: 20%; animation-delay: 2s; font-family: var(--font-hindi); }
.floating-script:nth-child(3) { left: 10%; top: 70%; animation-delay: 4s; font-family: var(--font-tamil); }
.floating-script:nth-child(4) { left: 80%; top: 65%; animation-delay: 1s; font-family: var(--font-kannada); font-size: 3.5rem; }
.floating-script:nth-child(5) { left: 50%; top: 10%; animation-delay: 3s; font-family: var(--font-malayalam); }
.floating-script:nth-child(6) { left: 30%; top: 85%; animation-delay: 5s; font-size: 2.5rem; }

@keyframes floatScript {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(3deg); }
    66% { transform: translateY(10px) rotate(-2deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 40px 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--gold-light);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    color: #FFFFFF;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-content h1 .gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin-bottom: 8px;
    font-weight: 400;
}

.hero-native-text {
    color: var(--gold-light);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-family: var(--font-telugu);
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-gold {
    background: var(--gold-gradient);
    color: var(--charcoal);
    box-shadow: var(--shadow-gold);
    font-weight: 700;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(212,168,83,0.4);
    color: var(--charcoal);
}

.btn-glass {
    background: var(--glass-white);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--glass-strong);
    transform: translateY(-2px);
    color: white;
    border-color: var(--gold);
}

.btn-teal {
    background: linear-gradient(135deg, var(--teal), #14B8A6);
    color: white;
    box-shadow: var(--shadow-teal);
}

.btn-teal:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(13,148,136,0.35);
    color: white;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-light);
    display: block;
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: rgba(255,255,255,0.4);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   LANGUAGE CARDS - 3D EFFECT
   ============================================ */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-badge {
    display: inline-block;
    background: var(--gold-glow);
    color: var(--gold-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border: 1px solid rgba(212,168,83,0.2);
}

.section-header h2 {
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

.language-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    perspective: 1000px;
}

.language-card {
    background: var(--soft-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.language-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.language-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--gold-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.language-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212,168,83,0.3);
}

.language-card:hover::before {
    transform: scaleX(1);
}

.language-card:hover::after {
    opacity: 1;
}

.language-card .lang-script {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.language-card:hover .lang-script {
    transform: scale(1.15) translateZ(20px);
}

.language-card .lang-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.language-card .lang-english {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.language-card .lang-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--teal);
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.language-card:hover .lang-cta {
    color: var(--gold-dark);
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */
.glass-card {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--glass-strong);
    border-color: rgba(212,168,83,0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   WORD OF THE DAY - PREMIUM
   ============================================ */
.word-of-day {
    background: var(--charcoal);
    border-radius: var(--radius-xl);
    padding: 48px;
    margin: 0 auto;
    max-width: var(--max-width);
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.word-of-day::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,168,83,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.word-of-day .wod-icon {
    width: 72px;
    height: 72px;
    background: var(--gold-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-gold);
}

.word-of-day .wod-content {
    position: relative;
    z-index: 1;
}

.word-of-day .wod-label {
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 8px;
}

.word-of-day .wod-word {
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
    font-family: var(--font-telugu);
    margin-bottom: 4px;
}

.word-of-day .wod-pronunciation {
    color: var(--gold-light);
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 4px;
}

.word-of-day .wod-meaning {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--soft-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

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

.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gold-glow);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.content-area {
    min-width: 0;
}

.entry-header {
    margin-bottom: 32px;
}

.entry-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.entry-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.88rem;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.entry-content {
    font-size: 1.08rem;
    line-height: 1.85;
}

.entry-content h2 {
    margin-top: 2.5em;
    color: var(--text-dark);
    position: relative;
    padding-left: 20px;
}

.entry-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--gold-gradient);
    border-radius: 4px;
}

.entry-content h3 {
    margin-top: 2em;
    color: var(--navy);
}

.entry-content ul, .entry-content ol {
    margin: 1.2em 0;
    padding-left: 1.5em;
}

.entry-content li {
    margin-bottom: 0.6em;
    color: var(--text-muted);
}

.entry-content blockquote {
    border-left: 4px solid var(--gold);
    background: var(--gold-glow);
    padding: 24px 28px;
    margin: 2em 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: 1.1rem;
}

/* Language Tables - Premium */
.entry-content table,
.lang-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2em 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.06);
}

.entry-content table th,
.lang-table th {
    background: var(--charcoal);
    color: var(--gold-light);
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-content table td,
.lang-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 0.95rem;
    background: white;
}

.entry-content table tr:hover td,
.lang-table tr:hover td {
    background: var(--gold-glow);
}

/* Pronunciation Box */
.pronunciation-box {
    background: linear-gradient(135deg, var(--teal-glow), rgba(94,234,212,0.05));
    border: 1px solid rgba(13,148,136,0.2);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 1.5em 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.pronunciation-box .audio-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--teal), #14B8A6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-teal);
}

.pronunciation-box .audio-btn:hover {
    transform: scale(1.15);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    height: fit-content;
}

.widget {
    background: var(--soft-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.widget:hover {
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold-glow);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    margin-bottom: 6px;
}

.widget ul li a {
    color: var(--text-muted);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.widget ul li a:hover {
    color: var(--gold-dark);
    background: var(--gold-glow);
    transform: translateX(4px);
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form input[type="text"],
.search-form input[type="search"] {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    background: white;
}

.search-form input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-glow);
}

.search-form button {
    padding: 14px 20px;
    background: var(--charcoal);
    color: var(--gold-light);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--navy);
    transform: scale(1.05);
}

/* ============================================
   FOOTER - PREMIUM DARK
   ============================================ */
.site-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.7);
    padding: 80px 24px 40px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold-gradient);
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto 60px;
}

.footer-widget h4 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.footer-widget p {
    color: rgba(255,255,255,0.5);
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-widget ul li a:hover {
    color: var(--gold-light);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

.footer-bottom .made-in-india {
    color: var(--gold-light);
    font-weight: 600;
}

/* ============================================
   POST CARDS - PREMIUM
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.post-card {
    background: var(--soft-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.post-card .post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-thumbnail {
    transform: scale(1.05);
}

.post-card .post-content {
    padding: 24px;
}

.post-card .post-category {
    display: inline-block;
    background: var(--gold-glow);
    color: var(--gold-dark);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.post-card .post-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card .post-title a {
    color: var(--text-dark);
}

.post-card .post-title a:hover {
    color: var(--gold-dark);
}

.post-card .post-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   NEWSLETTER - PREMIUM
   ============================================ */
.newsletter-section {
    background: var(--charcoal);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    text-align: center;
    max-width: var(--max-width);
    margin: 80px auto;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212,168,83,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(13,148,136,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.newsletter-section h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.newsletter-section p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    background: var(--glass-white);
    color: white;
    backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-form input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-glow);
}

.newsletter-form button {
    padding: 16px 32px;
    background: var(--gold-gradient);
    color: var(--charcoal);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    padding: 16px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--gold-dark);
}

.breadcrumbs .separator {
    margin: 0 10px;
    color: var(--text-light);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a, .pagination span {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.pagination a {
    background: var(--soft-white);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--text-muted);
}

.pagination a:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    transform: translateY(-2px);
}

.pagination .current {
    background: var(--charcoal);
    color: var(--gold-light);
    border: none;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: 100px 24px;
}

.error-404 .error-code {
    font-size: 8rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--gold-glow);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    padding: 24px;
    background: var(--soft-white);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0,0.04);
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    margin-bottom: 12px;
    outline: none;
    transition: var(--transition);
}

.comment-respond input:focus,
.comment-respond textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-glow);
}

.comment-respond textarea {
    min-height: 140px;
    resize: vertical;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .site-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(11, 17, 32, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        padding: 20px;
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .language-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .word-of-day {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .language-cards {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .container {
        padding: 0 16px;
    }
}

/* ============================================
   UTILITY & ACCESSIBILITY
   ============================================ */
.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;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--gold);
    color: var(--charcoal);
    padding: 12px 20px;
    z-index: 9999;
    transition: top 0.2s;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Selection */
::selection {
    background: var(--gold-glow);
    color: var(--text-dark);
}

/* Print */
@media print {
    .site-header, .sidebar, .site-footer, .newsletter-section, .hero-particles, .hero-floating-scripts {
        display: none !important;
    }
    
    body { padding-top: 0; background: white; }
    .site-content { grid-template-columns: 1fr; }
}
