/* 
    Besharam Box - Main Stylesheet 
   Theme: Vibrant, Dark-capable, Dynamic, Glassmorphism
*/

:root {
    /* Premium Gradients */
    --primary-gradient: linear-gradient(135deg, #FF416C, #FF4B2B);
    --secondary-gradient: linear-gradient(135deg, #8A2387, #E94057, #F27121);
    --accent-glow: rgba(255, 65, 108, 0.4);
    
    /* Dark Mode (Default) Options */
    --dark-bg: #050505;
    --darker-bg: #000000;
    --glass-bg: rgba(20, 20, 20, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(25, 25, 25, 0.7);
    --text-primary: #f8f9fa;
    --text-muted: #a0a0a0;
}

[data-bs-theme="light"] {
    /* Bright, crisp, yet softly colored */
    --dark-bg: #f5f7fa;
    --darker-bg: #e4e7eb;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-primary: #121212;
    --text-muted: #6c757d;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
    overflow-x: hidden;
}

/* Premium Background for Home Page */
body.bg-home-premium {
    background-image: 
        linear-gradient(rgba(5, 5, 5, 0.8), rgba(0, 0, 0, 0.9)), 
        url('../img/main_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

/* Glassmorphism 2.0 */
.bg-glass {
    background-color: var(--glass-bg) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.text-gradient-secondary {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.btn-gradient {
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #FF4B2B, #FF416C);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-gradient:hover::before {
    opacity: 1;
}

.btn-gradient:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline-glass {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.btn-outline-glass:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--text-primary);
}

[data-bs-theme="light"] .btn-outline-glass:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

/* Base Card Styles - Premium Look */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3) !important;
    border-color: rgba(255, 65, 108, 0.3);
}

[data-bs-theme="light"] .card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
    border-color: rgba(255, 65, 108, 0.2);
}

.card-header {
    background-color: rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--glass-border);
}

[data-bs-theme="light"] .card-header {
    background-color: rgba(0,0,0,0.03);
}

.bg-darker {
    background-color: var(--darker-bg) !important;
}

/* Nav Link Hover Effects */
.navbar-nav .nav-link {
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link.active {
    color: #FF416C !important;
}

/* Hero Section Specifics (if any) */
.hero-section {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

/* Ambient Background Blobs */
.bg-blob-1, .bg-blob-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.bg-blob-1 {
    width: 400px; height: 400px;
    background: var(--secondary-gradient);
    top: -100px; left: -100px;
}

.bg-blob-2 {
    width: 300px; height: 300px;
    background: var(--primary-gradient);
    bottom: 10%; right: -50px;
    animation-delay: -5s;
}

[data-bs-theme="light"] .bg-blob-1, [data-bs-theme="light"] .bg-blob-2 {
    opacity: 0.15;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -40px) scale(1.1); }
}

/* Ads Placeholder */
.ad-container {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255,255,255,0.03);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

[data-bs-theme="light"] .ad-container {
    background-color: rgba(0,0,0,0.02);
}

.ad-container:hover {
    opacity: 0.8;
}

/* Footer Links */
.footer-link {
    color: var(--text-muted);
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.footer-link:hover {
    color: #FF416C !important;
    transform: translateX(5px);
}

/* Form Controls */
.form-control, .form-select {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-color: #FF416C;
    box-shadow: 0 0 0 0.25rem rgba(255, 65, 108, 0.2);
}

[data-bs-theme="light"] .form-control, [data-bs-theme="light"] .form-select {
    background-color: rgba(255, 255, 255, 0.5);
}

[data-bs-theme="light"] .form-control:focus, [data-bs-theme="light"] .form-select:focus {
    background-color: #fff;
}

/* Utility classes */
.blur-load {
    filter: blur(10px);
    transition: filter 0.8s ease-in-out;
}

.blur-load.loaded {
    filter: blur(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF416C;
}
[data-bs-theme="light"] ::-webkit-scrollbar-thumb {
    background: #ccc;
}
[data-bs-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #FF416C;
}

/* Pulse Animation for Trending dots */
.pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #FF416C;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 65, 108, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 65, 108, 0); }
}

/* Badges */
.badge-desi {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.35em 0.8em;
    box-shadow: 0 2px 10px rgba(255, 65, 108, 0.3);
}

/* Interaction details */
::selection {
    background: rgba(255, 65, 108, 0.3);
    color: inherit;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-gradient,
.text-gradient,
.text-gradient-secondary {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

body {
    animation: fadeIn 0.6s ease-in-out;
}

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

.card:hover {
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.3),
        0 0 20px rgba(255, 65, 108, 0.25);
}

.btn-gradient:active {
    transform: scale(0.96);
}

body::before {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/noise.png');
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

.featured-card {
    position: relative;
    z-index: 1;
}

.featured-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: var(--secondary-gradient);
    z-index: -1;
    filter: blur(10px);
    opacity: 0.5;
}
