/* ===================================
   MEPHIAHOST DASHBOARD - CSS PRINCIPAL
   Thème cohérent avec le site principal
   =================================== */

/* Reset et Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs principales (identiques au site) */
    --primary-blue: #3b82f6;
    --primary-blue-dark: #2563eb;
    --primary-blue-light: #60a5fa;
    
    --bg-black: #0a0a0a;
    --bg-dark: #111111;
    --bg-darker: #1a1a1a;
    --bg-card: rgba(15, 15, 30, 0.6);
    
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --text-light: #e5e7eb;
    
    /* Ombres */
    --shadow-blue: 0 10px 40px rgba(59, 130, 246, 0.3);
    --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Bordures */
    --border-radius: 12px;
    --border-color: rgba(59, 130, 246, 0.3);
}

html {
    scroll-behavior: smooth;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.25), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.2), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15), transparent 60%),
        var(--bg-black);
    background-attachment: fixed;
    min-height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: transparent;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   COMPOSANTS COMMUNS
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Boutons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-blue);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

/* Cartes */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-blue-light);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

/* ===================================
   MODAL ANTI-ADBLOCK
   =================================== */

.adblock-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.adblock-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.adblock-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.adblock-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-white);
}

.adblock-message {
    margin-bottom: 30px;
}

.adblock-message p {
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.adblock-instructions {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.adblock-instructions h3 {
    color: var(--primary-blue-light);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.adblock-instructions ol {
    color: var(--text-light);
    padding-left: 20px;
}

.adblock-instructions li {
    margin-bottom: 8px;
    font-size: 1rem;
}

.adblock-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ===================================
   PUBLICITÉS
   =================================== */

.ad-container {
    margin: 20px 0;
    text-align: center;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-header {
    margin-bottom: 30px;
}

.ad-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    z-index: 100;
}

.ad-footer {
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Responsive ads */
@media (max-width: 1400px) {
    .ad-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .ad-container {
        margin: 15px 0;
        min-height: 60px;
    }
}

/* ===================================
   UTILITAIRES
   =================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .adblock-content {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .adblock-content h2 {
        font-size: 1.5rem;
    }
    
    .adblock-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .adblock-content {
        padding: 25px 15px;
    }
    
    .adblock-icon {
        font-size: 3rem;
    }
    
    .adblock-content h2 {
        font-size: 1.3rem;
    }
}