﻿/* ===================================
   ESL Connect - Modern Styles
   =================================== */

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

:root {
    /* Theme - Dark (Default) */
    --bg-color: #0f0c29;
    --bg-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --nav-bg: rgba(255, 255, 255, 0.03);
    --nav-text: rgba(255, 255, 255, 0.9);
    --nav-hover: #ffffff;
    --btn-ghost-bg: rgba(255, 255, 255, 0.1);
    --footer-bg: rgba(0, 0, 0, 0.3);

    /* Brand Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-purple: #1a1535;
    --medium-purple: #2e1f47;
    --light-purple: #b39ddb;
    --accent-blue: #667eea;
    --accent-pink: #f093fb;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
}

.light-mode {
    --bg-color: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 0, 0, 0.1);
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-muted: #b2bec3;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --nav-text: #2d3436;
    --nav-hover: #667eea;
    --btn-ghost-bg: rgba(102, 126, 234, 0.1);
    --footer-bg: #f1f3f5;

    /* Overrides for better contrast in light mode */
    --light-purple: #4834d4;
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.2);
}

body {
    font-family: var(--font-primary);
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

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

/* ===================================
   Hero Section
   =================================== */
.hero {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-md);
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
}

.logo {
    width: 120px;
    max-width: 150px;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--light-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--light-purple);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.welcome-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* ===================================
   Main Content
   =================================== */
.main-content {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* ===================================
   Featured Grid
   =================================== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(102, 126, 234, 0.5);
}

.feature-card:hover::before {
    opacity: 0.1;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ===================================
   Country Section
   =================================== */
.country-section {
    padding: var(--spacing-2xl) 0;
    background: var(--nav-bg);
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.country-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.country-card:hover {
    transform: translateY(-6px);
    background: var(--card-bg);
    opacity: 0.9;
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: var(--shadow-md);
}

.country-flag {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.country-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.job-count {
    color: var(--light-purple);
    font-size: 0.95rem;
}

/* ===================================
   Quick Links
   =================================== */
.quick-links {
    padding: var(--spacing-2xl) 0;
    background: var(--footer-bg);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.links-column h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--accent-blue);
}

.links-column ul {
    list-style: none;
}

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

.links-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.links-column a:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background: var(--footer-bg);
    border-top: 1px solid var(--card-border);
}

.footer-tagline {
    font-size: 1.1rem;
    color: var(--light-purple);
    margin-bottom: var(--spacing-md);
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.separator {
    margin: 0 var(--spacing-sm);
    color: var(--text-muted);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .hero {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .country-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .feature-card,
    .country-card {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .country-grid {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        width: 100px;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .country-flag {
        font-size: 3rem;
    }
}

/* ===================================
   Accessibility
   =================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}
/* ===================================
   VIP & Premium Features
   =================================== */
.vip-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a3a;
    padding: 0.2rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.vip-badge::before {
    content: '👑';
}

.vip-card-border {
    border: 2px solid #FFD700 !important;
    position: relative;
    overflow: visible !important;
}

.vip-card-border::after {
    content: 'VIP PROFESSIONAL';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFD700;
    color: #1a1a3a;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.vip-text {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Blurred state for resumes */
.teacher-card.blurred {
    position: relative;
}

.teacher-card.blurred .card-content {
    filter: blur(8px);
    pointer-events: none;
    opacity: 0.6;
}

.login-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 80%;
}

.login-prompt-text {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.btn-login-prompt {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
