/* ==============================================================================
   VoodooPlay Assets - Modern Responsive Stylesheet
   Pixel-Perfect Match to Mockup Design
   ============================================================================== */

:root {
    --bg-dark: #0f172a;
    --bg-darker: #090d16;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --primary: #0078d4;
    --primary-hover: #0063b1;
    --primary-light: #e0f2fe;
    --accent: #38bdf8;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    --border-color: #e2e8f0;
    --star-gold: #f59e0b;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==============================================================================
   Site Header
   ============================================================================== */
.site-header {
    background-color: var(--bg-dark);
    color: var(--text-white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

.logo-area .brand-logo {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 2px;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-white);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px 2px 0 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-input-wrapper {
    position: relative;
    width: 240px;
}

.search-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 8px 36px 8px 14px;
    color: var(--text-white);
    font-size: 13px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.14);
    border-color: var(--accent);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: var(--text-white);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
}

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

.mobile-toggle-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
}

.mobile-toggle-btn span {
    width: 22px;
    height: 2px;
    background-color: var(--text-white);
    border-radius: 2px;
}

/* ==============================================================================
   Hero Featured Carousel
   ============================================================================== */
.hero-carousel {
    position: relative;
    background-color: var(--bg-darker);
    overflow: hidden;
    min-height: 440px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 440px;
    background-size: cover;
    background-position: center;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.75) 45%, rgba(10, 14, 23, 0.25) 100%);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
    color: var(--text-white);
    padding: 50px 0;
}

.featured-pill {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.carousel-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.carousel-desc {
    font-size: 15px;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 18px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.carousel-rating {
    margin-bottom: 14px;
}

.carousel-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 2px 4px rgba(0, 120, 212, 0.3);
}

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

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
}

.carousel-arrow.prev {
    left: 24px;
}

.carousel-arrow.next {
    right: 24px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    cursor: pointer;
}

.dot.active {
    background-color: var(--accent);
    transform: scale(1.2);
}

/* ==============================================================================
   Star Rating Component
   ============================================================================== */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.star-rating .stars {
    display: flex;
    gap: 2px;
}

.star-rating svg {
    width: 15px;
    height: 15px;
}

.star-full, .star-half {
    color: var(--star-gold);
}

.star-empty {
    color: #cbd5e1;
}

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

.carousel-rating .review-count {
    color: #cbd5e1;
}

/* ==============================================================================
   Section & Grid Layout
   ============================================================================== */
.section {
    padding: 48px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.view-all-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.view-all-link:hover {
    color: var(--primary-hover);
    gap: 8px;
}

/* Category Filter Pills */
.category-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.category-pill {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition);
    white-space: nowrap;
}

.category-pill:hover,
.category-pill.active {
    background-color: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* Asset Cards Grid */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.asset-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.asset-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.card-thumb-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #1e293b;
}

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.asset-card:hover .card-thumb {
    transform: scale(1.04);
}

.card-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    background-color: rgba(15, 23, 42, 0.94);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.02em;
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.card-title:hover {
    color: var(--primary);
}

.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 12px;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-rating {
    margin-bottom: 12px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.card-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
}

.card-price .price-original {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 4px;
}

.card-btn {
    background-color: var(--primary);
    color: var(--text-white);
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.card-btn:hover {
    background-color: var(--primary-hover);
}

/* ==============================================================================
   Site Footer
   ============================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 48px 0 24px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand-tagline {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
}

.footer-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-nav a,
.cookie-settings-btn {
    font-size: 14px;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.footer-nav a:hover,
.cookie-settings-btn:hover {
    color: var(--text-white);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-icon {
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.social-icon:hover {
    color: var(--text-white);
}

.affiliate-disclaimer-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 28px 0;
}

.disclaimer-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.disclaimer-text {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    padding-top: 16px;
}

/* ==============================================================================
   Asset Detail Modal
   ============================================================================== */
.asset-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.asset-modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
}

.modal-card {
    position: relative;
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    color: var(--text-muted);
    z-index: 10;
    transition: color 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
}

.modal-close-btn:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 0;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-media {
    position: relative;
    background-color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
}

.modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.modal-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.modal-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.modal-meta-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background-color: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 12px;
    margin: 16px 0;
    font-size: 12px;
}

.spec-item .spec-label {
    color: var(--text-muted);
    font-weight: 500;
}

.spec-item .spec-val {
    color: var(--text-dark);
    font-weight: 700;
}

.modal-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    max-height: 180px;
    overflow-y: auto;
}

.modal-purchase-row {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
}

.btn-buy-store {
    background-color: #0078d4;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-buy-store:hover {
    background-color: #0063b1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

.modal-spinner {
    padding: 60px;
    text-align: center;
    color: var(--text-muted);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==============================================================================
   GDPR Cookie Banner
   ============================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    margin: 0 auto;
    background: #0f172a;
    color: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 22px;
    z-index: 9999;
}

.cookie-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cookie-desc {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 14px;
}

.cookie-link {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ==============================================================================
   Static Pages (Terms, Privacy, Asset Full View)
   ============================================================================== */
.legal-page-header {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 50px 0;
    text-align: center;
}

.legal-page-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.legal-content-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    margin: -30px auto 60px;
    max-width: 860px;
    box-shadow: var(--shadow-sm);
}

.legal-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 10px;
    color: var(--text-dark);
}

.legal-body p {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 14px;
}

.legal-body ul {
    margin-left: 20px;
    margin-bottom: 16px;
    color: #475569;
    font-size: 14px;
}

.legal-body li {
    margin-bottom: 6px;
}

/* ==============================================================================
   Responsive Queries
   ============================================================================== */
@media (max-width: 1024px) {
    .assets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-toggle-btn {
        display: flex;
    }
    .search-input-wrapper {
        width: 160px;
    }
    .assets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .carousel-title {
        font-size: 26px;
    }
    .carousel-desc {
        font-size: 13px;
    }
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-media {
        min-height: 220px;
    }
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .assets-grid {
        grid-template-columns: 1fr;
    }
    .carousel-arrow {
        display: none;
    }
}
