:root {
    /* Corporate Light Theme (Forced Global) */
    --bg-color: #f4f6f8; /* Soft neutral gray */
    --surface-color: rgba(255, 255, 255, 1); /* Crisp solid white */
    --surface-border: rgba(0, 0, 0, 0.06);
    --text-primary: #0f172a; /* Slate-900 */
    --text-secondary: #475569; /* Slate-600 */
    
    --accent-primary: #2563eb; /* Corporate Blue */
    --accent-gradient: linear-gradient(135deg, #2563eb, #6366f1);
    
    --telugu-color: #d97706; /* Refined Amber */
    --hindi-color: #059669; /* Refined Emerald */
    --english-color: #4f46e5; /* Refined Indigo */

    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);
    
    --header-bg: rgba(255, 255, 255, 0.95);
    --word-bg: rgba(241, 245, 249, 0.6);
}

.nav-btn { color: var(--text-primary); border-color: var(--surface-border); }
.nav-btn:hover { background: rgba(0,0,0,0.03); }

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ANTI-COPY SECURITY */
.no-copy {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}
/* Prevent image dragging */
img {
    -webkit-user-drag: none;
    user-drag: none;
}

/* Language specific fonts for better rendering */
.lang-telugu {
    font-family: 'Noto Sans Telugu', sans-serif;
}
.lang-hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

/* Background Effects */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1; /* Reduced opacity for professional look */
}
.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #3b82f6;
    animation: float 15s ease-in-out infinite alternate;
}
.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: #8b5cf6;
    animation: float 20s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

/* Header */
.glass-header {
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--surface-border);
    padding: 10px 0;
    z-index: 100;
    transition: all 0.3s ease;
}
.glass-header.shrink {
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
}
.sticky {
    position: sticky;
    top: 0;
}
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}
.glass-header.shrink .logo h1 {
    font-size: 1.3rem;
}
.logo i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-right: 10px;
    vertical-align: middle;
    transition: all 0.3s ease;
}
.glass-header.shrink .logo i {
    font-size: 1.1rem;
}
.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Navigation Navigation */
.category-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}
.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.glass-header.shrink .category-nav {
    margin-top: 10px;
}
.glass-header.shrink .nav-btn {
    padding: 5px 12px;
    font-size: 0.85rem;
}
.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.nav-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

/* Main Content */
.main-content {
    padding: 40px 20px;
}
.category-section {
    margin-bottom: 60px;
    scroll-margin-top: 180px; /* Offset for sticky header */
}
.category-title {
    font-size: 2rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--surface-border);
    padding-bottom: 10px;
}
.category-title i {
    color: var(--accent-primary);
}

/* Grid & Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.vocab-card {
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.vocab-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Word Row */
.word-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--word-bg);
    padding: 15px;
    border-radius: 12px;
}

.word-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.lang-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 50px;
    text-align: center;
}
.badge-en { background: rgba(99, 102, 241, 0.2); color: var(--english-color); }
.badge-te { background: rgba(245, 158, 11, 0.2); color: var(--telugu-color); }
.badge-hi { background: rgba(16, 185, 129, 0.2); color: var(--hindi-color); }

.word-content {
    flex-grow: 1;
}
.word-main {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.word-trans {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Example Row */
.example-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.example-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: -5px;
}

.example-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 3px solid;
    padding-left: 12px;
}
td.example-row {
    display: table-cell;
    border-left: none;
}
.ex-en { border-color: var(--english-color); }
.ex-te { border-color: var(--telugu-color); }
.ex-hi { border-color: var(--hindi-color); }

.ex-text {
    font-size: 1.05rem;
    line-height: 1.4;
}
.ex-trans {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Footer */
.glass-footer {
    background: var(--header-bg);
    border-top: 1px solid var(--surface-border);
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .logo h1 { font-size: 1.4rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .category-nav { display: none; } /* Could replace with a dropdown on mobile */

    /* Make tables responsive (Card Layout for Blog Posts) */
    div[style*="overflow-x:auto"],
    div[style*="overflow-x: auto"] {
        overflow-x: visible !important;
    }

    .content-container table {
        display: block !important;
        border: none !important;
        background: transparent !important;
        margin-bottom: 0 !important;
    }
    
    .content-container table tbody {
        display: block !important;
    }

    /* Hide the header row to save space and remove table feel */
    .content-container table tr:first-child,
    .content-container table thead {
        display: none !important;
    }

    /* Convert each table row into a premium card */
    .content-container table tr {
        display: flex !important;
        flex-direction: column;
        background: #ffffff !important;
        margin-bottom: 20px !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
        border: 1px solid rgba(0,0,0,0.04) !important;
        padding: 15px !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .content-container table tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1) !important;
    }

    /* Convert each table cell into a block inside the card */
    .content-container table td {
        display: block !important;
        width: 100% !important;
        border: none !important;
        padding: 10px 0 !important;
        border-bottom: 1px dashed rgba(0,0,0,0.08) !important;
        text-align: left !important;
    }

    /* Remove bottom border for the last item in the card */
    .content-container table td:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
}
