/*
Theme Name: Marvic Hockey Custom
Theme URI: https://marvichockey.com/
Author: Antigravity IDE
Author URI: https://gemini.google.com/
Description: Tema premium personalizado oscuro para la tienda de sticks Marvic Hockey.
Version: 1.0.0
Text Domain: marvic-hockey
*/

/* ==========================================================================
   MARVIC HOCKEY REPLICA - CUSTOM CSS SYSTEM
   ========================================================================== */

:root {
    --bg-dark-absolute: #05080f; /* Deeper dark blue from premium design */
    --bg-dark-card: rgba(16, 24, 40, 0.4);
    --bg-dark-hover: rgba(30, 45, 75, 0.7);
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --accent-neon: #00e5ff; /* Cyan Blue */
    --accent-neon-hover: #00bfff;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Importar tipografía moderna si no está cargada */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Outfit:wght@700;900&display=swap');

/* Estilos Globales de la Web */
body {
    background-color: var(--bg-dark-absolute) !important;
    color: var(--text-white) !important;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--text-white);
}

/* Botones Premium con Micro-animaciones */
.button, 
button, 
input[type="submit"], 
.woocommerce a.button, 
.woocommerce button.button {
    background-color: transparent !important;
    color: var(--accent-neon) !important;
    border: 1px solid var(--accent-neon) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 14px 28px !important;
    border-radius: 12px !important; /* Premium rounded edges */
    font-size: 14px !important;
    letter-spacing: 0.1em;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.button:hover, 
button:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover {
    background-color: var(--accent-neon) !important;
    color: var(--bg-dark-absolute) !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

/* Tarjetas de Producto de WooCommerce (Grid de Tienda) */
.woocommerce ul.products li.product, 
.product-card-custom {
    background: var(--bg-dark-card) !important;
    border: 1px solid var(--border-color) !important;
    padding: 20px !important;
    border-radius: 16px !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease !important;
    margin-bottom: 30px !important;
}

.woocommerce ul.products li.product:hover, 
.product-card-custom:hover {
    border-color: var(--accent-neon) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--text-white) !important;
    font-family: var(--font-heading);
    font-size: 18px !important;
    margin: 15px 0 10px 0 !important;
}

.woocommerce ul.products li.product .price {
    color: var(--accent-neon) !important;
    font-family: var(--font-heading);
    font-size: 16px !important;
}

/* Inputs y Selectores */
input[type="text"], 
input[type="number"], 
select {
    background-color: var(--bg-dark-absolute) !important;
    color: var(--text-white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, 
input[type="number"]:focus, 
select:focus {
    border-color: var(--accent-neon) !important;
    outline: none;
}

/* Swatches/Botones personalizados de campos */
.wapf-swatch, .swatch-pill {
    background: var(--bg-dark-absolute);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 10px 18px;
    border-radius: 8px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wapf-swatch.selected, .swatch-pill.active {
    border-color: var(--accent-neon) !important;
    background: rgba(0, 229, 255, 0.1) !important;
    color: var(--accent-neon) !important;
    font-weight: 700;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.custom-header {
    background-color: var(--bg-dark-absolute);
}

.header-logo-section {
    background-color: var(--bg-dark-absolute);
}

.header-nav-section {
    background-color: #0d1117; /* Color oscuro azulado de Marvic */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the nav */
    position: relative;
    min-height: 70px; /* Ensure container has height */
}

/* On Desktop, make logo and utilities absolute to perfectly center the nav */
.header-logo {
    position: absolute;
    left: 80px;
}

.header-logo img {
    width: 160px;
    height: auto;
    display: block;
    object-fit: contain;
}

.header-utilities {
    position: absolute;
    right: 80px;
    display: flex;
    gap: 25px;
    align-items: center;
}

.site-title {
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-heading);
}

.logo-link {
    text-decoration: none;
}

.utility-icon {
    color: var(--text-white);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.utility-icon:hover {
    color: var(--accent-neon);
}

.main-navigation {
    /* No absolute positioning needed, it's centered by the flex container */
    display: block;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
}

.main-navigation li {
    position: relative;
}

.main-navigation li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 0;
    transition: color 0.3s ease;
    display: block;
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item a {
    color: var(--accent-neon);
}

/* Neon underline for active/hover */
.main-navigation li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-neon);
    box-shadow: 0 0 10px var(--accent-neon);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-navigation li a:hover::after,
.main-navigation li.current-menu-item a::after {
    transform: scaleX(1);
}

/* Hamburger Toggle Default (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    padding: 5px;
}
.mobile-menu-toggle:hover {
    color: var(--accent-neon);
}

/* ----------------------------------------------------
   MOBILE HEADER & NAVIGATION (Max 992px)
   ---------------------------------------------------- */
@media (max-width: 992px) {
    .header-container {
        padding: 0 20px;
        justify-content: space-between; /* Space out logo and utilities */
    }
    
    .header-logo {
        position: static; /* Reset from desktop absolute */
    }
    
    .header-logo img {
        width: 130px; /* slightly smaller logo on mobile */
    }

    /* Show hamburger */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Reposition utilities so they fit with the hamburger */
    .header-utilities {
        position: static; /* Reset from desktop absolute */
        gap: 15px;
    }

    /* Transform Main Navigation into a Dropdown Curtain */
    .main-navigation {
        position: absolute;
        top: 100%; /* directly below the header */
        left: 0;
        width: 100%;
        background-color: #0d1117;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        transform: none; /* remove desktop translation */
        
        /* Hide by default */
        display: none;
        flex-direction: column;
        padding: 20px 40px;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .main-navigation.toggled {
        display: block; /* Show when toggled */
        animation: slideDown 0.3s ease forwards;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid #1a2436;
    }

    .main-navigation li a {
        font-size: 16px;
        padding: 15px 0;
    }
    
    .main-navigation li a::after {
        display: none; /* No neon underline on mobile */
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   HERO SECTION (FRONT PAGE)
   ========================================================================== */
.hero-section {
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(13,13,13,1) 100%), url('https://images.unsplash.com/photo-1580748141549-71748dbe0bdc?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.button-primary {
    background-color: var(--accent-neon) !important;
    color: var(--bg-dark-absolute) !important;
    border-color: var(--accent-neon) !important;
}

.button-primary:hover {
    background-color: var(--text-white) !important;
    border-color: var(--text-white) !important;
    color: var(--bg-dark-absolute) !important;
    box-shadow: 0 0 15px rgba(255,255,255,0.4);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.custom-footer {
    background-color: #05080f; /* Premium dark background */
    border-top: 1px solid var(--accent-neon);
    color: var(--text-white);
    padding-top: 60px;
    font-family: var(--font-body);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.brand-column {
    flex: 2;
    min-width: 300px;
}

.footer-logo {
    margin-bottom: 20px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
}

.footer-desc {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 350px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent-neon);
}

.footer-column h4 {
    color: var(--accent-neon);
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-neon);
}

.region-column .tld {
    font-weight: 700;
    margin-right: 8px;
}

.region-column .americas {
    color: #ffd700; /* Gold/Orange */
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
    padding: 25px 0;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-gray);
}

.footer-bottom-container a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-container a:hover {
    color: var(--text-white);
}

.footer-credits {
    display: flex;
    gap: 10px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* ==========================================================================
   LAB THEME REDESIGN - SECRET LABORATORY EXPERIENCE (Global)
   ========================================================================== */

:root {
    --accent-secondary: #00e5ff; /* Electric Blue */
    --accent-tertiary: #f8fafc; /* Cold White */
}

.lab-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #05080f; /* Deep Dark */
    border-bottom: 2px solid var(--accent-neon);
}

/* Base grid for the room */
.lab-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(3);
    transform-origin: top center;
    z-index: 0;
    opacity: 0.3;
}

/* Floating HUD Data (Absolute Elements) */
.hud-element {
    position: absolute;
    color: var(--accent-secondary);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
    z-index: 2;
    opacity: 0.7;
    pointer-events: none;
}
.hud-top-left { top: 40px; left: 40px; }
.hud-bottom-right { bottom: 40px; right: 40px; text-align: right; }
.hud-center-left { top: 50%; left: 40px; transform: translateY(-50%); border-left: 1px solid var(--accent-secondary); padding-left: 10px; }
.hud-center-right { top: 50%; right: 40px; transform: translateY(-50%); border-right: 1px solid var(--accent-secondary); padding-right: 10px; text-align: right; }

.lab-hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    padding: 0 50px;
}

.holo-projector {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

/* The actual stick image */
.holo-stick {
    height: 120%; /* MASSIVE */
    object-fit: contain;
    z-index: 4;
    filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.6)) brightness(1.2);
    animation: levitate-anim 6s ease-in-out infinite;
}

/* Hologram Base Projector Glow */
.holo-base {
    position: absolute;
    bottom: -50px;
    width: 400px;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    z-index: 1;
    animation: pulseBase 4s infinite alternate;
}

/* Massive Vertical Scanner */
.holo-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, transparent, var(--accent-neon), transparent);
    box-shadow: 0 0 20px var(--accent-neon);
    z-index: 6;
    animation: holoScan 4s linear infinite;
    mix-blend-mode: overlay;
}

.lab-hero-text {
    flex: 1;
    max-width: 500px;
    color: #fff;
    position: relative;
    z-index: 10;
}

.glitch-text {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--accent-tertiary); /* Cold White */
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    line-height: 1;
}

.lab-hero-text p {
    font-size: 1.2rem;
    color: #8a9bb2;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-start-experiment {
    display: inline-block;
    padding: 20px 40px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000 !important;
    background: var(--accent-neon);
    border: none;
    border-radius: 0; /* Machined sharp edges */
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transition: all 0.3s ease;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.btn-start-experiment:hover {
    background: var(--accent-tertiary);
    box-shadow: 0 0 40px rgba(248, 250, 252, 0.8);
    transform: translateY(-2px);
}

/* Animations */
@keyframes levitate-anim {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes holoScan {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

@keyframes pulseBase {
    0% { opacity: 0.3; transform: scaleX(1); }
    100% { opacity: 0.7; transform: scaleX(1.3); }
}

/* Responsive lab hero */
@media (max-width: 992px) {
    .lab-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-top: 100px;
    }
    .glitch-text { font-size: 3.5rem; }
    .holo-projector { height: 50vh; }
    .hud-element { display: none; } /* Hide HUD on small screens to save space */
}

/* ==========================================================================
   DEFAULT PAGES (TERMS, PRIVACY, ETC)
   ========================================================================== */
body.page-template-page-legal .site-main {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background-color: var(--bg-dark-absolute);
    color: var(--text-gray);
    font-family: var(--font-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

body.page-template-page-legal .entry-header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
    padding-bottom: 20px;
}

body.page-template-page-legal .entry-title {
    color: var(--accent-neon);
    font-family: var(--font-heading);
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

body.page-template-page-legal .entry-content h1,
body.page-template-page-legal .entry-content h2,
body.page-template-page-legal .entry-content h3 {
    color: var(--text-white);
    font-family: var(--font-heading);
    margin-top: 40px;
    margin-bottom: 15px;
}

body.page-template-page-legal .entry-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-gray);
    font-size: 16px;
}

body.page-template-page-legal .entry-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

body.page-template-page-legal .entry-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-gray);
}
