/**
 * Ta'atarita - Style Principal
 * JOUE TES CHOIX, l'honneur t'échoit
 * Thème inspiré du logo : aventure, nature, progression
 */

/* ===== IMPORTS & VARIABLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Nunito:wght@400;600;700;800&family=Pacifico&display=swap');

:root {
    /* Couleurs principales du logo */
    --primary-blue: #1E88E5;
    --primary-blue-dark: #1565C0;
    --primary-orange: #FF9800;
    --primary-orange-dark: #F57C00;
    --primary-gold: #FFD700;
    --primary-green: #4CAF50;
    --primary-green-dark: #2E7D32;

    /* Couleurs secondaires */
    --sky-light: #87CEEB;
    --sky-gradient: linear-gradient(180deg, #87CEEB 0%, #FFE4B5 100%);
    --earth-brown: #8B4513;
    --wood-brown: #A0522D;

    /* Couleurs de fond */
    --bg-primary: #FFF8E7;
    --bg-secondary: #F5F0E1;
    --bg-card: #FFFFFF;
    --bg-dark: #2C3E50;
    --bg-tertiary: #EDE8D5;
    --border-color: #E0E0E0;

    /* Texte */
    --text-primary: #2C3E50;
    --text-secondary: #5D6D7E;
    --text-light: #FFFFFF;
    --text-muted: #95A5A6;

    /* Niveaux d'avatar */
    --level-1: #8BC34A;
    --level-2: #4CAF50;
    --level-3: #2E7D32;
    --level-4: #1B5E20;
    --level-5: #FF9800;
    --level-6: #F57C00;
    --level-7: #E65100;
    --level-8: #FFD700;
    --level-9: #9C27B0;

    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.4);

    /* Bordures */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ===== DARK THEME ===== */
body[data-theme="dark"] {
    --bg-primary: #1a1d23;
    --bg-secondary: #23272e;
    --bg-card: #2a2e36;
    --bg-dark: #15171c;
    --bg-tertiary: #31363f;
    --border-color: #3d4250;
    --text-primary: #E8E6E1;
    --text-secondary: #A0A8B4;
    --text-muted: #6B7280;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Dark overrides for hardcoded colors */
body[data-theme="dark"] .form-input,
body[data-theme="dark"] .form-textarea,
body[data-theme="dark"] .form-select {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body[data-theme="dark"] .footer {
    background: #111318;
}

body[data-theme="dark"] .modal-overlay {
    background: rgba(0,0,0,0.75);
}

body[data-theme="dark"] .calendar-day.has-event {
    background: rgba(255, 152, 0, 0.15);
}

body[data-theme="dark"] .calendar-day.other-month {
    background: var(--bg-secondary);
}

body[data-theme="dark"] .alert-success {
    background: #1a3a2a;
    color: #6fcf97;
    border-color: #2d5a3f;
}

body[data-theme="dark"] .alert-error {
    background: #3a1a1a;
    color: #f09898;
    border-color: #5a2d2d;
}

body[data-theme="dark"] .alert-warning {
    background: #3a3018;
    color: #f0d080;
    border-color: #5a4a28;
}

body[data-theme="dark"] .alert-info {
    background: #1a2a3a;
    color: #80c0e0;
    border-color: #2d3f5a;
}

body[data-theme="dark"] .card-footer {
    border-top-color: var(--border-color);
}

body[data-theme="dark"] .modal-header,
body[data-theme="dark"] .modal-footer {
    border-color: var(--border-color);
}

body[data-theme="dark"] .title-main {
    text-shadow: 3px 3px 0 var(--primary-blue-dark),
                 -1px -1px 0 rgba(0,0,0,0.5),
                 1px -1px 0 rgba(0,0,0,0.5),
                 -1px 1px 0 rgba(0,0,0,0.5);
}

body[data-theme="dark"] .search-input-group,
body[data-theme="dark"] .filter-select {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body[data-theme="dark"] .search-input-group input {
    color: var(--text-primary);
}

body[data-theme="dark"] .member-avatar {
    border-color: var(--border-color);
}

body[data-theme="dark"] .post-actions {
    border-top-color: var(--border-color);
}

body[data-theme="dark"] .new-post-form textarea {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

body[data-theme="dark"] .new-post-form textarea:focus {
    background: var(--bg-tertiary);
}

body[data-theme="dark"] .leaderboard-item {
    border-bottom-color: var(--border-color);
}

body[data-theme="dark"] .calendar-day {
    border-color: var(--border-color);
}

body[data-theme="dark"] .faq-item {
    border-color: var(--border-color);
}

body[data-theme="dark"] .faq-question {
    color: var(--text-primary);
}

/* Danger zone (profile delete account) */
.danger-zone {
    background: #FFF5F5;
    border: 1px solid #FFCDD2;
}

.danger-zone h4 {
    color: #C62828;
}

body[data-theme="dark"] .danger-zone {
    background: rgba(198, 40, 40, 0.1);
    border-color: rgba(198, 40, 40, 0.3);
}

body[data-theme="dark"] .danger-zone h4 {
    color: #ef5350;
}

/* Nav active link: dark text on gold background */
body[data-theme="dark"] .nav-link.active {
    color: #1a1d23;
}

/* Team badge border in about page */
body[data-theme="dark"] .team-badge {
    border-color: var(--bg-secondary);
}

/* ===== GAME PAGE BACKGROUND ===== */
body.game-page {
    background-image: url('../assets/images/background-theme-light.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center bottom;
}

body.game-page .main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 248, 231, 0.75);
    z-index: -1;
    pointer-events: none;
}

body[data-theme="dark"].game-page {
    background-image: url('../assets/images/background-theme-dark.jpg');
}

body[data-theme="dark"].game-page .main-content::before {
    background: rgba(26, 29, 35, 0.80);
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.theme-toggle .fa-sun {
    display: none;
}

body[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

body[data-theme="dark"] .theme-toggle .fa-sun {
    display: inline-block;
    color: var(--primary-gold);
}

/* ===== THEME TRANSITION ===== */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
}

.title-main {
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    color: var(--primary-blue);
    text-shadow: 3px 3px 0 var(--primary-blue-dark),
                 -1px -1px 0 #fff,
                 1px -1px 0 #fff,
                 -1px 1px 0 #fff;
}

.title-accent {
    font-family: 'Pacifico', cursive;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 20px 0;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    max-width: none;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    box-shadow: var(--shadow-glow);
    transition: transform 0.3s ease;
    transform-origin: top left;
}

.logo-img:hover {
    transform: scale(2);
    z-index: 100;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    color: white;
    text-shadow: 2px 2px 0 var(--primary-blue-dark);
    line-height: 1;
}

.logo-subtitle {
    font-family: 'Pacifico', cursive;
    font-size: 0.9rem;
    color: var(--primary-gold);
}

/* Navigation */
.nav-main {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--primary-gold);
    color: var(--text-primary);
}

.nav-guest .nav-link,
.nav-guest .nav-link.active,
.nav-guest .nav-link:hover {
    background: transparent;
    color: white;
}

.nav-link i {
    font-size: 1.1rem;
}

/* Navigation secondaire (2e ligne) */
.nav-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    order: 10;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar-small {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    cursor: pointer;
    transition: var(--transition-fast);
    object-fit: cover;
}

.user-avatar-small:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.user-points {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-gold);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
}

.user-level {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

/* Search Bar style Skool */
.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 8px 12px;
    gap: 8px;
    min-width: 120px;
    flex-shrink: 1;
}

.search-bar i {
    color: rgba(255, 255, 255, 0.7);
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Music Player */
.music-player {
    position: relative;
    flex-shrink: 0;
}

.music-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.music-toggle:hover,
.music-toggle.active {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.music-toggle.playing {
    animation: musicPulse 1.5s ease-in-out infinite;
    color: var(--primary-gold);
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.music-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 15px;
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
}

.music-panel.open {
    display: block;
}

.music-track-name {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.music-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.music-controls button:hover {
    background: var(--primary-blue);
    color: white;
}

.music-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-volume i {
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.music-volume input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
}

.music-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(30, 136, 229, 0.4);
}

.music-volume input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 4px rgba(30, 136, 229, 0.4);
}

@media (max-width: 600px) {
    .music-panel {
        position: fixed;
        top: auto;
        bottom: 70px;
        right: 10px;
        left: 10px;
        min-width: 0;
    }
}

/* Header Icons style Skool */
.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: var(--transition-fast);
    position: relative;
    font-size: 1.2rem;
}

.header-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.notification-icon .notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #f44336;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* User Avatar Container with Level Badge */
.user-avatar-container {
    position: relative;
    display: inline-block;
}

.user-level-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    background: var(--primary-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
    color: white;
    box-shadow: 0 4px 0 #c45c00, var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #c45c00, var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #c45c00;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    box-shadow: 0 4px 0 #1B5E20, var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #1B5E20, var(--shadow-md);
}

.btn-gold {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #FFA500 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 0 #CC9900, var(--shadow-sm);
}

.btn-danger {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: white;
    box-shadow: 0 4px 0 #922B21, var(--shadow-sm);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.2rem;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

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

.card-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    padding: 20px;
}

.card-header h2, .card-header h3 {
    margin: 0;
}

.card-body {
    padding: 25px;
}

.card-footer {
    padding: 15px 25px;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 14px 18px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    background: white;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.form-error {
    color: #E74C3C;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ===== AVATAR SYSTEM ===== */
.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-gold);
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    transition: var(--transition-normal);
}

.avatar:hover {
    transform: scale(1.05);
}

.avatar-level-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.avatar-large {
    width: 200px;
    height: 200px;
}

.avatar-large .avatar-level-badge {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* Avatar Evolution Display */
.avatar-evolution {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border-radius: var(--border-radius-lg);
}

.evolution-stage {
    text-align: center;
    padding: 15px;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.evolution-stage.current {
    background: var(--primary-gold);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.evolution-stage.locked {
    opacity: 0.4;
    filter: grayscale(100%);
}

.evolution-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* ===== PROGRESS BAR ===== */
.progress-container {
    width: 100%;
    margin: 15px 0;
}

.progress-bar {
    height: 25px;
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: #20C997;
    border-radius: 15px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-weight: 700;
    color: white;
    font-size: 0.85rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

/* ===== COMMUNITY FEED ===== */
.feed-container {
    max-width: 700px;
    margin: 0 auto;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 20px 10px;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-gold);
}

.post-user-info {
    flex: 1;
}

.post-username {
    font-weight: 700;
    color: var(--text-primary);
}

.post-user-level {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--primary-orange);
    font-weight: 600;
}

.post-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-content {
    padding: 10px 20px 20px;
    font-size: 1rem;
    line-height: 1.7;
}

.post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.post-actions {
    display: flex;
    gap: 20px;
    padding: 15px 20px;
    border-top: 1px solid var(--bg-secondary);
}

.post-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.post-action:hover {
    background: var(--bg-secondary);
    color: var(--primary-blue);
}

.post-action.liked {
    color: #E74C3C;
}

.post-action i {
    font-size: 1.2rem;
}

/* New Post Form */
.new-post-form {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
}

.new-post-form textarea {
    border: none;
    background: var(--bg-secondary);
    resize: none;
    min-height: 80px;
}

.new-post-form textarea:focus {
    background: white;
}

/* ===== LEADERBOARD ===== */
.leaderboard {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.leaderboard-header {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #FFA500 100%);
    padding: 20px;
    text-align: center;
}

.leaderboard-header h3 {
    color: var(--text-primary);
    margin: 0;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--bg-secondary);
    transition: var(--transition-fast);
}

.leaderboard-item:hover {
    background: var(--bg-secondary);
}

.leaderboard-rank {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border-radius: 50%;
}

.leaderboard-rank.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.leaderboard-rank.silver {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: white;
}

.leaderboard-rank.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: white;
}

.leaderboard-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.leaderboard-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-gold);
}

.leaderboard-points {
    font-weight: 700;
    color: var(--primary-orange);
}

/* ===== CALENDAR ===== */
.calendar-container {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
}

.calendar-header h2 {
    font-size: 1.1rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.calendar-nav:hover {
    background: rgba(255,255,255,0.3);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day-header {
    padding: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.calendar-day {
    padding: 8px;
    text-align: center;
    border: 1px solid var(--bg-secondary);
    min-height: 55px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.calendar-day:hover {
    background: var(--bg-secondary);
}

.calendar-day.today {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #FFA500 100%);
    color: var(--text-primary);
    font-weight: 700;
}

.calendar-day.other-month {
    color: var(--text-muted);
    background: #fafafa;
}

.calendar-day.has-event {
    position: relative;
    background: #ffe0b3;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), #ff8c42);
    border-radius: 4px 4px 0 0;
    animation: pulse-event 2s ease-in-out infinite;
}

.calendar-day.has-event::before {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 6px;
    height: 6px;
    background: var(--primary-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.3);
}

.calendar-day .participant-count {
    display: block;
    font-size: 0.7rem;
    color: var(--primary-orange);
    font-weight: 600;
    margin-top: 4px;
}

.calendar-day .participant-count::before {
    content: '\f0c0';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 3px;
    font-size: 0.65rem;
}

@keyframes pulse-event {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Events List */
.event-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.event-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.event-date {
    text-align: center;
    padding: 8px 10px;
    background: var(--primary-blue);
    color: white;
    border-radius: var(--border-radius);
    min-width: 50px;
}

.event-date-day {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.event-date-month {
    font-size: 0.7rem;
    text-transform: uppercase;
}

.event-info h4 {
    margin: 0 0 5px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.event-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== PROFILE PAGE ===== */
.profile-header {
    background: linear-gradient(135deg, var(--sky-light) 0%, #FFE4B5 50%, var(--primary-green) 100%);
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23FFF8E7' d='M0,50 C300,100 600,0 900,50 C1200,100 1350,25 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
    background-size: cover;
}

.profile-avatar-section {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.profile-name {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin: 10px 0 5px;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.5);
}

.profile-level-title {
    font-family: 'Pacifico', cursive;
    font-size: 1.3rem;
    color: var(--primary-orange);
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

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

.profile-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.profile-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--bg-secondary);
}

.modal-header h3 {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--bg-secondary);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-warning {
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEEBA;
}

.alert-info {
    background: #D1ECF1;
    color: #0C5460;
    border: 1px solid #BEE5EB;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-gold);
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-glow {
    animation: glow 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-blue); }
.text-success { color: var(--primary-green); }
.text-warning { color: var(--primary-orange); }
.text-gold { color: var(--primary-gold); }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.hidden { display: none !important; }

/* ===== CLASSROOM ===== */
.classroom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Grille des cours */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

@media (min-width: 1900px) {
    .courses-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.course-card {
    background: var(--bg-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

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

.course-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a3a3a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.course-title-overlay {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.course-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-info h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.course-info p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    flex: 1;
    margin-bottom: 15px;
}

.course-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar-mini {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-mini .progress-fill {
    height: 100%;
    background: #20C997;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-percent {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* Vue dtaille du cours */
.course-detail {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    background: var(--bg-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 70vh;
}

.course-sidebar {
    background: #1a1a1a;
    padding: 0;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.course-header-mini {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 15px;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: white;
}

.course-header-mini h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.progress-bar-container {
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-bar-container .progress-bar {
    height: 100%;
    background: #20C997;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* Liste des modules */
.module-list {
    padding: 10px 0;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.module-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.module-item.active {
    background: rgba(255, 193, 7, 0.15);
    border-left-color: var(--primary-gold);
    color: white;
}

.module-item.completed .module-status {
    color: var(--primary-green);
}

.module-status {
    width: 24px;
    text-align: center;
}

.module-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 0.8rem;
}

.module-title {
    font-size: 0.95rem;
}

.sidebar-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    margin-top: 10px;
    background: rgba(255, 193, 7, 0.1);
    color: var(--primary-gold);
    font-size: 0.9rem;
}

.sidebar-section-icon {
    font-size: 1.2rem;
}

/* Contenu du module */
.module-content {
    padding: 40px;
    color: white;
    overflow-y: auto;
}

.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.module-header h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.completed-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(76, 175, 80, 0.2);
    color: var(--primary-green);
    border-radius: 20px;
    font-size: 0.85rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-duration {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.module-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.module-description p {
    margin-bottom: 15px;
    color: rgba(255,255,255,0.85);
}

.content-points {
    list-style: none;
    padding: 0;
}

.content-points li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: rgba(255,255,255,0.85);
}

.content-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-gold);
    border-radius: 50%;
}

.next-steps {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

.next-steps h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.next-steps ol {
    padding-left: 20px;
}

.next-steps li {
    padding: 8px 0;
    color: rgba(255,255,255,0.8);
}

.resources-section {
    margin-bottom: 30px;
}

.resources-section h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

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

.resources-list li {
    margin-bottom: 10px;
}

.resources-list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
    text-decoration: none;
    padding: 10px 15px;
    background: rgba(30, 136, 229, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.resources-list a:hover {
    background: rgba(30, 136, 229, 0.2);
}

.module-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.pagination-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-current {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--primary-gold);
    color: var(--text-primary);
    border-radius: 50%;
    font-weight: 700;
}

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

/* ===== MEMBERS PAGE ===== */
.members-container {
    max-width: 1200px;
    margin: 0 auto;
}

.members-header {
    margin-bottom: 25px;
}

.members-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

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

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
}

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

.members-filters {
    margin-bottom: 25px;
}

.filters-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 10px 15px;
}

.search-input-group i {
    color: var(--text-muted);
}

.search-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    background: var(--bg-card);
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 150px;
}

.filter-select:focus {
    border-color: var(--primary-blue);
    outline: none;
}

/* Grille des membres */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

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

.member-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
}

.member-level-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.member-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.member-stats-mini {
    text-align: right;
    flex-shrink: 0;
}

.member-level-name {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.member-points {
    font-weight: 700;
    color: var(--primary-orange);
}

.member-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Pagination numbers */
.pagination-numbers {
    display: flex;
    gap: 5px;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.pagination-number:hover {
    background: rgba(30, 136, 229, 0.1);
    color: var(--primary-blue);
}

.pagination-number.active {
    background: var(--primary-gold);
    color: var(--text-primary);
    font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
    .search-bar {
        display: none;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

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

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1000px) {
    .nav-link span {
        display: none;
    }

    .nav-secondary {
        flex-wrap: wrap;
    }

    .title-main {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body.game-page {
        background-attachment: scroll;
    }
}

@media (max-width: 600px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .profile-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

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

    .course-detail {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .course-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .module-content {
        padding: 15px;
    }

    .module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .module-header h1 {
        font-size: 1.2rem;
    }

    .module-actions {
        flex-direction: column;
        width: 100%;
    }

    .module-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .header-content {
        gap: 2px;
    }

    .nav-main,
    .nav-secondary {
        gap: 2px;
    }

    .nav-link {
        padding: 6px 6px;
        font-size: 0.8rem;
    }

    .nav-link i {
        font-size: 1rem;
    }

    .nav-secondary .nav-link i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .user-points span {
        display: none;
    }

    .calendar-day {
        padding: 8px;
        min-height: 50px;
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}
