/* 
 * Straja.Live - Alpine Luxury Stylesheet
 * Premium, Cinematic, High-Performance
 */

:root {
    /* Color Palette - Alpine Dark */
    --bg-deep: #02040a;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;

    /* Accents - "Salvamont Orange" & "Glacial Blue" */
    --accent-primary: #f97316;
    /* Orange vibrant */
    --accent-glow: rgba(249, 115, 22, 0.4);
    --accent-blue: #38bdf8;
    /* Păstrat pentru elemente 'rece' (meteo) */

    /* Glassmorphism 2.0 - Premium Frosted */
    --glass-surface: rgba(13, 17, 28, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 24px;
    --surface-hover: rgba(255, 255, 255, 0.03);

    /* Metrics - Sharper, Technical */
    --radius-lg: 12px;
    --radius-md: 6px;
    --radius-sm: 4px;

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    --body-bg-image: url('/images/straja-bg.jpg');
}

[data-theme="light"] {
    --bg-deep: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --glass-surface: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.06);
    --accent-primary: #ea580c;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Cinematic Background Overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(2, 4, 10, 0.8), rgba(2, 4, 10, 0.95)),
        var(--body-bg-image) no-repeat center center/cover;
    z-index: -1;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 90px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- NAVIGATION 2.0 --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(2, 4, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    /* Taller, premium feel */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo span {
    color: var(--accent-primary);
}

.nav-logo img {
    height: 36px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.nav-tagline {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-left: 1px solid var(--glass-border);
    padding-left: 20px;
    margin-left: 20px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Nav Links - Underline Animation */
.nav-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-primary);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* Dropdown Premium */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -10px;
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 220px;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .dropdown-menu {
    display: flex;
    animation: fadeSlideUp 0.2s ease-out;
}

.dropdown-menu a {
    padding: 10px 15px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-menu a:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

/* --- COMPONENTS: CARD 2.0 --- */
.card {
    background: var(--glass-surface);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    /* Context for children */
}

/* Subtle inner glow for depth */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-header {
    padding: 18px 25px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-padded {
    padding: 30px;
}

/* --- TOOLS & BUTTONS --- */
.video-toolbar {
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.toolbar-left {
    display: flex;
    gap: 12px;
}

/* Premium Buttons - Sharp & Flat */
.multicam-btn,
.fullscreen-btn,
.theme-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    /* Sharp corners */
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.multicam-btn:hover,
.fullscreen-btn:hover,
.theme-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.multicam-btn.active,
.theme-btn.active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Live Badge - Serious version */
.live-badge {
    background: rgba(220, 38, 38, 0.15);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulsating-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
}
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Fullscreen Button */
.fullscreen-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Camera Thumbnails - Cinematic Strip */
.cam-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 0 15px;
    /* Space for shadow */
    scrollbar-width: thin;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.cam-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.cam-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.cam-thumb {
    flex-shrink: 0;
    width: 150px;
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-snap-align: start;
    opacity: 0.6;
    border: 1px solid transparent;
}

.cam-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.cam-thumb:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.2);
}

.cam-thumb.active {
    opacity: 1;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.cam-thumb img {
    width: 100%;
    height: 85px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.cam-thumb:hover img,
.cam-thumb.active img {
    transform: scale(1.05);
}

.cam-thumb-name {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    padding: 0 10px;
    font-size: 10px;
    font-weight: 600;
    text-align: left;
    color: white;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Video Player */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: var(--radius-sm);
    /* Inner radius */
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Fullscreen styles */
.video-wrapper.is-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #000;
}

.video-wrapper.is-fullscreen .video-container {
    padding-bottom: 0;
    height: 100%;
    border-radius: 0;
}

.exit-fullscreen-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10000;
    display: none;
    backdrop-filter: blur(10px);
}

.video-wrapper.is-fullscreen .exit-fullscreen-btn {
    display: block;
}

/* Multi-Cam Button */
.multicam-btn {
    /* Previously defined in updated block, keeping specific overrides if needed */
}

/* Multi-Cam Grid */
.multicam-container {
    padding: 20px;
}

.multicam-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.multicam-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.multicam-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.multicam-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.multicam-video iframe,
.multicam-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.multicam-close-btn {
    display: block;
    margin: 30px auto 0;
    background: transparent;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 12px 30px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
}

.multicam-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* Multi-Cam Mobile */
@media (max-width: 768px) {
    .multicam-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .multicam-container {
        padding: 15px;
    }

    .multicam-item {
        border-radius: var(--radius-md);
    }
}

/* Tabs - Clean & Minimal */
.tabs-header {
    display: flex;
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--glass-border);
    gap: 30px;
}

.tab-btn {
    flex: 0 1 auto;
    padding: 10px 0;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0;
    font-weight: 500;
    font-family: var(--font-main);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    position: relative;
}

/* Remove old hover/active styles */
.tab-btn:hover {
    background: transparent;
    color: var(--text-primary);
}

.tab-btn.active {
    background: transparent;
    color: var(--accent-primary);
    box-shadow: none;
    font-weight: 700;
}

/* Underline for active tab */
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.tab-btn.active::after {
    width: 100%;
}

/* News & Sidebar */
.news-scroll-box {
    height: 500px;
    /* Taller */
    overflow-y: auto;
    padding-right: 15px;
}

.news-scroll-box::-webkit-scrollbar {
    width: 4px;
}

.news-scroll-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.news-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-meta {
    font-size: 10px;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-meta::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.news-title a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.2s;
}

.news-title a:hover {
    color: var(--accent-primary);
}

/* Buttons */
button.action-btn {
    background: var(--accent);
    color: #0f172a;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
}

.download-btn {
    background: #22c55e !important;
    color: white !important;
}

/* Social Feeds */
.feeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    justify-items: center;
}

.feed-wrapper {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 550px;
    width: 100%;
}

[data-theme="light"] .feed-wrapper {
    background: rgba(0, 0, 0, 0.05);
}

.feed-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.feed-wrapper h3 {
    font-size: 14px;
    margin: 0 0 18px 0;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Lazy load */
.lazy-iframe-wrapper {
    width: 500px;
    max-width: 100%;
    height: 550px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.lazy-iframe-wrapper.loaded {
    background: transparent;
}

.lazy-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-iframe-wrapper.loaded iframe {
    opacity: 1;
}

.lazy-loader {
    position: absolute;
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lazy-loader .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.lazy-iframe-wrapper.loaded .lazy-loader {
    display: none;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg,
            var(--glass-bg) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    width: 80%;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-box {
    height: 100px;
    width: 100%;
}

/* Meteo */
.weather-content {
    display: none;
    padding: 25px;
}

.weather-content.active {
    display: block;
}

.meteo-split {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

iframe {
    border-radius: 12px;
}

.sidebar-content,
.camera-view {
    display: none;
}

.sidebar-content.active,
.camera-view.active {
    display: block;
}

/* Timelapse Video */
.timelapse-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
    background: #000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.timelapse-header {
    margin-top: 0;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 600;
}

.timelapse-placeholder {
    background: rgba(0, 0, 0, 0.3);
    height: 180px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 13px;
    border: 1px dashed var(--glass-border);
}

.timelapse-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

/* Rate Limit Message */
.rate-limit-msg {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 10px;
    text-align: center;
}

/* SEO Content Section */
.seo-content {
    padding: 30px;
    line-height: 1.8;
}

.seo-content h2 {
    font-size: 20px;
    color: var(--accent);
    margin: 0 0 15px 0;
}

.seo-content h3 {
    font-size: 16px;
    color: var(--text-main);
    margin: 20px 0 10px 0;
}

.seo-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.seo-content ul {
    color: var(--text-muted);
    font-size: 14px;
    padding-left: 20px;
}

.seo-content li {
    margin-bottom: 8px;
}

.seo-content a {
    color: var(--accent);
    text-decoration: none;
}

.seo-content a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 13px;
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 1000px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .video-toolbar {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 10px;
    }

    .toolbar-left {
        width: 100%;
        justify-content: space-between;
    }

    .cam-thumbnails {
        width: 100%;
    }

    .feeds-grid {
        grid-template-columns: 1fr;
    }

    .theme-toggle {
        top: 10px;
        right: 10px;
        padding: 5px;
    }

    .theme-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .quick-stats {
        gap: 10px;
    }

    .stat-item {
        padding: 8px 15px;
    }

    .stat-value {
        font-size: 20px;
    }

    .feed-wrapper {
        padding: 15px;
        width: 100%;
        max-width: 100%;
    }

    /* Facebook feed mobile optimization */
    .lazy-iframe-wrapper {
        width: 100%;
        height: 380px;
        overflow: hidden;
    }

    .lazy-iframe-wrapper iframe {
        width: 500px;
        height: 550px;
        transform: scale(0.72);
        transform-origin: top center;
    }

    .site-header h1 {
        font-size: 22px;
    }

    /* Mobile Facebook links */
    .mobile-fb-link {
        display: block;
        text-decoration: none;
        text-align: center;
        width: 100%;
        padding: 20px;
        background: rgba(56, 189, 248, 0.1);
        border-radius: 12px;
        border: 1px solid var(--glass-border);
        transition: all 0.2s ease;
    }

    .mobile-fb-link:hover,
    .mobile-fb-link:active {
        background: rgba(56, 189, 248, 0.2);
        transform: scale(0.98);
    }

    .mobile-fb-link h3 {
        color: var(--accent);
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin: 0 0 10px 0;
    }

    .mobile-fb-hint {
        display: block;
        color: var(--text-muted);
        font-size: 13px;
        margin-top: 8px;
    }

    /* Hide iframe on mobile */
    .fb-desktop-wrapper {
        display: none !important;
    }

    /* Show mobile button */
    .fb-mobile-btn {
        display: block !important;
    }
}

/* Mobile Facebook button - hidden by default (desktop) */
.fb-mobile-btn {
    display: none;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.1));
    color: var(--text-main);
    text-decoration: none;
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid var(--accent);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 15px;
}

.fb-mobile-btn:hover,
.fb-mobile-btn:active {
    background: rgba(56, 189, 248, 0.3);
    transform: scale(0.98);
}

/* PWA Install prompt */
.pwa-install-prompt {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px 20px;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 400px;
}

.pwa-install-prompt.show {
    display: flex;
    gap: 15px;
    align-items: center;
}

.pwa-install-prompt p {
    margin: 0;
    font-size: 13px;
    flex: 1;
}

.pwa-install-btn {
    background: var(--accent);
    color: #0f172a;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.pwa-dismiss-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

/* Navigation menu (for subpages) */
.nav {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* Page header for subpages */
.page-header {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), transparent);
    border-radius: 20px;
    margin: 30px 0;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.page-header h1 span {
    color: var(--accent);
}

.page-header p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
}

/* Subpage container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 50px;
    margin-top: 40px;
}

.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #0f172a;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

/* Footer for subpages */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

/* Info cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
}

.info-card h3 {
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 15px;
}

.info-card p,
.info-card ul {
    color: var(--text-muted);
    font-size: 14px;
}

.info-card ul {
    padding-left: 20px;
}

.info-card li {
    margin-bottom: 8px;
}

/* Weather card for subpages */
.weather-grid {
    display: grid;
    gap: 30px;
}

.weather-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
}

.weather-card-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.weather-card-header h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.weather-card-body {
    padding: 20px;
}

.weather-card-body iframe {
    width: 100%;
    border: 0;
    border-radius: 12px;
}

/* Tarife specific styles */
.tarife-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tarif-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.tarif-card:hover {
    transform: translateY(-5px);
}

.tarif-header {
    padding: 20px;
    background: rgba(56, 189, 248, 0.1);
    border-bottom: 1px solid var(--glass-border);
}

.tarif-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-main);
}

.tarif-body {
    padding: 20px;
}

.tarif-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.tarif-unit {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.tarif-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tarif-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 14px;
}

.tarif-features li:last-child {
    border-bottom: none;
}

.tarif-features li::before {
    content: "✓ ";
    color: var(--accent);
}

/* Contact page styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .nav-links {
        gap: 15px;
    }
}

.contact-info {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h4 {
    margin: 0 0 5px 0;
    color: var(--text-main);
    font-size: 16px;
}

.contact-details p,
.contact-details a {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--accent);
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
}

/* Alerts Tab Styles */
.alerts-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 5px;
}

.alert-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 12px;
    border-left: 4px solid var(--glass-border);
    transition: all 0.2s ease;
}

.alert-item:hover {
    background: rgba(0, 0, 0, 0.3);
}

.alert-item.active-alert {
    border-left-color: #f87171;
    background: rgba(220, 38, 38, 0.1);
}

.alert-item.info-alert {
    border-left-color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
}

[data-theme="light"] .alert-item {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .alert-item.active-alert {
    background: rgba(220, 38, 38, 0.08);
}

[data-theme="light"] .alert-item.info-alert {
    background: rgba(56, 189, 248, 0.08);
}

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-date {
    font-size: 11px;
    color: #f87171;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.alert-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-main);
}

.alert-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.alert-details {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    font-size: 12px;
    color: var(--text-muted);
}

.alert-details li {
    padding: 4px 0;
}

.alert-link {
    display: inline-block;
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.alert-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Content Widgets Section */
.content-widgets {
    margin: 10px 0;
}

.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.widget-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.15);
}

.widget-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.widget-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.widget-link:hover {
    opacity: 0.8;
}

.widget-content {
    padding: 15px;
}

/* Blog Preview Items */
.blog-preview-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease;
    margin-bottom: 8px;
}

.blog-preview-item:hover {
    background: var(--card-hover);
}

.blog-preview-item img {
    width: 80px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.blog-preview-text h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.blog-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Instructor Preview */
.instructor-preview {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    margin-bottom: 15px;
}

.instructor-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.instructor-preview-info h4 {
    margin: 0 0 3px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.instructor-preview-info p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: var(--accent);
}

.instructor-rating {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.instructor-phone {
    display: inline-block;
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.instructor-phone:hover {
    text-decoration: underline;
}

.instructor-cta {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--accent);
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    transition: opacity 0.2s;
}

.instructor-cta:hover {
    opacity: 0.9;
}

/* Partner Section */
.partner-section {
    opacity: 0.9;
}

.partner-title {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .widgets-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .instructor-preview {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* 
 * Skeleton Loading & Micro-interactions
 */

/* Skeleton Pulse Animation */
@keyframes skeleton-loading {
    0% {
        background-color: rgba(255, 255, 255, 0.05);
    }

    50% {
        background-color: rgba(255, 255, 255, 0.1);
    }

    100% {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

.skeleton {
    animation: skeleton-loading 1.5s infinite ease-in-out;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.skeleton-text {
    height: 0.8em;
    margin-bottom: 0.5em;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-box {
    width: 100%;
    height: 200px;
}

/* Video Facade Styles */
.video-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.video-facade::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.video-facade:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

.facade-play-btn {
    width: 60px;
    height: 60px;
    background: rgba(220, 38, 38, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    z-index: 20;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-facade:hover .facade-play-btn {
    transform: scale(1.1);
}

.facade-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    z-index: 20;
}

.video-active .video-facade {
    display: none;
    pointer-events: none;
}

/* Video Facade - Premium Styles */
.video-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.video-facade::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s;
}

.video-facade:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.facade-play-btn {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent-primary);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-facade:hover .facade-play-btn {
    transform: scale(1.1);
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px var(--accent-glow);
}

.facade-label {
    margin-top: 15px;
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
    transition: opacity 0.3s;
}

.video-facade:hover .facade-label {
    opacity: 1;
}

/* Quick Stats - Premium Horizontal Bar */
.quick-stats {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 25px 20px;
    margin: 30px 0;
    background: var(--glass-surface);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    min-width: 100px;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .quick-stats {
        gap: 6px;
        padding: 15px 10px;
    }

    .stat-item {
        padding: 10px 15px;
        min-width: 80px;
        flex: 1 1 calc(33% - 10px);
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 9px;
    }
}