/*
Theme Name: Coco RP
Theme URI: https://cocorp.com
Author: Coco RP Dev Team
Description: Tema premium personalizado, ultra-optimizado y responsivo para el servidor de FiveM Coco RP. Incluye integración en vivo del estado del servidor, normativas y visualización de facciones.
Version: 1.0.0
Text Domain: cocorp
*/

/* --- Variables Globales y Reset --- */
:root {
    --bg-dark: #0a0a0d;
    --bg-card: #13131a;
    --bg-input: #1b1b24;
    --text-main: #f5f5f7;
    --text-muted: #8e8e93;
    --accent: #ff5500;
    --accent-hover: #ff7733;
    --online: #00ff66;
    --offline: #ff3333;
    --border: #22222e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- Header --- */
.site-header {
    background-color: rgba(19, 19, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
}

.site-logo .accent {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-menu a:hover, .nav-menu .current-menu-item a {
    color: var(--accent);
}

/* --- Contenido Principal --- */
.site-main-content {
    min-height: calc(100vh - 180px);
    padding: 40px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Hero Section (Inicio) --- */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: radial-gradient(circle at center, rgba(255, 85, 0, 0.15) 0%, rgba(10, 10, 13, 0) 70%);
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: #fff;
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.6);
}

/* --- Status Widget --- */
.cocorp-status-box {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    max-width: 450px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.status-title {
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}

.status-indicator {
    margin: 20px 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.dot-online { background-color: var(--online); box-shadow: 0 0 12px var(--online); }
.dot-offline { background-color: var(--offline); box-shadow: 0 0 12px var(--offline); }
.text-online { color: var(--online); }
.text-offline { color: var(--offline); }

.player-count {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 16px;
}

.player-count strong {
    color: var(--text-main);
    font-size: 22px;
}

/* --- Secciones de Cuadrículas / Tarjetas --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 85, 0, 0.4);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

/* --- Facciones & Logos Null Asset Layout --- */
.faction-logo-placeholder {
    width: 100px;
    height: 100px;
    background-color: var(--bg-input);
    border: 2px dashed #3a3a4a;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faction-card {
    text-align: center;
}

/* --- Normativas Accordion --- */
.rule-section {
    margin-bottom: 40px;
}

.rule-section h2 {
    font-size: 24px;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.rule-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.rule-item h3 {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 8px;
}

/* --- Footer --- */
.site-footer {
    background-color: #050507;
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-container p {
    margin-bottom: 10px;
}

.footer-disclaimer {
    font-size: 12px;
    opacity: 0.6;
}

@media(max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .hero h1 {
        font-size: 38px;
    }
}
