/*
 * ARCHIVO: main.css
 * TEMA: SXXXY.CLUB
 * ARQUITECTURA: CSS Variables, Header Sticky Unificado, Menús Desplegables en Negro y Grid 3 Columnas.
 */

/* ==========================================================================
   1. VARIABLES GLOBALES & DESIGN SYSTEM
   ========================================================================== */
:root {
    --bg-main: #FFFFFF;
    --bg-secondary: #CCCCCC;
    --bg-alt-yellow: #FFCC00;
    --bg-dark-menu: #000000;
    --text-main: #000000;
    --text-accent: #FF0000;
    --text-inverse: #FFFFFF;
    --font-primary: 'Inter', sans-serif;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, 
a:focus {
    color: var(--text-accent);
}

/* ==========================================================================
   3. CABECERA FLOTANTE Y STICKY (FIJA AL SCROLL)
   ========================================================================== */
#masthead,
.site-header {
    position: sticky !important;
    top: 0;
    z-index: 9999;
    background: transparent !important;
    padding: 12px 15px 0 15px;
    width: 100%;
}

.header-container {
    max-width: 1140px;
    margin: 0 auto;
    background-color: var(--bg-alt-yellow) !important;
    border-radius: 14px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.site-branding {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-logo {
    height: 52px !important;
    width: auto !important;
    max-width: 300px !important;
    object-fit: contain;
}

/* ==========================================================================
   4. NAVEGACIÓN Y BOTONES UNIFICADOS (HEADER ACTIONS)
   ========================================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-navigation {
    display: flex;
    align-items: center;
    position: relative;
}

.main-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Enlaces Directos Desktop */
.desktop-direct-menu {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

/* Ocultar el menú móvil y botón hamburguesa en Desktop por defecto */
.mobile-drawer-menu,
.menu-toggle {
    display: none !important;
}

/* Botones con estilo compartido (Lupa, Idioma, Network y Enlaces) */
.header-nav-btn,
.header-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-nav-btn:hover,
.header-icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--text-accent);
}

/* ==========================================================================
   5. ACORDEONES Y MENÚS DESPLEGABLES (FONDO NEGRO PURO)
   ========================================================================== */
.header-dropdown-wrap {
    position: relative;
}

.header-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--bg-dark-menu) !important;
    border: 1px solid #222222;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    list-style: none !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    min-width: 190px;
    z-index: 10001;
}

/* Despliegue en hover o vía JS */
.header-dropdown-wrap:hover .header-dropdown-menu,
.header-dropdown-wrap.is-open .header-dropdown-menu,
.pxrn-lang-switch.is-open .lang-dropdown-menu {
    display: block;
}

.header-dropdown-menu li {
    width: 100%;
    margin: 0;
}

.header-dropdown-menu li a,
.header-dropdown-menu button {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-inverse) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.header-dropdown-menu li a:hover,
.header-dropdown-menu button:hover {
    background-color: #151515 !important;
    color: var(--text-accent) !important;
    padding-left: 22px;
}

/* Cajón de Búsqueda Desplegable con Fondo Negro */
.search-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark-menu) !important;
    padding: 18px 20px;
    border-bottom: 3px solid var(--text-accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.search-drawer.is-active {
    display: block;
}

.search-drawer-container form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-field-icon {
    color: var(--text-inverse);
}

.search-drawer-container input {
    flex: 1;
    padding: 10px 14px;
    background: #151515;
    border: 1px solid #333333;
    color: #FFFFFF;
    border-radius: 4px;
    font-size: 14px;
}

.search-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-inverse);
}

/* ==========================================================================
   6. HERO BANNER (1140px ALINEADO)
   ========================================================================== */
.hero-ad,
.ad-spot {
    width: 100%;
    margin: 20px auto 35px auto;
}

.hero-ad a,
.hero-ad picture {
    display: block;
    width: 100%;
}

.hero-ad img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   7. PORN DIRECTORY: GRID DE 3 COLUMNAS
   ========================================================================== */
.page-id-2715 .posts-grid,
.porn-directory-grid,
.directory-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
}

/* ==========================================================================
   8. GALERÍA SMART GRID & LIGHTBOX MODAL
   ========================================================================== */
.smart-grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.smart-grid-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    cursor: zoom-in;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.smart-grid-gallery img:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 0, 0, 0.2);
}

.lightbox-modal {
    display: none; 
    position: fixed;
    inset: 0;
    z-index: 99999; 
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-content-wrapper img {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.15);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--text-accent);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}

/* ==========================================================================
   9. PIE DE PÁGINA (FOOTER)
   ========================================================================== */
#colophon,
.site-footer {
    background: transparent !important;
    padding: 20px 15px 40px 15px;
    width: 100%;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    background-color: var(--bg-alt-yellow) !important;
    border-radius: 16px;
    padding: 40px 35px 25px 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    color: var(--text-main);
}

.footer-columns-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr 1.4fr;
    gap: 30px;
    margin-bottom: 35px;
}

.footer-title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 18px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--text-main);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.footer-links li a:hover {
    color: var(--text-accent);
}

/* Logotipo Footer Agrandado */
.footer-logo-wrap img {
    height: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    margin-bottom: 15px;
    object-fit: contain;
}

.brand-bio {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 14px;
    color: #222;
}

.network-info {
    font-size: 11px;
    line-height: 1.4;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    padding-top: 10px;
    margin-bottom: 15px;
}

.network-link {
    font-weight: 800;
    color: var(--text-accent);
}

.social-pills {
    display: flex;
    gap: 8px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--text-main);
    color: #FFFFFF !important;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.social-btn:hover {
    background: var(--text-accent);
}

/* Columna 4: Statement +18 */
.badge-18-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    text-decoration: none;
}

.badge-18 {
    background: var(--text-accent);
    color: #FFF;
    font-weight: 900;
    font-size: 13px;
    padding: 3px 7px;
    border-radius: 4px;
}

.badge-text {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.badge-18-wrap:hover .badge-text {
    color: var(--text-accent);
}

.compliance-statement {
    margin-bottom: 12px;
}

.statement-title {
    font-size: 10px;
    font-weight: 800;
    margin: 0 0 3px 0;
}

.disclaimer-text {
    font-size: 10.5px;
    line-height: 1.4;
    color: #333;
    margin: 0;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    padding-top: 15px;
    text-align: center;
}

.footer-bottom-bar .copyright {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* ==========================================================================
   10. MODAL AGE GATE
   ========================================================================== */
.age-gate-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.age-gate-modal.is-active {
    display: flex;
}

.age-gate-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(6px);
}

.age-gate-content {
    position: relative;
    background: var(--bg-main);
    color: var(--text-main);
    max-width: 500px;
    width: 90%;
    padding: 35px 25px;
    border-radius: 8px;
    text-align: center;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.age-gate-logo {
    max-height: 42px;
    width: auto;
    margin: 0 auto 20px auto;
}

.age-gate-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-accent);
    margin-bottom: 15px;
}

.age-gate-text p {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
}

.age-gate-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.btn-gate {
    padding: 10px 20px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn-enter {
    background: var(--text-accent);
    color: #FFFFFF;
}

.btn-exit {
    background: var(--bg-secondary);
    color: var(--text-main);
}

/* ==========================================================================
   11. BREAKPOINTS RESPONSIVE
   ========================================================================== */

/* TABLETS Y DISPOSITIVOS MEDIANOS (< 992px) */
@media (max-width: 992px) {
    .desktop-direct-menu,
    .external-links-desktop {
        display: none !important;
    }

    .menu-toggle {
        display: inline-flex !important;
    }

    .main-navigation .nav-menu.mobile-drawer-menu {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        width: 250px;
        background-color: var(--bg-dark-menu) !important;
        border: 1px solid #222222;
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
        padding: 8px 0 !important;
        z-index: 10002;
    }

    .main-navigation .nav-menu.mobile-drawer-menu.is-active {
        display: flex !important;
        flex-direction: column;
    }

    .mobile-drawer-menu li a {
        padding: 10px 18px !important;
        color: #FFFFFF !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        display: block;
    }

    .mobile-drawer-menu li a:hover {
        background-color: #151515 !important;
        color: var(--text-accent) !important;
    }

    .drawer-divider {
        height: 1px;
        background: #222222;
        margin: 6px 0;
    }

    .drawer-heading {
        padding: 6px 18px 2px 18px;
        font-size: 10px;
        color: #777777;
        font-weight: 800;
        letter-spacing: 0.8px;
    }

    .page-id-2715 .posts-grid,
    .porn-directory-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .footer-columns-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* SMARTPHONES (< 768px) */
@media (max-width: 768px) {
    #masthead,
    .site-header {
        padding: 8px 8px 0 8px !important;
    }

    .header-container {
        padding: 6px 12px !important;
        gap: 8px !important;
        border-radius: 10px !important;
    }

    .site-branding {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-logo {
        height: 32px !important;
        max-width: 140px !important;
    }

    .header-actions {
        gap: 4px !important;
        flex-shrink: 0;
    }

    .header-icon-btn {
        padding: 6px !important;
        font-size: 11px !important;
    }

    .header-icon-btn span.material-symbols-outlined {
        font-size: 20px !important;
    }

    .arrow-icon,
    .btn-label {
        display: none !important;
    }

    .active-lang-code {
        font-size: 10px !important;
        font-weight: 900;
    }

    .search-drawer {
        padding: 12px 14px !important;
    }

    .search-drawer-container input {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
}

/* SMARTPHONES PEQUEÑOS (< 600px) */
@media (max-width: 600px) {
    .page-id-2715 .posts-grid,
    .porn-directory-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-container {
        padding: 25px 20px !important;
    }

    .footer-columns-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
}