/**
 * RAM Header - Navigation Icons Layout & Sizing
 * Controls size, spacing, and layout of all header navigation icons
 * (Maps, IPTV, Música, Skyverse, Muro Loco)
 */

/* ==========================================================================
   Header Layout - Fix Spacing Distribution
   ========================================================================== */

/* Override WoWonder's space-between to compact layout */
.header-fixed1000 > .container-fluid {
    justify-content: flex-start !important;
    gap: 10px !important;
}

/* Left section should not expand to fill space */
.wow_hdr_innr_left {
    flex: 0 1 auto !important;
}

/* ==========================================================================
   Navigation Icons - Size Reduction
   ========================================================================== */

/* Navigation list items spacing */
.wow_hdr_innr_left .nav > li {
    padding: 0 !important;
    margin: 0 2px !important;
}

/* Navigation icons sizing (Maps, IPTV, Música, Skyverse) */
.wow_hdr_innr_left .nav > li > a {
    padding: 8px !important;
    line-height: 1 !important;
}

/* SVG icon sizes (Maps, IPTV, Música) */
.wow_hdr_innr_left .nav > li > a svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}

/* Skyverse logo image size */
.wow_hdr_innr_left .nav > li > a img {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

/* ==========================================================================
   Muro Loco - Header Layout
   ========================================================================== */

/* Muro Loco sizing - matches other nav icons */
.ram-muro-loco-gradient {
    padding: 8px !important;
    line-height: 1 !important;
}

.ram-muro-loco-gradient svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}

/* Desktop - Spacing for Muro Loco */
@media (min-width: 769px) {
    .ram-muro-loco-gradient {
        margin-left: 15px !important; /* Separar del logo */
        margin-right: 1px !important; /* Agrupado con navegación */
    }

    /* Navegación sin margen extra (gap lo maneja) */
    .wow_hdr_innr_left .nav {
        margin-left: 0 !important;
    }
}

/* ==========================================================================
   Search Box - Size Reduction
   ========================================================================== */

/* Default search box size - margins handled by gap */
@media (min-width: 769px) {
    #wo_home_search {
        max-width: 280px !important;
        margin-right: 15px !important;
        margin-left: 0 !important; /* Gap maneja el espaciado */
    }
}

/* Large screens - slightly bigger */
@media (min-width: 1350px) {
    #wo_home_search {
        max-width: 380px !important;
    }
}

/* Medium screens - more compact */
@media (min-width: 769px) and (max-width: 1270px) {
    #wo_home_search {
        flex: 1 1 180px !important;
        max-width: 400px !important;
        min-width: 120px !important;
        margin-right: 12px !important;
        margin-left: 12px !important;
    }

    .wow_hdr_innr_left {
        flex: 1 1 auto !important;
    }
}

/* Transition screens - prevent overflow before large breakpoint #207 */
@media (min-width: 1271px) and (max-width: 1349px) {
    #wo_home_search {
        flex: 1 1 140px !important;  
        min-width: 0 !important;     
        max-width: 240px !important; 
        margin-right: 0 !important;  
        margin-left: 0 !important;
    }

    .wow_hdr_innr_left {
        min-width: 0 !important;
    }
}

/* RAM Plaza Gradient */
.ram-plaza-gradient {
    background-color: #00d2ff;
    background-image: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 50%, #00d2ff 100%);
    background-size: 200% 200%;
    border-radius: 4px;
    border: none;
    transition: all 0.3s ease;
}
.ram-plaza-gradient:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

/* Concierge Button #197 */
.ram-concierge-btn {
    background-color: #00bcd4;
    background-image: linear-gradient(135deg, #00bcd4 0%, #9c27b0 100%);
    background-size: 200% 200%;
    border-radius: 4px;
    border: none;
    transition: all 0.3s ease;
}

.ram-concierge-btn:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

/* ==========================================================================
   Mobile - Header Layout
   ========================================================================== */

@media (max-width: 768px) {
    /* Compact spacing for mobile */
    .header-fixed1000 > .container-fluid {
        gap: 5px !important;
    }

    /* Left section takes full width on mobile */
    .wow_hdr_innr_left {
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto !important;
        width: 100% !important;
    }

    /* Hide keyboard shortcuts in user menu - not useful on touch devices #175 */
    .keyboard-shortcuts-item {
        display: none !important;
    }
}
