/**
 * MuDream Template - Components Styles
 * Adapted for WebEngine CMS
 * Components: Header, Navigation, Social Panel, etc.
 */

/* ======== SOCIAL MEDIA PANEL (OCULTO + SOLO BOTÓN) ======== */

/* ======== SOCIAL MEDIA PANEL ======== */

.app-socials-wrapper {
    position: fixed;
    top: 50%;
    right: 0;
    width: 600px;
    max-width: 90vw;
    height: 400px;

    /* oculto dejando visible solo el botón */
    transform: translateY(-50%) translateX(550px);
    transition: transform 0.4s ease;
    z-index: 9999;
    overflow: visible;
}

.app-socials-wrapper:hover,
.app-socials-wrapper.hover-active,
.app-socials-wrapper.active {
    transform: translateY(-50%) translateX(0);
}

.app-socials-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 12, 23, 0.95) 0%, rgba(40, 30, 45, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px 0 0 20px;
    border: 2px solid rgba(79, 195, 247, 0.3);
    border-right: none;
}

.app-socials-main-btn {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), #29b6f6);
    border: none;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.3);
}

.app-socials-main-btn:hover {
    background: linear-gradient(135deg, #29b6f6, var(--secondary-color));
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.4);
}

.app-socials-main-icon {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.app-socials-content-wrapper {
    position: relative;
    padding: 30px;
    height: 50%;
    z-index: 2;
}

.app-socials-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    height: 100%;
}

.app-socials-left-side h5 {
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.app-socials-title-icon {
    width: 20px;
    height: 20px;
    color: var(--secondary-color);
}

.app-socials-soc-link {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 12px;
    margin-bottom: 10px;
}

.app-socials-soc-link:hover {
    background: rgba(79, 195, 247, 0.1);
    border-color: rgba(79, 195, 247, 0.3);
    transform: translateY(-2px);
    color: #ffffff;
}

.app-socials-soc-link.facebook:hover {
    background: rgba(66, 103, 178, 0.2);
    border-color: rgba(66, 103, 178, 0.5);
}

.app-socials-soc-link.instagram:hover {
    background: linear-gradient(45deg, rgba(131, 58, 180, 0.2), rgba(253, 29, 29, 0.2));
    border-color: rgba(253, 29, 29, 0.5);
}

.app-socials-soc-link.tiktok:hover {
    background: rgba(255, 0, 80, 0.2);
    border-color: rgba(255, 0, 80, 0.5);
}

.app-socials-soc-link.discord:hover {
    background: rgba(114, 137, 218, 0.2);
    border-color: rgba(114, 137, 218, 0.5);
}

.app-socials-icon-wrap {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.app-socials-social-icon {
    width: 20px;
    height: 20px;
}

.app-socials-right-side {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.app-socials-title-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

/* ======== HEADER ======== */
.header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 30, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(79, 195, 247, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ======== LOGO SECTION ======== */
.header-logo-section {
    flex-shrink: 0;
}

.header-logo-link {
    display: block;
}

.header-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

/* ======== SERVER SELECTOR ======== */
.header-server-selector-wrap {
    flex: 0 0 auto;
    position: relative;
}

.header-server-selector-main-server {
    background: linear-gradient(135deg, rgba(255, 206, 102, 0.1) 0%, rgba(79, 195, 247, 0.1) 100%);
    border: 2px solid rgba(79, 195, 247, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-server-selector-main-server:hover {
    border-color: rgba(79, 195, 247, 0.6);
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.2);
}

.header-server-selector-server-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.header-server-selector-top-label {
    position: absolute;
    top: 5px;
    left: 15px;
    font-size: 0.7rem;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.header-server-selector-name {
    position: absolute;
    top: 18px;
    left: 15px;
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    z-index: 2;
}

.header-server-selector-main-players-online {
    position: absolute;
    bottom: 8px;
    left: 15px;
    right: 15px;
    z-index: 2;
    gap: 15px;
}

.header-server-selector-players-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
}

.header-server-selector-players-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* ======== NAVIGATION ======== */
.header-navigation-wrap {
    flex: 1;
    max-width: 600px;
}

.header-navigation-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    height: 100%;
}

.header-navigation-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.header-navigation-item:hover {
    background: rgba(79, 195, 247, 0.1);
    color: var(--secondary-color);
}

.header-navigation-main-item {
    font-weight: 600;
    font-size: 0.95rem;
}

.header-navigation-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-navigation-menu-icon-svg {
    width: 18px;
    height: 18px;
    color: var(--secondary-color);
}

.header-navigation-name {
    color: #ffffff;
    font-weight: 600;
}

.header-navigation-arrow-icon {
    width: 12px;
    height: 12px;
    color: #b0b0b0;
    transition: transform 0.3s ease;
}

.header-navigation-dropdown:hover .header-navigation-arrow-icon {
    transform: rotate(180deg);
}

/* ======== NAVIGATION SUBMENU ======== */
.header-navigation-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 30, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(79, 195, 247, 0.3);
    border-radius: 12px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-navigation-dropdown:hover .header-navigation-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-navigation-submenu-list {
    flex-direction: column;
    gap: 0;
}

.header-navigation-submenu .header-navigation-item {
    padding: 12px 20px;
    margin: 0;
    border-radius: 0;
}

.header-navigation-submenu .header-navigation-item:hover {
    background: rgba(79, 195, 247, 0.1);
}

.header-navigation-ico-wrap {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-right: 12px;
}

.header-navigation-menu-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.header-navigation-descr {
    font-size: 0.75rem;
    color: #b0b0b0;
    margin-top: 2px;
}

/* ======== RIGHT BUTTONS ======== */
.header-right-buttons-main-wrap {
    flex-shrink: 0;
}

.header-right-buttons {
    align-items: center;
    gap: 15px;
}

.header-right-buttons-text-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-right-buttons-select-btn {
    padding: 8px 12px;
}

.header-right-buttons-lang-icon {
    width: 16px;
    height: 16px;
    color: var(--secondary-color);
}

/* ======== BACKGROUND ======== */
.app-background-page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
}

.app-background-main-bg {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.app-background-main-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg/main-pattern.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -1;
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 1200px) {
    .header-content {
        padding: 0 15px;
        gap: 20px;
    }
    
    .header-navigation-nav {
        gap: 20px;
    }
    
    .header-server-selector-main-server {
        min-width: 180px;
    }
}

@media (max-width: 992px) {
    .header {
        height: 70px;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .header-navigation-wrap {
        display: none;
    }
    
    .header-server-selector-main-server {
        min-width: 160px;
        height: 50px;
        padding: 10px 15px;
    }
    
    .header-server-selector-name {
        font-size: 0.9rem;
        top: 15px;
    }
    
    .header-server-selector-top-label {
        font-size: 0.65rem;
        top: 3px;
    }
    
    .header-logo {
        height: 40px;
    }
}

@media (max-width: 768px) {
    .header {
        height: 60px;
    }
    
    .header-content {
        padding: 0 10px;
        gap: 10px;
    }
    
    .header-right-buttons {
        gap: 10px;
    }
    
    .header-right-buttons-text-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .app-socials-wrapper {
        width: 95vw;
        right: -95vw;
    }
    
    .app-socials-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .app-socials-right-side {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .header-server-selector-main-server {
        min-width: 120px;
        height: 45px;
        padding: 8px 10px;
    }
    
    .header-server-selector-name {
        font-size: 0.8rem;
        top: 12px;
    }
    
    .header-server-selector-players-count {
        font-size: 0.8rem;
    }
    
    .header-logo {
        height: 35px;
    }
    
    .header-right-buttons-text-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}