/* LinguaQuest - Gamified Language Exchange Platform Styles */

/* CSS Variables - Pastel High-Contrast Color Palette */
:root {
    --primary-color: #564fe0;         /* Soft indigo */
    --secondary-color: #0da578;       /* Emerald green */
    --accent-color: #e07f1d;          /* Amber yellow */
    --info-color: #0aa8bd;            /* Cyan blue */
    --danger-color: #ff372f;          /* Coral red */
    
    /* Light shades */
    --primary-light: #d5daf3;
    --secondary-light: #d2ffe8;
    --accent-light: #edd3a3;
    --info-light: #d9fbff;
    --danger-light: #e6c4c2;
    
    /* Dark shades */
    --primary-dark: #5229e1;
    --secondary-dark: #096957;
    --accent-dark: #c46d19;
    --info-dark: #0682c6;
    --danger-dark: #cc1e1f;
    
    /* Neutral colors */
    --gray-100: #f8fafc;
    --gray-200: #d5dbe2;
    --gray-300: #d6e1f1;
    --gray-600: #4c5873;
    --gray-700: #2d3341;
    --gray-800: #273442;
    --gray-900: #141e41;
    
    /* Conservative typography */
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --border-radius: 0.5rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    [data-sal] {
        animation: none !important;
    }
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    font-size: var(--font-size-base);
}

/* Conservative Typography */
.navbar-brand {
    font-size: var(--font-size-xl) !important;
    font-weight: 600;
    color: var(--primary-color);
}

h1, .display-4 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-800);
}

h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--gray-800);
}

h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--gray-700);
}

.lead {
    font-size: var(--font-size-lg);
    font-weight: 400;
}

p {
    font-size: var(--font-size-base);
    margin-bottom: 1rem;
}

/* Header Styles */
.navbar {
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Button Styles */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="dots" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%236366f1" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Background Sections */
.bg-light {
    background-color: var(--gray-100) !important;
}

/* Pricing Cards */
.border-primary {
    border-color: var(--primary-color) !important;
    border-width: 2px !important;
}

/* Team Section */
.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    transition: transform 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

/* Testimonials */
.reviews-section .card {
    background: var(--gray-100);
    border-left: 4px solid var(--primary-color);
}

/* Process Steps */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50px;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    transform: translateY(-50%);
}

.process-step:last-child::after {
    display: none;
}

/* Blog Cards */
#blog_grid .card {
    transition: all 0.3s ease;
}

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

/* FAQ Cards */
.faq-section .card {
    background: white;
    border-left: 3px solid var(--accent-color);
    margin-bottom: 1rem;
}

/* Gallery */
#gallery img {
    transition: all 0.3s ease;
    cursor: pointer;
}

#gallery img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Contact Form */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-200);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(104, 121, 233, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--gray-900) !important;
}

footer h5, footer h6 {
    color: white;
}

footer .text-muted {
    color: var(--gray-300) !important;
}

footer a.text-muted:hover {
    color: var(--primary-color) !important;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item img {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.breadcrumb-item:hover img {
    opacity: 1;
}

/* Additional Page Specific Styles */

/* Learning Paths Page */
.learning-path-card {
    background: linear-gradient(45deg, var(--primary-light), var(--secondary-light));
    border: none;
    color: white;
}

/* Community Page */
.community-stat {
    background: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.community-stat:hover {
    background: var(--primary-light);
    transform: translateY(-4px);
}

/* Gamification Elements */
.achievement-badge {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.progress-bar {
    background: var(--primary-color);
    border-radius: 1rem;
    height: 8px;
    transition: width 0.3s ease;
}

.level-indicator {
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 5rem;
    }
    
    h1, .display-4 {
        font-size: var(--font-size-2xl);
    }
    
    .navbar-brand {
        font-size: var(--font-size-lg) !important;
    }
    
    .process-step::after {
        display: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus states for keyboard navigation */
a:focus,
button:focus,
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #050068;
        --secondary-color: #006c00;
        --gray-700: #000000;
        --gray-600: #4a4a4a;
    }
}

/* Space page specific */
#space {
    min-height: 70vh;
    background: var(--gray-100);
    padding: 6rem 0 4rem;
}

/* Gradients for enhanced visual appeal */
.bg-gradient-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark)) !important;
}

.bg-gradient-success {
    background: linear-gradient(45deg, var(--secondary-color), var(--secondary-dark)) !important;
}

.bg-gradient-info {
    background: linear-gradient(45deg, var(--info-color), var(--info-dark)) !important;
}

.bg-gradient-warning {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-dark)) !important;
}

.bg-gradient-danger {
    background: linear-gradient(45deg, var(--danger-color), var(--danger-dark)) !important;
} 

.hero-section h1 {
    padding-top: 125px;
}


/* Team Social Links - Neon Style */
.team-social-links {
    margin-top: 20px;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.social-icons-grid {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 2px solid;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 0.7;
}

.social-link:hover {
    transform: scale(1.1);
    text-shadow: 0 0 20px currentColor;
    box-shadow: 0 0 20px currentColor;
}

.facebook-link {
    border-color: #1877f2;
    color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
}

.linkedin-link {
    border-color: #0a66c2;
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.1);
}

.instagram-link {
    border-color: #e4405f;
    color: #e4405f;
    background: rgba(228, 64, 95, 0.1);
}

.x-link {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 22px;
    z-index: 2;
    position: relative;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}
