:root {
    --primary-color: #c40812;
    --dark-bg: #141414;
    --card-bg: #1f1f1f;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f0f0f;
    color: #fff;
}

/* Header Styles */
.navbar {
    background-color: rgba(0, 0, 0, 0.95) !important;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color) !important;
}

.nav-link {
    color: #fff !important;
    margin: 0 15px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-login {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-download {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color) !important;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    /* margin-left: 10px; */
    transition: all 0.3s;
}

.btn-download:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.btn-hero {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-hero:hover {
    background-color: #c40812;
    transform: scale(1.05);
}

/* Features Section */
.features-section {
    padding: 40px 0;
    background-color: var(--dark-bg);
}

.feature-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.feature-card i {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.feature-card p {
    color: #aaa;
    font-size: 16px;
}

.small-footer {
    background-color: #c40812;
    padding: 2px;
    size: 6px;
}

/* Video Section */
.video-section {
    padding: 40px 0;
    background-color: #142839;
}

#loadMoreBtn,
#browseBtn {
    display: inline-block;
    /* ensures buttons behave like inline elements */
    margin: 0 5px;
    /* optional spacing between buttons */
}


.category-slider-section {
    background-color: var(--card-bg);
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
}

.video-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.video-meta {
    color: #aaa;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.video-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 50px 0; */
}

.auth-box {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    max-width: 450px;
    width: 100%;
    margin: 70px 0;
}

.auth-box h2 {
    margin-bottom: 30px;
    text-align: center;
}

.form-control {
    background-color: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 12px;
    margin-bottom: 20px;
}

#featuredSearch::placeholder {
    color: #ffffff;
    opacity: 1;

}

#featuredVideos {
    margin-top: 20px;
}

#featuredCategory {
    background-color: #444;
    color: white;
}


.form-control:focus {
    background-color: #444;
    border-color: #fff;
    color: #fff;
    box-shadow: none;
}

/* Profile Page */
.profile-section {
    padding: 100px 0;
    /* min-height: 100vh; */
}

.profile-header {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.profile-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-card {
    background-color: #0f0f0f;
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: #aaa;
    margin-top: 5px;
}

.tab-content {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
}

.nav-tabs .nav-link {
    color: #fff;
    border: none;
    background-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: transparent;
    border-bottom: 3px solid var(--primary-color);
}

/* Filter Section */
.filter-section {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
}

/* Cart */
.cart-item {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-item img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.page-hidden {
    display: none;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.badge-free {
    background-color: #2fb74f;
}

.badge-subscribe {
    background-color: var(--primary-color);
}

.badge-premium {
    background-color: var(--primary-color);
}

/* Footer */
.site-footer {
    background-color: var(--card-bg);
    padding: 50px 0 20px;
    padding-bottom: 0px !important;
    color: #ddd;
    /* margin-top: 40px; */
}

.site-footer a {
    color: #ddd;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--primary-color);
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-links li {
    list-style: none;
    margin-bottom: 8px;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    text-align: center;
    margin-right: 8px;
    color: #fff;
}

.newsletter-input {
    background-color: #0f0f0f;
    border: 1px solid #333;
    color: #fff;
}

/* Small SweetAlert2 popup styling */
.swal-small-popup {
    font-size: 0.9rem;
}

.swal-small-popup .swal2-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.swal-small-popup .swal2-html-container {
    font-size: 0.9rem;
}

.swal-small-popup .swal2-actions {
    padding: 0.4rem 0.6rem;
}

.swal-small-popup .swal2-popup {
    padding: 0.6rem !important;
}


/* new css */
.category-card {
    position: relative;
    display: block;
    width: 100%;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.category-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
    /* dark overlay */
    transition: 0.3s ease;
}

.category-card:hover .category-bg {
    filter: brightness(55%);
}

.category-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.upload-box {
    border: 2px dashed #bbb;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    text-align: center;
}

.upload-area {
    padding: 30px 10px;
    color: #888;
    font-size: 14px;
}

.preview-area {
    position: relative;
}

.preview-img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
}

.preview-video {
    width: 100%;
    max-height: 280px;
    border-radius: 8px;
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: white;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.select2-selection__choice {
    background: #e31212ff !important;
    color: white !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    margin-top: 5px !important;
}

.select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 5px !important;
    font-size: 16px !important;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da !important;
    min-height: 45px !important;
    padding: 6px !important;
}

/* Dropdown background black, text red */
.select2-container--bootstrap-5 .select2-results__option {
    background-color: #000 !important;
    color: #e31212ff !important;
}

/* Hovered option */
.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #333 !important;
    color: #e31212ff !important;
}

/* Remove default selected badges inside input */
.select2-container--bootstrap-5 .select2-selection__rendered {
    display: none;
}

.select2-container--bootstrap-5 .select2-selection {
    background-color: #333333 !important;
}

/* Hide selected items and their remove icons inside the select input */
.select2-container--bootstrap-5 .select2-selection__choice,
.select2-container--bootstrap-5 .select2-selection__choice__remove {
    display: none !important;
}

/* Skalaton preloader */
/* Skeleton loader styles */
.skeleton-card {
    animation: pulse 1.5s infinite;
}

.skeleton-thumbnail {
    width: 100%;
    height: 160px;
    background: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 10px;
}

.skeleton-text {
    height: 14px;
    background: #e0e0e0;
    margin-bottom: 6px;
    border-radius: 4px;
}

.skeleton-text.title {
    width: 70%;
    height: 18px;
    margin-bottom: 8px;
}

.skeleton-text.meta {
    width: 50%;
}

.skeleton-text.button {
    width: 100%;
    height: 36px;
    margin-top: 10px;
    border-radius: 6px;
}

@keyframes pulse {
    0% {
        background-color: #e0e0e0;
    }

    50% {
        background-color: #f0f0f0;
    }

    100% {
        background-color: #e0e0e0;
    }
}
