/* public_html/css/global.css */

/* --- VARIABLES --- */
:root {
    --bg-dark-primary: #0D0D11;
    --bg-dark-secondary: #1A1A21;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --accent-primary: #E84393;
    --accent-secondary: #FF74A4;
    --gradient-primary: linear-gradient(90deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    --font-family: 'Poppins', sans-serif;
    --success-color: #28a745; /* Verde */
    --error-color: #dc3545; /* Rojo */
    --info-color: #17a2b8; /* Azul claro */
    --warning-color: #ffc107; /* Amarillo para avisos */
}

/* --- RESETEO Y ESTILOS GLOBALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    scroll-behavior: smooth; /* Added for smoother scrolling */
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark-primary);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title h2 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Common button styles */
.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
}
.btn-secondary {
    background-color: var(--bg-dark-secondary);
    border-color: #333;
    color: var(--text-primary);
    border-radius: 50px;
}
.btn-full-width {
    width: 100%;
}
.mt-3 { margin-top: 1rem; }
.text-secondary { color: var(--text-secondary); }

/* Common message styles */
.info-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-message.general-warning-message {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.15);
}
.info-message i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Floating Buttons (WhatsApp, Discord) */
.fixed-bottom-element {
    position: fixed;
    z-index: 1000; /* Ensure it's above most content */
    right: 20px;
    transition: bottom 0.3s ease-out; /* Smooth transition when position changes */
}

.whatsapp-floating-button {
    background-color: #25D366; /* WhatsApp green */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    bottom: 90px; /* Position above Discord button by default */
}

.whatsapp-floating-button:hover {
    background-color: #1DA851; /* Darker green on hover */
    transform: scale(1.05);
}

.discord-floating-button {
    background-color: #7289DA; /* Discord purple */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    bottom: 20px; /* Default bottom position */
}

.discord-floating-button:hover {
    background-color: #677BC4; /* Darker purple on hover */
    transform: scale(1.05);
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark-secondary); /* Using a theme variable */
    color: var(--text-primary);
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 1001; /* Higher than floating buttons */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.cookie-consent-banner p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-consent-banner .cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-consent-banner button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    color: white; /* Default text color for buttons */
}

.cookie-consent-banner button#accept-cookies {
    background-color: var(--accent-primary);
}

.cookie-consent-banner button#accept-cookies:hover {
    background-color: #C2277B; /* Darker accent */
}

.cookie-consent-banner button#deny-cookies {
    background-color: var(--error-color);
}

.cookie-consent-banner button#deny-cookies:hover {
    background-color: #a71d2a; /* Darker error color */
}

/* Ban Modal Styles */
.ban-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Ensure it's on top of everything */
}

.ban-modal-content {
    background-color: var(--bg-dark-secondary);
    color: var(--text-primary);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
    border: 1px solid var(--accent-primary); /* Add a border for visual appeal */
}

.ban-modal-content h2 {
    color: var(--error-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.ban-modal-content p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.ban-modal-button {
    background-color: var(--accent-primary);
    color: var(--text-primary);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.ban-modal-button:hover {
    background-color: #C2277B; /* Darker accent */
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Mobile Compatibility Warning --- */
.mobile-warning-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(26, 26, 30, 0.95); /* bg-dark-secondary with opacity */
    color: var(--text-primary); /* text-primary */
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); /* shadow-dark */
    z-index: 9999; /* Ensures it's on top of almost everything */
    max-width: 90%;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
    
    /* Hidden by default on all screens, controlled by JS logic for showing/hiding.
       This is the base state. */
    display: none; /* Controlled by JS, but hidden by default */
    
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mobile-warning-message p {
    margin: 0;
    color: var(--text-secondary);
}

.mobile-warning-message .close-mobile-warning {
    background-color: var(--accent-primary);
    color: var(--text-primary);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.mobile-warning-message .close-mobile-warning:hover {
    background-color: #C2277B; /* Darker accent-primary */
}

/* General responsive adjustments */
@media (max-width: 768px) {
    .cookie-consent-banner {
        flex-direction: column;
        padding: 10px 15px;
    }

    .cookie-consent-banner p {
        font-size: 0.8rem;
    }

    .cookie-consent-banner button {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .whatsapp-floating-button,
    .discord-floating-button {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    /* Rule to force display as flex ONLY when screen is mobile size,
       if JS removes .hidden class, this makes it visible with flex. */
    .mobile-warning-message:not(.hidden) { /* Show only if not explicitly hidden by JS */
        display: flex;
    }
}
