/* 
    BLACK PANTHER - Luxury Design System
    Colors: Black (#000000, #0f0f0f, #1c1c1c) and Gold (#d4af37)
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;700&family=Orbitron:wght@400;600;800&display=swap');

:root {
    --primary-bg: #000000;
    --secondary-bg: #050505;
    --card-bg: #0f0f0f;
    --accent-gold: #e1b941;
    --accent-gold-glow: rgba(225, 185, 65, 0.4);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(28, 28, 28, 0.6);
    --glass-border: rgba(212, 175, 55, 0.2);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-bg);
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

p, span, div, label, li, td, th {
    color: #ffffff !important;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    color: #ffffff !important;
}

/* Sharp Edged Elements (Logo style) */
.sharp-edge {
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

/* Glassmorphism Effect */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Gold Gradient Button */
.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #f9e272 50%, #d4af37 100%);
    color: #000;
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-gold-glow);
    filter: brightness(1.1);
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 10px 24px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: #000;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--secondary-bg);
    padding-top: 80px;
    transition: var(--transition-smooth);
    z-index: 1000;
    border-right: 1px solid var(--glass-border);
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--accent-gold);
}

.sidebar-link i {
    margin-right: 15px;
    font-size: 20px;
}

/* Header Styling */
.navbar-custom {
    height: 80px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--glass-border);
}

.search-container {
    width: 40%;
    position: relative;
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .search-container.mobile-active {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: var(--primary-bg);
        z-index: 1002;
        padding: 10px 20px;
        display: flex;
        align-items: center;
    }
}

.search-input {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    outline: none;
    transition: var(--transition-smooth);
}

.search-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold-glow);
}

/* Global Form Controls */
.form-control, .form-select {
    background-color: #121212 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 8px;
    padding: 12px;
}

.form-control:focus, .form-select:focus {
    background-color: #181818 !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 10px var(--accent-gold-glow) !important;
    color: white !important;
}

/* Table Styling */
.table {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.table thead th {
    border-bottom: 2px solid var(--accent-gold) !important;
    color: var(--accent-gold) !important;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Alerts Styling */
.alert {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
}

.alert-success { border-color: #28a745; background: rgba(40, 167, 69, 0.1); }
.alert-danger { border-color: #dc3545; background: rgba(220, 53, 69, 0.1); }
.alert-warning { border-color: #ffc107; background: rgba(255, 193, 7, 0.1); }

/* Comment Input */
.comment-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 0;
    outline: none;
    transition: var(--transition-smooth);
}

.comment-input:focus {
    border-bottom-color: var(--accent-gold);
}

/* Interaction Buttons */
.interaction-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    transition: var(--transition-smooth);
    font-size: 14px;
}

.interaction-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
}

.interaction-btn.active {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* Card Styling */
.video-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    margin-bottom: 25px;
    border: 1px solid transparent;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-card.youtube-style {
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
}

.video-card.youtube-style .thumbnail-wrapper {
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .video-card.youtube-style .thumbnail-wrapper {
        border-radius: 0;
    }
    .video-card.youtube-style:hover {
        transform: none;
    }
}

.thumbnail-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.video-info {
    padding: 12px 0;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 13px;
    color: var(--text-muted);
}

/* Gold Accents & Glows */
.gold-text { color: var(--accent-gold); }
.gold-glow { text-shadow: 0 0 10px var(--accent-gold-glow); }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Shorts Section */
.shorts-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.short-card {
    min-width: 180px;
    height: 320px;
    border-radius: 15px;
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.short-card:hover {
    box-shadow: 0 0 20px var(--accent-gold-glow);
}

/* Layout adjustment */
.main-content {
    margin-left: 260px;
    padding: 100px 40px 40px 40px;
    transition: var(--transition-smooth);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 1001;
    border-top: 1px solid var(--glass-border);
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    gap: 4px;
}

.mobile-nav-link i {
    font-size: 20px;
}

.mobile-nav-link.active {
    color: var(--accent-gold);
}

/* Sidebar Backdrop */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
}

.sidebar-backdrop.active {
    display: block;
}

/* Plyr Customization */
:root {
    --plyr-color-main: #e1b941;
    --plyr-video-control-color: #ffffff;
    --plyr-video-control-color-hover: #e1b941;
}

.plyr--video {
    border-radius: 12px;
}

@media (max-width: 768px) {
    .plyr--video {
        border-radius: 0;
    }
}

.rewards-banner {
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.9) 0%, rgba(15, 15, 15, 0.95) 100%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.rewards-banner h1 {
    text-shadow: 0 0 20px var(--accent-gold-glow);
}

@media (max-width: 992px) {
    .sidebar { 
        left: -280px; 
        top: 0; 
        height: 100vh; 
        width: 280px; 
        z-index: 1050;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .main-content { 
        margin-left: 0; 
        padding: 100px 10px 90px 10px; 
    }
    .sidebar.active { left: 0; }
    
    .mobile-bottom-nav { 
        display: flex; 
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 1040;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-nav-link {
        color: #888;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 10px;
        gap: 4px;
        transition: 0.2s;
    }

    .mobile-nav-link i {
        font-size: 20px;
    }

    .mobile-nav-link.active {
        color: var(--accent-gold);
    }

    .mobile-nav-link:active {
        transform: scale(0.9);
    }
}

@media (max-width: 576px) {
    .navbar-custom {
        padding: 0 15px;
    }
    
    .video-card {
        margin-bottom: 20px;
    }
    
    .video-title {
        font-size: 14px;
    }
}

/* Utility for horizontal scrolling on mobile */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 576px) {
    .video-card.youtube-style .video-title {
        font-size: 10px !important;
        line-height: 1.2;
        margin-bottom: 2px;
    }
    .video-card.youtube-style .video-meta {
        font-size: 8px !important;
        line-height: 1.1;
    }
    .video-card.youtube-style .rounded-circle {
        width: 18px !important;
        height: 18px !important;
    }
    .video-info {
        padding: 5px 0;
    }
    .col-4 {
        padding: 0 4px !important;
    }
    .row.g-0 {
        margin-left: -4px;
        margin-right: -4px;
    }
    .video-card.youtube-style .thumbnail-wrapper {
        border-radius: 4px;
    }
}
