/*
Theme Name: ClickLingua Premium
Theme URI: https://clicklingua.com/
Description: A high-performance, minimalist SaaS-inspired theme for ClickLingua.
Author: Antigravity AI
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clicklingua-premium
*/

/* -------------------------------------------------------------------------- */
/* 1. CORE TOKENS & RESET
/* -------------------------------------------------------------------------- */
:root {
    /* Brand Palette */
    --cl-navy: #0F172A;
    --cl-yellow: #FACC15;
    --cl-blue: #3B82F6;
    --cl-red: #EF4444;
    --cl-gray: #E8EDF5;
    --cl-white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects */
    --cl-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
    --cl-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--cl-gray);
    color: var(--cl-navy);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 5px;
    border: 3px solid var(--cl-gray);
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* -------------------------------------------------------------------------- */
/* 2. PREMIUM UTILITY LAYER (The "Hybrid" Skill)
/* -------------------------------------------------------------------------- */

/* Glassmorphism */
.cl-glass {
    background: var(--cl-glass-bg) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--cl-glass-border) !important;
    border-radius: 24px !important;
    box-shadow: var(--cl-shadow) !important;
}

/* High-Fidelity Button */
.cl-btn-premium {
    background: linear-gradient(135deg, var(--cl-gold) 0%, #B8860B 100%) !important;
    color: var(--cl-navy) !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 50px !important;
    padding: 18px 36px !important;
    transition: var(--cl-transition) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
}

.cl-btn-premium:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5) !important;
    filter: brightness(1.1) !important;
}

/* Bento Grid Hover */
.cl-hover-lift {
    transition: var(--cl-transition) !important;
}

.cl-hover-lift:hover {
    transform: translateY(-10px) !important;
    border-color: var(--cl-gold) !important;
}

/* Gold Gradient Text */
.cl-text-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #F7E7CE 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 800;
}

/* -------------------------------------------------------------------------- */
/* 4. COMPONENT STYLES
/* -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/* 4. COMPONENT STYLES - PREMIUM HEADER
/* -------------------------------------------------------------------------- */

/* Top Info Bar */
.cl-top-bar {
    background-color: var(--cl-navy);
    color: white;
    padding: 10px 24px;
    display: none;
}

@media (min-width: 768px) {
    .cl-top-bar {
        display: block;
    }
}

.cl-top-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.cl-top-bar-links {
    display: flex;
    gap: 32px;
}

.cl-top-bar-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cl-top-bar-dot {
    font-size: 14px;
}

.cl-top-bar-dot.yellow { color: var(--cl-yellow); }
.cl-top-bar-dot.blue { color: var(--cl-blue); }

.cl-top-bar a {
    color: white;
    text-decoration: none;
    transition: var(--cl-transition);
}

.cl-top-bar a:hover {
    color: var(--cl-yellow);
}

/* Main Header */
.cl-premium-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cl-header-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: 96px; /* 24 * 4 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

/* Brand Logo */
.cl-brand {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    text-decoration: none;
}

.cl-logo-box {
    display: flex;
    align-items: center;
}

.cl-logo-char {
    width: 48px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cl-logo-char.yellow {
    background-color: var(--cl-yellow);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    color: var(--cl-navy);
}

.cl-logo-char.blue {
    background-color: var(--cl-blue);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    color: white;
}

.cl-brand-text {
    display: flex;
    flex-direction: column;
}

.cl-brand-name {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--cl-navy);
    font-style: italic;
}

.cl-brand-tagline {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--cl-blue);
    margin-top: 4px;
}

/* Navigation Links */
.cl-nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 1280px) {
    .cl-nav-links {
        display: flex;
    }
}

.nav-link {
    font-size: 14px;
    font-weight: 800;
    color: var(--cl-navy);
    text-decoration: none;
    transition: var(--cl-transition);
}

.nav-link:hover {
    color: var(--cl-blue);
}

/* Dropdown Menu */
.cl-menu-group {
    position: relative;
}

.cl-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 16px;
    opacity: 0;
    visibility: hidden;
    transition: var(--cl-transition);
    z-index: 100;
}

.cl-menu-group:hover .cl-dropdown {
    opacity: 1;
    visibility: visible;
}

.cl-dropdown-inner {
    width: 320px;
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cl-dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 24px;
    text-decoration: none;
    transition: var(--cl-transition);
}

.cl-dropdown-item:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.cl-dropdown-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--cl-transition);
}

.cl-dropdown-item:hover .cl-dropdown-icon {
    transform: scale(1.1);
}

.cl-dropdown-content {
    display: flex;
    flex-direction: column;
}

.cl-dropdown-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--cl-navy);
}

.cl-dropdown-desc {
    font-size: 10px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

/* CTA Buttons */
.cl-header-ctas {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.cl-btn-outline {
    padding: 14px 28px;
    border-radius: 16px;
    border: 2px solid var(--cl-navy);
    font-weight: 900;
    font-size: 14px;
    color: var(--cl-navy);
    text-decoration: none;
    transition: var(--cl-transition);
}

.cl-btn-outline:hover {
    background-color: var(--cl-navy);
    color: white;
}

.cl-btn-premium {
    padding: 14px 28px;
    border-radius: 16px;
    background-color: var(--cl-blue);
    font-weight: 900;
    font-size: 14px;
    color: white;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
    transition: var(--cl-transition);
}

.cl-btn-premium:hover {
    background-color: var(--cl-navy);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/* 5. GLOBAL ANIMATIONS
/* -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cl-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* CLICKLINGUA CUSTOM OVERRIDES */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

#wpadminbar { display: none !important; }

/* Sticky Header Logic */
.hfe-header {
    position: sticky !important;
    top: -42px !important;
    z-index: 9999 !important;
    background: white !important;
    overflow: visible !important;
}

/* Ensure no parent breaks sticky */
.hfe-header-wrapper, 
.elementor-hf-header-container, 
#page, 
.site, 
.site-content {
    overflow: visible !important;
}

/* Footer Reset */
.hfe-footer, 
.elementor-hf-footer-container {
    margin: 0 !important;
    padding: 0 !important;
}

.header-logo { 
    height: 40px !important; 
    width: auto !important; 
    max-height: 40px !important; 
}
/* -------------------------------------------------------------------------- */
/* 6. TYPOGRAPHY & PAGE LAYOUT
/* -------------------------------------------------------------------------- */

.cl-page-container {
    background-color: white;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cl-navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cl-navy);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.prose-lg {
    font-size: 1.125rem;
}

.bg-clNavy { background-color: var(--cl-navy) !important; }
.text-clNavy { color: var(--cl-navy) !important; }
.text-clYellow { color: var(--cl-yellow) !important; }
.text-clBlue { color: var(--cl-blue) !important; }
