/*
Theme Name: Sala House
Author: TGN-digital
Version: 1.0.1
Description: Custom WordPress theme for Sala House
*/

/* Prevent iOS dark/light mode color changes */
:root {
    color-scheme: dark;
}

/* Glass Navigation */
.glass-nav {
    background: rgba(24, 22, 17, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 400px;
    background: rgba(39, 36, 27, 0.98);
    backdrop-filter: blur(12px);
    border-left: 1px solid rgba(57, 53, 40, 0.5);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay.open .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-link {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(57, 53, 40, 0.3);
}

.mobile-menu-link:hover {
    padding-left: 0.5rem;
    transition: padding-left 0.2s ease;
}

body.mobile-menu-open {
    overflow: hidden;
}

.hero-gradient {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 22, 17, 1));
    background-size: cover;
    background-position: center;
}

/* Custom Video Player Styles */
.custom-video-player {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.custom-video-player video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(24, 22, 17, 0.95), transparent);
    padding: 1.5rem 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-video-player:hover .custom-video-controls,
.custom-video-player.playing .custom-video-controls {
    opacity: 1;
}

.video-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 0.75rem;
    position: relative;
}

.video-progress-bar {
    height: 100%;
    background: #F4C432;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.video-progress-container:hover .video-progress-bar {
    background: #ffce3d;
}

.video-controls-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.video-control-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.video-control-btn:hover {
    color: #F4C432;
}

.video-time {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: auto;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 22, 17, 0.3);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.video-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-play-btn {
    width: 5rem;
    height: 5rem;
    background: #F4C432;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #181611;
    transition: transform 0.3s ease;
}

.video-play-overlay:hover .video-play-btn {
    transform: scale(1.1);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-slider {
    width: 0;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.volume-container:hover .volume-slider {
    width: 60px;
    opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #F4C432;
    cursor: pointer;
}

.volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Floating Icons Pulse Animation */
.floating-icon-pulse {
    position: relative;
}

.floating-icon-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.5;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes pulse-ring {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0;
        transform: scale(1.15);
    }
}
