:root {
    --bg-dark: #050505;
    --bg-header: #08080a;
    --card-bg: #0f0f12;
    --primary-red: #d90429;
    --primary-red-hover: #ef233c;
    --text-white: #edf2f4;
    --text-gray: #8d99ae;
    --text-danger: #ef233c;
    --rating-gold: #ffb703;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --blue-accent: #3867d6;
}

* {
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(8, 8, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    z-index: 1000;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    display: block;
    line-height: 1.2;
}

.logo-subtext {
    font-size: 0.65rem;
    color: var(--text-gray);
    font-weight: 500;
    display: block;
    line-height: 1;
}

.nav-link-custom {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link-custom:hover {
    color: white;
}

.btn-signin {
    background: var(--blue-accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-signin:hover {
    background: #4a7ae8;
    color: white;
    transform: translateY(-1px);
}

.btn-signup {
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

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

/* ===== HERO ===== */
.hero-section {
    position: relative;
    padding: 120px 0 100px;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.97) 100%),
        url('images/cyber-knights-preview.png') center / cover no-repeat;
}

.hero-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(217, 4, 41, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0;
    line-height: 1.1;
}

.hero-title-accent {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-red), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ===== SEARCH ===== */
.search-section {
    max-width: 560px;
}

.search-bar {
    position: relative;
}

.search-bar .form-control {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: white;
    padding: 14px 20px 14px 48px;
    font-size: 0.9rem;
}

.search-bar .form-control:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(217, 4, 41, 0.3);
    box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.1);
    color: white;
}

.search-bar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.custom-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    border-radius: 20px;
    padding: 6px 30px 6px 14px;
    width: auto;
    font-size: 0.8rem;
    cursor: pointer;
    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='%238d99ae' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-size: 10px;
}

.custom-select:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(217, 4, 41, 0.3);
    box-shadow: none;
    color: white;
}

/* ===== SECTIONS ===== */
.section-block {
    padding: 40px 0;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
}

/* Sub-section heading used within a parent section (e.g. blocks inside Featured Listings) */
.section-subtitle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.section-subtitle::before {
    content: "";
    width: 4px;
    height: 1.1em;
    background: var(--primary-red);
    border-radius: 2px;
}

.games-count {
    color: var(--text-danger);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ===== FEATURED CARDS (Horizontal Scroll) ===== */
.featured-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.featured-scroll::-webkit-scrollbar {
    display: none;
}

.featured-card {
    min-width: 300px;
    max-width: 300px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    scroll-snap-align: start;
    transition: border-color 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.featured-card:hover {
    border-color: rgba(217, 4, 41, 0.3);
    transform: translateY(-4px);
}

.featured-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.platform-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-red);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(217, 4, 41, 0.4);
}

.price-tag-lg {
    padding: 6px 18px;
    font-size: 1rem;
}

.featured-info {
    padding: 16px;
}

.featured-name {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.genre-badge {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-gray);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
}

.condition-badge {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
}

.star-rating {
    color: var(--rating-gold);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 2px;
}

.star-rating span {
    color: var(--text-gray);
    font-weight: 600;
    margin-left: 4px;
    font-size: 0.8rem;
}

.btn-contact-sm {
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-contact-sm:hover {
    background: var(--primary-red-hover);
    color: white;
    transform: translateY(-1px);
}

/* ===== SPOTLIGHT ===== */
.spotlight-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    max-width: 100%;
}

.spotlight-media {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.spotlight-img-wrap {
    position: relative;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
}

.spotlight-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
}

.spotlight-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

.rating-badge {
    background: rgba(255, 183, 3, 0.1);
    color: var(--rating-gold);
    padding: 5px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.info-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.info-item .label {
    color: var(--text-gray);
    font-size: 0.7rem;
    margin-bottom: 4px;
}

.info-item .value {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-contact {
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-contact:hover {
    background: var(--primary-red-hover);
    color: white;
    box-shadow: 0 5px 15px rgba(217, 4, 41, 0.3);
}

.btn-discussions {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-discussions:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.spotlight-preview {
    padding: 0;
}

.preview-container {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.preview-container img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    filter: brightness(0.5);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5rem;
    opacity: 0.85;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.preview-container:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
}

.preview-label {
    position: absolute;
    bottom: 12px;
    left: 14px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ===== MORE GAMES GRID ===== */
.more-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
    height: 100%;
}

.more-card:hover {
    border-color: rgba(217, 4, 41, 0.3);
    transform: translateY(-4px);
}

.more-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.more-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-info {
    padding: 16px;
}

.more-name {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-header);
    border-top: 1px solid var(--glass-border);
    padding: 50px 0 30px;
    margin-top: 40px;
}

.footer-heading {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    padding: 10px 16px;
    font-size: 0.85rem;
}

.newsletter-form .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-subscribe {
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-subscribe:hover {
    background: var(--primary-red-hover);
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    color: var(--text-gray);
    font-size: 0.8rem;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    color: var(--text-gray);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-title-accent {
        font-size: 2.6rem;
    }
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .spotlight-img-wrap {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
        background-position: center;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-title-accent {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .section-subtitle {
        font-size: 1.1rem;
    }
    .spotlight-title {
        font-size: 1.3rem;
    }
    .featured-card {
        min-width: 260px;
        max-width: 260px;
    }
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}
