/* =========================================================
   AuraPlay Master Layout Stylesheet (master-style.css)
   Header, Navigation Sidebar & Global Base Styles
   ========================================================= */

:root {
    --bg-base: #0b0f19;
    --bg-surface: rgba(18, 24, 38, 0.75);
    --bg-surface-hover: rgba(30, 41, 59, 0.65);
    --bg-elevated: #1e293b;
    --border-glow: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.35);
    --primary: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --accent-live: #ef4444;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --sidebar-w: 240px;
    --sidebar-collapsed-w: 76px;
    --header-h: 68px;
    --blur: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Ambient Glow Background Effect */
.ambient-glow {
    position: fixed;
    top: -120px;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 80%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

/* Top Navigation Header */
.aura-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-h);
    background: var(--bg-surface);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
}

.header-start, .header-center, .header-end {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Menu Toggle Button */
.btn-toggle-menu {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: var(--transition);
}

.btn-toggle-menu:hover {
    background: var(--bg-surface-hover);
    color: var(--primary);
}

/* Brand Logo */
.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.brand-name {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Modern Glowing Search Box */
.search-box-wrapper {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    padding: 4px 6px 4px 16px;
    width: 480px;
    transition: var(--transition);
}

.search-box-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.9);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.9rem;
    padding: 6px 10px;
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Action Buttons */
.btn-action-glow {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.btn-action-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* Glassmorphism Sidebar */
.aura-sidebar {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--bg-surface);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-left: 1px solid var(--border-glow);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    z-index: 990;
    transition: var(--transition);
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0 14px;
    margin-bottom: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    border-radius: 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-item i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    transition: var(--transition);
}

.nav-item:hover {
    color: #fff;
    background: var(--bg-surface-hover);
    transform: translateX(-4px);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-right: 3px solid var(--primary);
    font-weight: 700;
}

.nav-item.active i {
    color: var(--primary);
}

/* Live Badge for LiveTV */
.badge-live {
    background: var(--accent-live);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    margin-right: auto;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Main Content Container */
.aura-main-wrapper {
    margin-right: var(--sidebar-w);
    margin-top: var(--header-h);
    padding: 24px;
    min-height: calc(100vh - var(--header-h));
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

/* Collapsed Mode */
body.sidebar-collapsed .aura-sidebar {
    width: var(--sidebar-collapsed-w);
    align-items: center;
    padding: 16px 8px;
}

body.sidebar-collapsed .aura-sidebar .sidebar-title,
body.sidebar-collapsed .aura-sidebar .nav-text,
body.sidebar-collapsed .aura-sidebar .badge-live {
    display: none;
}

body.sidebar-collapsed .aura-sidebar .nav-item {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
};
    background: var(--primary-gradient);
    color: #fff;
}

body.sidebar-collapsed .aura-sidebar .nav-item.active i {
    color: #fff;
}

body.sidebar-collapsed .aura-main-wrapper {
    margin-right: var(--sidebar-collapsed-w);
}

/* Responsive Mobile Layout */
@media (max-width: 900px) {
    }

/* Responsive Mobile Layout */
@media (max-width: 900px) {
    .search-box-wrapper { width: 260px; }
}

@media (max-width: 768px) {
    .aura-sidebar {
        transform: translateX(100%);
    }
    body.sidebar-open .aura-sidebar {
        transform: translateX(0);
    }
    .aura-main-wrapper {
        margin-right: 0 !important;
    }
    .search-box-wrapper {
        display: none;
    }
}
