/* ===================================
   CANAL SUD - DESIGN MODERNE 2025
   Plateforme TV Streaming Professionnelle
   =================================== */

/* Variables CSS pour un design moderne */
:root {
    /* Couleurs principales - Thème Bleu Professionnel */
    --primary-color: #003560; /* Bleu fourni */
    --primary-dark: #002340;  /* Teinte plus foncée */
    --primary-light: #004c8c; /* Teinte plus claire */
    --secondary-color: #f5c518; /* Or pour les accents */
    --accent-color: #00d4ff; /* Bleu cyan pour les éléments interactifs */
    
    /* Palettes de gris modernes (Thème Sombre par défaut) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --bg-card: #181818;
    --bg-card-hover: #202020;
    --bg-modal: #1c1c1c;
    
    /* Texte (Thème Sombre par défaut) */
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-muted: #b3b3b3;
    --text-dark: #8c8c8c;
    
    /* Status colors */
    --success: #46d369;
    --warning: #ffa500;
    --error: #e50914;
    --info: #00b4d8;
    
    /* Espacements fluides */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Bordures */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    
    /* Ombres modernes */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.5);
    
    /* Typographie moderne */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
    
    /* Tailles de police fluides */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.6rem + 1.375vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.9rem + 1.75vw, 3rem);
    --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 4rem);
    
    /* Transitions fluides */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --container-xl: 1280px;
    
    /* Header height */
    --header-height: 80px;
}

/* Variables pour le thème clair */
.light-theme {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f5f7;
    --bg-modal: #ffffff;
    
    --text-primary: #1d1d1f;
    --text-secondary: #515154;
    --text-muted: #86868b;
    --text-dark: #a1a1a6;
    
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.15);
}


/* Reset moderne */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-base), color var(--transition-base);
    padding-top: var(--header-height); /* Padding par défaut pour toutes les pages */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===================================
   COMPONENTS - BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-base);
    white-space: nowrap;
}

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

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.light-theme .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-lg);
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
    border-radius: var(--radius-sm);
}

.btn-danger {
    background-color: var(--error);
    color: white;
    border-color: var(--error);
}
.btn-danger:hover {
    background-color: #b00710; /* Darker red */
    border-color: #b00710;
}

.btn .btn-icon {
    font-size: 1.2em;
}


/* ===================================
   STYLES DU HEADER
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}
.light-theme .header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}
.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
}
.light-theme .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}
.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding: var(--space-sm) 0;
}
.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}
.nav-link:hover:after,
.nav-link.active:after {
    transform: scaleX(1);
    transform-origin: left;
}
.logo, .user-section {
    display: flex;
    align-items: center;
}
.user-section {
    gap: var(--space-md);
}
.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.user-avatar {
    width: 38px;
    height: 38px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.user-name-header {
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}
.user-menu-dropdown {
    position: relative;
}
.user-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: var(--space-sm);
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}
.user-menu-btn:hover {
    color: var(--text-primary);
}
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + var(--space-md));
    right: 0;
    background: var(--bg-modal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    display: none;
    animation: scaleIn 0.2s ease-out;
    transform-origin: top right;
    overflow: hidden;
}
.light-theme .user-dropdown-menu {
    border-color: rgba(0, 0, 0, 0.1);
}
.user-dropdown-menu.show {
    display: block;
}
.dropdown-item {
    color: var(--text-primary);
    padding: var(--space-md);
    display: block;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}
.light-theme .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
}
.logout-item {
    color: var(--primary-light) !important;
    font-weight: 600;
}
.logout-item:hover {
     background: rgba(0, 53, 96, 0.2) !important;
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}


/* ===================================
   STYLES DES PAGES
   =================================== */

/* Sections */
.main-content {
    padding-top: var(--space-3xl);
}
.section {
    margin-bottom: var(--space-3xl);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}
.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
}

/* Grille de vidéos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}
.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-slow);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}
.light-theme .video-card {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
}
.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}
.light-theme .video-card:hover {
    box-shadow: var(--shadow-lg);
}
.video-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9; /* MODIFIÉ ICI */
    position: relative;
    overflow: hidden;
    background-color: var(--bg-tertiary);
}
.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 53, 96, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: white;
    transition: all var(--transition-base);
    z-index: 10;
}
.video-card:hover .play-button {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}
.favorite-btn {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.light-theme .favorite-btn {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
}
.favorite-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}
.watch-progress {
    position: absolute;
    bottom: var(--space-sm);
    left: var(--space-sm);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
}
.watch-progress.completed {
    background-color: var(--success);
}
.video-info {
    padding: var(--space-lg);
}
.video-badges {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}
.badge {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-lg);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
}
.badge-flash {
    background: var(--error);
    color: white;
}
.badge-category {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}
.light-theme .badge-category {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}
.video-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}
.video-description {
    color: var(--text-muted);
    font-size: var(--text-sm);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin-bottom: var(--space-md);
}
.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-xs);
    color: var(--text-dark);
}

/* Section Hero Principale (Layout standard) */
.hero-main {
    height: calc(100vh - var(--header-height));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: var(--space-3xl) var(--space-lg);
    overflow: hidden;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    filter: brightness(0.6);
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 50%); /* MODIFIÉ ICI */
    z-index: 2;
}
.hero-content-new {
    position: relative;
    z-index: 3;
    max-width: 900px;
    width: 100%;
    animation: fadeInUp 1s ease-out forwards;
}
.hero-badges {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    justify-content: center;
}
.hero-title-new {
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    text-shadow: var(--shadow-lg);
}
.hero-subtitle-new {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto var(--space-xl) auto;
    line-height: 1.5;
}
.hero-actions-new {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}


/* Section En Direct */
.live-section {
    margin-bottom: var(--space-2xl);
}
.live-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
    box-shadow: 0 0 30px rgba(0, 53, 96, 0.4);
    flex-wrap: wrap;
}
.live-card-content {
    flex: 1;
}
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--error);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}
.live-dot {
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.live-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}
.live-description {
    color: var(--text-muted);
    margin-bottom: 0;
}
.live-btn {
    flex-shrink: 0;
}

/* --- MODAL / POPUP --- */
.modal-overlay, .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}
.modal-overlay.visible, .modal[style*="display: flex"] {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: var(--bg-modal);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform var(--transition-base);
}
.light-theme .modal-content {
    border-color: rgba(0, 0, 0, 0.1);
}
.modal-overlay.visible .modal-content, .modal[style*="display: flex"] .modal-content {
    transform: scale(1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.light-theme .modal-header {
    border-color: rgba(0, 0, 0, 0.1);
}
.modal-title, .modal-header h3 {
    font-size: var(--text-xl);
    margin-bottom: 0;
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: var(--text-2xl);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.modal-body {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}
.modal-body strong {
    color: var(--primary-light);
}
.modal-actions, .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}


/* PAGE AUTHENTIFICATION */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    padding: var(--space-xl);
}
.auth-box {
    background: var(--bg-card);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    max-width: 450px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}
.auth-header h1 {
    font-size: var(--text-3xl);
    color: var(--primary-light);
}
.auth-header p {
    color: var(--text-muted);
}
.tabs {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-xs);
    margin-bottom: var(--space-xl);
}
.tab-btn {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}
.tab-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}
.form-group {
    margin-bottom: var(--space-lg);
}
.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-secondary);
}
.form-group input {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: all var(--transition-base);
}
.light-theme .form-group input {
    border-color: rgba(0, 0, 0, 0.1);
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 53, 96, 0.3);
}

/* STYLES DES FORMULAIRES (ADMIN) */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: all var(--transition-base);
    font-family: var(--font-family);
}
.light-theme .form-input,
.light-theme .form-textarea,
.light-theme .form-select {
    border-color: rgba(0, 0, 0, 0.1);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 53, 96, 0.3);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    background-size: 1em;
    padding-right: var(--space-2xl);
}
.light-theme .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231d1d1f' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.alert {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    text-align: center;
    font-weight: 500;
}
.alert.error {
    background: rgba(229, 9, 20, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}
.alert.success {
    background: rgba(70, 211, 105, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

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

/* STYLES DU FOOTER */
.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.light-theme .footer {
    border-top-color: rgba(0, 0, 0, 0.1);
}
.footer-content {
    position: relative;
    z-index: 2;
    padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.light-theme .footer-main {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}
.footer-brand {
    max-width: 400px;
}
.footer-logo {
    margin-bottom: var(--space-lg);
}
.footer-description {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
}
.footer-section {
    display: flex;
    flex-direction: column;
}
.footer-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.footer-link {
    color: var(--text-muted);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    padding: var(--space-xs) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.footer-link:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-xl);
    padding-top: var(--space-lg);
}
.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.copyright {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}
.copyright-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
}
.roleplay-notice::before {
    content: '🎭';
    margin-right: 5px;
}
.roleplay-notice {
    font-size: var(--text-xs);
    color: var(--text-dark);
    font-style: italic;
}
.footer-bottom-center {
    display: flex;
    justify-content: center;
}
.quick-actions {
    display: flex;
    gap: var(--space-sm);
}
.quick-action-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    text-decoration: none;
}
.light-theme .quick-action-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}
.quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.footer-bottom-right {
    display: flex;
    justify-content: flex-end;
}
.footer-social {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.social-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
    white-space: nowrap;
}
.social-links {
    display: flex;
    gap: var(--space-sm);
}
.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    text-decoration: none;
}
.light-theme .social-link {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}
.social-link:hover {
    transform: translateY(-2px) scale(1.1);
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}
.social-link.discord:hover { background: #5865f2; border-color: #5865f2; }
.social-link.youtube:hover { background: #ff0000; border-color: #ff0000; }
.social-link.twitter:hover { background: #1da1f2; border-color: #1da1f2; }
.social-link.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: #bc1888; }
@media (max-width: 1024px) {
    .footer-main { grid-template-columns: 1fr; gap: var(--space-2xl); }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { grid-template-columns: 1fr; gap: var(--space-lg); text-align: center; }
    .footer-bottom-left, .footer-bottom-right { justify-self: center; }
}
@media (max-width: 768px) {
    .footer-content { padding: var(--space-2xl) 0 var(--space-lg); }
    .footer-links { grid-template-columns: 1fr; gap: var(--space-lg); }
    .quick-actions { flex-direction: column; align-items: center; }
    .footer-social { flex-direction: column; gap: var(--space-sm); }
}