/* Nexus Gaming Hub Theme - YTDownloadX */

/* ========================================
   CRITICAL: Override Bootstrap Dark Theme
   ======================================== */
html {
    background: #0a0520 !important;
}

body {
    background: transparent !important;
    background-color: transparent !important;
    min-height: 100vh;
    position: relative;
}

/* Particle canvas background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: #0a0520;
}

/* Override Bootstrap's bg-dark class */
.bg-dark {
    background-color: #0a0520 !important;
}

/* Override data-bs-theme dark */
[data-bs-theme="dark"] {
    background: #0a0520 !important;
    background-color: #0a0520 !important;
}

/* Ensure all main containers have purple background */
main,
section,
.container,
.container-fluid,
.row {
    background: transparent !important;
}

/* Z-index layering - ensure content appears above particles */
nav,
main,
section,
footer,
.hero-section,
.about-hero-section,
.card,
.feature-card,
.btn {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: transparent;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(156, 111, 255, 0.05), transparent, rgba(75, 143, 255, 0.05));
    filter: blur(120px);
    z-index: 0;
}

.geometric-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(to right, rgba(156, 111, 255, 0.1), transparent);
    backdrop-filter: blur(2px);
    border: 2px solid rgba(111, 76, 255, 0.2);
    box-shadow: 0 8px 32px rgba(111, 76, 255, 0.15);
    animation: float 12s ease-in-out infinite;
    z-index: 0;
}

.shape-1 {
    width: 600px;
    height: 140px;
    left: -10%;
    top: 15%;
    transform: rotate(12deg);
    background: linear-gradient(to right, rgba(156, 111, 255, 0.15), transparent);
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 120px;
    right: -5%;
    top: 70%;
    transform: rotate(-15deg);
    background: linear-gradient(to right, rgba(75, 143, 255, 0.15), transparent);
    animation-delay: 2s;
}

.shape-3 {
    width: 300px;
    height: 80px;
    left: 5%;
    bottom: 5%;
    transform: rotate(-8deg);
    background: linear-gradient(to right, rgba(255, 111, 233, 0.1), transparent);
    animation-delay: 4s;
}

.shape-4 {
    width: 200px;
    height: 60px;
    right: 15%;
    top: 10%;
    transform: rotate(20deg);
    background: linear-gradient(to right, rgba(0, 234, 255, 0.1), transparent);
    animation-delay: 6s;
}

.shape-5 {
    width: 150px;
    height: 40px;
    left: 20%;
    top: 5%;
    transform: rotate(-25deg);
    background: linear-gradient(to right, rgba(156, 111, 255, 0.1), transparent);
    animation-delay: 8s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(var(--rotation, 0deg));
    }

    50% {
        transform: translateY(-15px) rotate(var(--rotation, 0deg));
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(16, 9, 40, 0.8);
    border: 1px solid rgba(111, 76, 255, 0.3);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9c6fff;
    box-shadow: 0 0 10px rgba(156, 111, 255, 0.8);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-title-main {
    background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-title-gradient {
    background: linear-gradient(90deg, #9c6fff, #4b8fff, #ff6fe9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: #b7a9ff;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-cta {
    animation: fadeInUp 1s ease-out 1.1s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features Section */
.feature-card {
    background: rgba(16, 9, 40, 0.8);
    border: 1px solid rgba(111, 76, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(111, 76, 255, 0.5);
    box-shadow: 0 8px 20px rgba(111, 76, 255, 0.3);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.star {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(156, 111, 255, 0.5));
}

/* Navigation */
.navbar-dark .navbar-nav .nav-link {
    transition: color 0.3s ease;
}

.hover-text-white:hover {
    color: #9c6fff !important;
}

/* Footer */
footer a:hover {
    color: #9c6fff !important;
}

/* Cards */
.card {
    transition: box-shadow 0.2s ease-in-out;
    background: rgba(14, 8, 36, 0.85);
    border: 1px solid rgba(111, 76, 255, 0.3);
    backdrop-filter: blur(10px);
}

.card:hover {
    box-shadow: 0 8px 20px rgba(111, 76, 255, 0.3) !important;
    border-color: rgba(111, 76, 255, 0.5);
}

/* Progress Bars */
.progress {
    height: 1.5rem;
    background: rgba(111, 76, 255, 0.2);
}

.progress-bar {
    transition: width 0.3s ease;
    background: linear-gradient(90deg, #7649fe, #4b8fff);
}

.progress-bar.bg-success {
    background: linear-gradient(90deg, #7649fe, #4b8fff) !important;
}

.progress-bar.bg-danger {
    background: linear-gradient(90deg, #ff6fe9, #ff4b4b) !important;
}

/* Images */
#thumb {
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.card-img-top {
    height: 150px;
    object-fit: cover;
}

#qr {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

/* Form Elements */
.form-check-input:checked {
    background-color: #9c6fff;
    border-color: #9c6fff;
}

/* Buttons */
.btn {
    transition: all 0.2s ease-in-out;
    border-radius: 50px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(90deg, #7649fe, #4b8fff);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #6438ed, #3a77ee);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(111, 76, 255, 0.5);
}

.btn-primary:focus,
.btn-success:focus {
    box-shadow: 0 0 0 0.25rem rgba(156, 111, 255, 0.5);
}

.btn-success {
    background: linear-gradient(90deg, #7649fe, #4b8fff);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(90deg, #6438ed, #3a77ee);
    box-shadow: 0 8px 20px rgba(111, 76, 255, 0.5);
}

.btn-outline-light {
    border-color: rgba(111, 76, 255, 0.5);
    color: #b7a9ff;
}

.btn-outline-light:hover {
    background: rgba(156, 111, 255, 0.2);
    border-color: #9c6fff;
    color: #ffffff;
}

.btn-outline-secondary {
    border-color: rgba(111, 76, 255, 0.3);
    color: #9c91c8;
}

.btn-outline-secondary:hover {
    background: rgba(156, 111, 255, 0.1);
    border-color: rgba(111, 76, 255, 0.5);
    color: #b7a9ff;
}

/* Dark theme form controls */
[data-bs-theme="dark"] .form-control {
    background-color: rgba(16, 9, 40, 0.8);
    border-color: rgba(111, 76, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(10px);
}

[data-bs-theme="dark"] .form-control:focus {
    background-color: rgba(16, 9, 40, 0.9);
    border-color: #9c6fff;
    box-shadow: 0 0 0 0.25rem rgba(156, 111, 255, 0.25);
}

[data-bs-theme="dark"] .form-select {
    background-color: rgba(16, 9, 40, 0.8);
    border-color: rgba(111, 76, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(10px);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239c6fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

[data-bs-theme="dark"] .form-select:focus {
    background-color: rgba(16, 9, 40, 0.9);
    border-color: #9c6fff;
    box-shadow: 0 0 0 0.25rem rgba(156, 111, 255, 0.25);
    color: #fff;
}

[data-bs-theme="dark"] .form-select:hover {
    background-color: rgba(16, 9, 40, 0.9);
    border-color: rgba(111, 76, 255, 0.5);
}

[data-bs-theme="dark"] .form-select option {
    background-color: #0e0824;
    color: #fff;
}

[data-bs-theme="dark"] .form-select option:checked {
    background-color: #9c6fff;
    color: #fff;
}

/* Loading state */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* About Page Styles */
.about-hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: transparent;
    overflow: hidden;
}

.about-card {
    background: rgba(14, 8, 36, 0.85);
    border: 1px solid rgba(111, 76, 255, 0.3);
    border-radius: 12px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.about-card:hover {
    border-color: rgba(111, 76, 255, 0.5);
    box-shadow: 0 8px 20px rgba(111, 76, 255, 0.3);
}

.feature-highlight {
    padding: 1.5rem;
    background: rgba(16, 9, 40, 0.8);
    border: 1px solid rgba(111, 76, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-highlight:hover {
    background: rgba(16, 9, 40, 0.9);
    border-color: rgba(111, 76, 255, 0.5);
    transform: translateY(-2px);
}

.team-card {
    background: rgba(16, 9, 40, 0.8);
    border: 1px solid rgba(111, 76, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(111, 76, 255, 0.5);
    box-shadow: 0 8px 20px rgba(111, 76, 255, 0.3);
}

.team-header {
    margin-bottom: 1.5rem;
}

.team-role {
    color: #9c6fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-contact {
    text-align: left;
}

.contact-link {
    color: #4b8fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #9c6fff;
    text-decoration: underline;
}

.cta-card {
    background: rgba(14, 8, 36, 0.85);
    border: 1px solid rgba(111, 76, 255, 0.3);
    border-radius: 12px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

/* Text colors */
.text-primary {
    color: #9c6fff !important;
}

.text-secondary {
    color: #b7a9ff !important;
}

.text-muted {
    color: #9c91c8 !important;
}

/* Navbar customization */
.navbar-dark {
    background-color: rgba(10, 5, 32, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Navbar brand - colors handled in HTML */
.navbar-brand {
    /* No gradient override - let HTML span colors show */
}

/* Footer customization */
footer {
    background-color: rgba(10, 5, 32, 0.95) !important;
    border-top: 1px solid rgba(111, 76, 255, 0.3) !important;
}

/* Glow effects */
.card:hover,
.feature-card:hover,
.team-card:hover,
.about-card:hover {
    box-shadow: 0 0 25px rgba(111, 76, 255, 0.4);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(156, 111, 255, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(156, 111, 255, 0.3);
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .geometric-shape {
        display: none;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .about-card {
        padding: 2rem;
    }

    .team-card {
        padding: 1.5rem;
    }

    .cta-card {
        padding: 2rem;
    }

    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }

    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-cta .btn:last-child {
        margin-bottom: 0;
    }

    .form-control-lg {
        font-size: 1rem;
        padding: 0.75rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }

    #playlistMeta .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    #playlistMeta .d-inline-block {
        display: block !important;
        width: 100% !important;
        margin-bottom: 0.5rem;
    }

    .btn {
        min-height: 44px;
        touch-action: manipulation;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .row.g-2>* {
        margin-bottom: 0.75rem;
    }

    .col-6.col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-description {
        font-size: 1.4rem;
    }
}


/* ========================================
   GLARE HOVER EFFECT - Shiny Glass Effect
   ======================================== */

.glare-hover {
    overflow: hidden;
    position: relative;
}

.glare-hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0) 45%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0) 55%,
        transparent 60%,
        transparent 100%
    );
    background-size: 200% 200%;
    background-position: -100% 0;
    background-repeat: no-repeat;
    transition: background-position 800ms ease;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    mix-blend-mode: overlay;
}

.glare-hover:hover::before {
    background-position: 200% 0;
    opacity: 1;
}

/* Single white glare - no color variants needed */
.glare-hover-purple::before,
.glare-hover-blue::before,
.glare-hover-pink::before {
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0) 45%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0) 55%,
        transparent 60%,
        transparent 100%
    );
    background-size: 200% 200%;
}

/* Ensure card content stays above glare effect */
.glare-hover > * {
    position: relative;
    z-index: 3;
}
