/**
 * Royal Theme - Sticky Components
 * Ultra-Modern Minimalist Design
 * Gold Accent: #C5A059
 */

:root {
    --royal-gold: #C5A059;
    --royal-gold-light: #d4af37;
    --royal-dark: #1a1a1a;
    --royal-glass: rgba(26, 26, 26, 0.85);
}

/* ========================================
   STICKY LANGUAGE SELECTOR (Bottom Right)
   ======================================== */

.sticky-lang-selector {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

.sticky-lang-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--royal-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid var(--royal-gold);
    box-shadow: 
        0 8px 32px rgba(197, 160, 89, 0.3),
        0 0 20px rgba(197, 160, 89, 0.2);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sticky-lang-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--royal-gold) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sticky-lang-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 12px 48px rgba(197, 160, 89, 0.5),
        0 0 30px rgba(197, 160, 89, 0.4);
    border-color: var(--royal-gold-light);
}

.sticky-lang-btn:hover::before {
    opacity: 0.1;
}

.sticky-lang-btn:active {
    transform: translateY(-3px) scale(1.02);
}

.sticky-lang-flag {
    width: 28px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sticky-lang-code {
    font-size: 11px;
    font-weight: 700;
    color: var(--royal-gold);
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
    letter-spacing: 0.5px;
}

/* Language Menu (Slides Up) */
.sticky-lang-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    min-width: 180px;
    background: var(--royal-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--royal-gold);
    border-radius: 16px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(197, 160, 89, 0.2);
}

.sticky-lang-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sticky-lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sticky-lang-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--royal-gold) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sticky-lang-item:hover {
    background: rgba(197, 160, 89, 0.15);
    transform: translateX(-5px);
}

.sticky-lang-item:hover::before {
    opacity: 0.2;
}

.sticky-lang-item.active {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.3) 0%, rgba(197, 160, 89, 0.1) 100%);
    border-left: 3px solid var(--royal-gold);
    color: var(--royal-gold-light);
    font-weight: 600;
}

.sticky-lang-item img {
    width: 24px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.sticky-lang-item span {
    position: relative;
    z-index: 1;
}

/* Pulse Animation */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(197, 160, 89, 0.3),
            0 0 20px rgba(197, 160, 89, 0.2);
    }
    50% {
        box-shadow: 
            0 8px 32px rgba(197, 160, 89, 0.5),
            0 0 30px rgba(197, 160, 89, 0.4);
    }
}

.sticky-lang-btn.pulse {
    animation: pulse-gold 2s infinite;
}

/* ========================================
   MOBILE MENU ENHANCEMENTS
   ======================================== */

.mobile-lang-social-block {
    display: none;
    padding: 20px;
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.1) 0%, rgba(197, 160, 89, 0.05) 100%);
    border-top: 2px solid rgba(197, 160, 89, 0.3);
    border-bottom: 2px solid rgba(197, 160, 89, 0.3);
}

.mobile-lang-selector {
    margin-bottom: 20px;
}

.mobile-lang-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--royal-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.mobile-lang-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mobile-lang-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid rgba(197, 160, 89, 0.3);
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-lang-link.active {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.3) 0%, rgba(197, 160, 89, 0.1) 100%);
    border-color: var(--royal-gold);
    color: var(--royal-gold);
}

.mobile-lang-link:hover {
    transform: translateY(-3px);
    border-color: var(--royal-gold-light);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.mobile-lang-link img {
    width: 24px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mobile-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
    gap: 10px;
}

.mobile-social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid rgba(197, 160, 89, 0.3);
    border-radius: 10px;
    color: var(--royal-gold);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-social-link:hover {
    transform: translateY(-3px);
    border-color: var(--royal-gold-light);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
    color: var(--royal-gold-light);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sticky-lang-selector {
        bottom: 20px;
        right: 20px;
    }
    
    .sticky-lang-btn {
        width: 50px;
        height: 50px;
    }
    
    .sticky-lang-flag {
        width: 22px;
    }
    
    .sticky-lang-code {
        font-size: 10px;
    }
    
    .sticky-lang-menu {
        min-width: 160px;
        bottom: 65px;
    }
    
    .sticky-lang-item {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    /* Show mobile lang/social block in mobile menu */
    .main-nav.mobile-open .mobile-lang-social-block {
        display: block;
    }
}

/* Hide on very small screens */
@media (max-width: 480px) {
    .sticky-lang-selector {
        bottom: 15px;
        right: 15px;
    }
    
    .sticky-lang-btn {
        width: 45px;
        height: 45px;
    }
}

/* ========================================
   LUXURY SOCIAL MEDIA BLOCK (Footer)
   ======================================== */

.luxury-social-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--royal-gold) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px;
}

.luxury-social-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--royal-gold-light);
    box-shadow: 
        0 8px 24px rgba(197, 160, 89, 0.4),
        0 0 20px rgba(197, 160, 89, 0.3);
}

.luxury-social-item:hover::before {
    opacity: 0.15;
}

.luxury-social-item:hover i {
    color: var(--royal-gold-light);
    transform: scale(1.1);
}

.luxury-social-item i {
    transition: all 0.3s ease;
}

/* Luxury Social Block Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.luxury-social-block {
    animation: fadeInUp 0.6s ease-out;
}

.luxury-social-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.luxury-social-item:nth-child(1) { animation-delay: 0.1s; }
.luxury-social-item:nth-child(2) { animation-delay: 0.2s; }
.luxury-social-item:nth-child(3) { animation-delay: 0.3s; }
.luxury-social-item:nth-child(4) { animation-delay: 0.4s; }
.luxury-social-item:nth-child(5) { animation-delay: 0.5s; }
.luxury-social-item:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   FOOTER ENHANCEMENTS (4+2 Grid)
   ======================================== */

/* Footer Social Items Hover */
.footer-social-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--royal-gold) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.footer-social-item:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--royal-gold-light);
    box-shadow: 
        0 6px 20px rgba(197, 160, 89, 0.4),
        0 0 15px rgba(197, 160, 89, 0.3);
}

.footer-social-item:hover::before {
    opacity: 0.15;
}

.footer-social-item:hover i {
    color: var(--royal-gold-light);
    transform: scale(1.1);
}

.footer-social-item i {
    transition: all 0.3s ease;
}

/* Footer Navigation Button Hover */
.footer-navigation-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--royal-gold) 0%, var(--royal-gold-light) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px;
}

.footer-navigation-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--royal-gold), var(--royal-gold-light));
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    filter: blur(8px);
    transition: opacity 0.4s ease;
}

.footer-navigation-btn:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--royal-gold-light);
    box-shadow: 
        0 10px 30px rgba(197, 160, 89, 0.6),
        0 0 25px rgba(197, 160, 89, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: var(--royal-gold-light);
}

.footer-navigation-btn:hover::before {
    opacity: 0.25;
}

.footer-navigation-btn:hover::after {
    opacity: 0.6;
}

.footer-navigation-btn i {
    transition: all 0.3s ease;
}

.footer-navigation-btn:hover i {
    transform: scale(1.2) rotate(-15deg);
    filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.8));
}

.footer-navigation-btn:hover span {
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.6);
}

.footer-navigation-btn:active {
    transform: translateY(-2px) scale(1);
}

/* UKC Themes Link Hover */
.ukc-link:hover {
    color: var(--royal-gold-light);
    text-shadow: 0 0 15px rgba(197, 160, 89, 0.6);
    letter-spacing: 0.5px;
}

/* Footer Bottom Row Responsive */
@media (max-width: 768px) {
    .footer-bottom-row {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .footer-navigation-block {
        justify-content: flex-start !important;
        flex-wrap: wrap;
    }
    
    .footer-navigation-btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-social-block > div {
        justify-content: flex-start !important;
    }
}

@media (max-width: 480px) {
    .footer-navigation-block {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .footer-navigation-btn {
        font-size: 13px;
        padding: 10px 20px;
    }
    
    .footer-navigation-btn i {
        font-size: 14px;
    }
}
