/* ===== CSS Variables ===== */
:root {
    --primary-color: #ff2d95;        /* neon magenta */
    --primary-dark: #b21f7a;
    --primary-light: #f472b6;
    --secondary-color: #3b82f6;      /* electric blue */
    --accent-color: #f59e0b;
    --dark-bg: #04021a;              /* very dark/navy base */
    --darker-bg: #05042a;
    --card-bg: rgba(14, 18, 34, 0.7);/* slightly transparent card */
    --card-hover: rgba(35, 32, 60, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: rgba(203,213,225,0.9);
    --text-muted: #94a3b8;
    --border-color: rgba(60, 55, 95, 0.6);
    --gradient-primary: #7b0040;
    --gradient-dark: linear-gradient(180deg, #04021a 0%, #060733 70%);
    --white-text: rgb(255, 255, 255);
    --shadow-primary: 0 12px 30px rgba(255,45,149,0.12);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 6px 30px rgba(6, 4, 26, 0.6);
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Fiorello';
    src: url('../fonts/Fiorello CG Condensed Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    background: var(--dark-bg);
    background: var(--gradient-dark);
    min-height: 100vh;
    color: var(--text-primary);
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    background: var(--gradient-dark);
    overflow-x: hidden;
}


/* Ensure main content grows to push footer down */
main {
    flex: 1;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', sans-serif;
    font-weight: 600;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ===== Navigation ===== */
.navbar {
    background: rgba(4,3,20,0.35);
    backdrop-filter: blur(8px) saturate(120%);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.navbar-brand {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar .btn-primary:hover {
    background: var(--gradient-primary);  /* keep the same color */
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--gradient-primary);
    border-color: var(--gradient-primary);
    color: var(--text-primary);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-family: 'Fiorello', sans-serif;
    font-size: 6.5rem;
    font-weight: 500;
    background: var(--white-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.lead {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Filter Section ===== */
.filter-section {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.filter-section .form-select {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 10px 15px;
}

.filter-section .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

/* ===== Scenepack Cards ===== */
.scenepack-gallery {
    padding: 2rem 0;
}

.scenepack-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.scenepack-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-color);
}

.scenepack-image-container {
    position: relative;
    overflow: hidden;
    height: 400px;
    background: var(--darker-bg);
}

.scenepack-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.scenepack-card:hover .scenepack-image {
    transform: scale(1.05);
}

/* View Button and Hover Instruction from original */

/* MiniPack Counter Badge */
.minipack-counter {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.3);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

.minipack-counter i {
    color: var(--primary-light);
}

/* Hover Overlay */
.scenepack-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent 40%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.scenepack-card:hover .scenepack-overlay {
    opacity: 1;
}

.scenepack-overlay-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.scenepack-image-link:hover .scenepack-overlay-title {
    transform: translateY(0);
}

.scenepack-card:hover .scenepack-overlay-title {
    transform: translateY(0);
}

.scenepack-overlay-info {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.scenepack-image-link:hover .scenepack-overlay-info {
    transform: translateY(0);
}

.scenepack-card:hover .scenepack-overlay-info {
    transform: translateY(0);
}

/* Card Body */
.scenepack-card-body {
    padding: 1.25rem;
}

.scenepack-card-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scenepack-card-category {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}


/* ==== logo ==== */

.logo-container {
    width: 225px;
    height: 80px;
    overflow: hidden;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ===== Advertisement Block ===== */
.ad-block {
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: rgba(30, 41, 59, 0.7);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    max-width: 600px;
    margin: 2rem auto;
    backdrop-filter: blur(10px);
    display: block;
    width: 100%;
    max-width: 900px;  /* or 100% if you want it always fluid */
    aspect-ratio: 3 / 1; /* maintains 900x300 proportions */
    position: relative;
    overflow: hidden;
}

.ad-block img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures image fills the block, cropping if necessary */
}

.ad-block:hover {
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(115, 118, 250, 0.5);
    transform: translateY(-3px);
}

.ad-image-container {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.4);
    background: rgba(30, 41, 59, 0.8);
    transition: transform 0.3s ease;
}

.ad-block:hover .ad-image-container {
    transform: scale(1.05);
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sponsored-badge {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(147, 197, 253, 1);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 3px 8px;
    display: inline-block;
    margin-top: 5px;
}

.ad-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.ad-description {
    font-size: 0.875rem;
    color: rgba(203, 213, 225, 1);
    line-height: 1.5;
}

.ad-action {
    color: rgba(147, 197, 253, 1);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ad-action i {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.ad-block:hover .ad-action i {
    transform: translateX(2px) translateY(-2px);
}

/* ===== Pagination ===== */
.custom-pagination {
    gap: 5px;
}

.custom-pagination .page-link {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.custom-pagination .page-link:hover {
    background: var(--card-hover);
    color: var(--text-primary);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15);
}

.custom-pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

.custom-pagination .pagination-arrow {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.custom-pagination .pagination-arrow:hover {
    background: rgba(99, 102, 241, 0.2);
}

.custom-pagination .page-item.disabled .page-link {
    background: var(--darker-bg);
    color: var(--text-muted);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
}

.custom-pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

.custom-pagination .pagination-ellipsis {
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: default;
}

.custom-pagination .pagination-ellipsis:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Page info styles */
.page-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ===== Footer ===== */
.footer {
    background: rgba(4, 3, 20, 0.75);
    backdrop-filter: blur(8px) saturate(120%);
    border-top: 1px solid transparent;
    color: var(--text-secondary);
    padding: 2rem 0 1.5rem;           /* reduced from 3rem 0 2rem */
    margin-top: auto;
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Gradient top border (unchanged) */
.footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.6;
}



/* Footer grid – smaller gap */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;                      /* reduced from 2.5rem */
    margin-bottom: 1.5rem;            /* reduced from 2rem */
}

/* Each grid cell as centered flex column */
.footer-grid > * {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Smaller logo container */
.footer .logo-container {
    width: 180px;                      /* was 225px */
    height: 64px;                       /* was 80px */
    margin-bottom: 0.75rem;             /* reduced from 1rem */
    filter: drop-shadow(0 0 6px rgba(255, 45, 149, 0.3));
    transition: filter 0.3s ease;
}

.footer .logo-container:hover {
    filter: drop-shadow(0 0 10px rgba(255, 45, 149, 0.6));
}

.footer .logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Description text – slightly smaller */
.footer-description {
    color: var(--text-muted);
    font-size: 0.9rem;                 /* reduced from 0.95rem */
    line-height: 1.5;
    margin: 0 auto;
}

/* Column headings – reduced margin */
.footer-heading {
    color: var(--text-primary);
    font-size: 1.1rem;                  /* reduced from 1.2rem */
    font-weight: 600;
    margin-bottom: 0.8rem;               /* reduced from 1.2rem */
    position: relative;
    display: inline-block;
    padding-bottom: 0.3rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}


.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* ===== Animations ===== */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--card-bg) 25%, var(--card-hover) 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .scenepack-image-container {
        height: 200px;
    }

    .filter-section {
        margin: 1rem;
        padding: 1rem;
    }

    .footer {
        padding: 2rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .custom-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .custom-pagination .page-link {
        padding: 8px 12px;
        min-width: 40px;
        font-size: 0.9rem;
    }

    .pagination-ellipsis {
        display: none;
    }
}

@media (max-width: 576px) {
    .custom-pagination .page-link {
        padding: 6px 10px;
        min-width: 36px;
        font-size: 0.85rem;
    }

    .page-info {
        font-size: 0.8rem;
    }

    .scenepack-overlay-title {
        font-size: 1.2rem;
    }

    .view-button {
        font-size: 0.8rem;
        padding: 6px 15px;
    }

    .hover-instruction {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Fix for empty state */
.empty-state {
    text-align: center;
    padding: 3rem 0;
}

@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0 1rem;              /* smaller on mobile */
    }



    .footer .logo-container {
        width: 150px;
        height: 54px;
    }

    .footer-description {
        font-size: 0.85rem;
    }

    .social-link {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

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

    .footer .logo-container {
        width: 140px;
        height: 50px;
    }

    .footer-heading::after {
        left: 25%;
        width: 50%;
    }
}

/* Fix for form controls in dark mode */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

/* Fix for links */
a {
    color: var(--primary-light);
    text-decoration: none;
}

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

/* Fix for text colors in dark mode */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}


.app-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    /* Slightly purple‑tinted dark base */
    background: radial-gradient(circle at 50% 50%, #120b1a 0%, #080517 60%, #020109 100%);
}

/* Layered neon gradients using the button's palette */
.app-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(35% 35% at 50% 50%, rgba(171, 32, 10, 0.25), transparent 70%),
        radial-gradient(60% 50% at 70% 30%, rgba(0, 0, 78, 0.25), transparent 70%),
        radial-gradient(55% 45% at 20% 60%, rgba(155, 0, 43, 0.2), transparent 70%),
        radial-gradient(50% 40% at 80% 80%, rgba(123, 0, 64, 0.2), transparent 70%),
        radial-gradient(45% 45% at 30% 70%, rgba(46, 0, 166, 0.2), transparent 70%);
    background-repeat: no-repeat;
    background-size: 120% 120%;
    filter: blur(120px) saturate(150%);
}

/* Subtle dotted star texture – kept, with slightly higher opacity */
.app-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 80% 40%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 35% 80%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 75% 15%, rgba(255,255,255,0.6), transparent);
    background-repeat: repeat;
    background-size: 300px 300px;
    opacity: 0.5;  /* was 0.4 */
    animation: starDrift 120s linear infinite;
}

@keyframes spaceDrift {
    0% {
        background-position:
            75% 65%,
            40% 20%,
            20% 75%,
            50% 50%;
    }

    50% {
        background-position:
            70% 60%,
            45% 25%,
            25% 70%,
            50% 50%;
    }

    100% {
        background-position:
            75% 65%,
            40% 20%,
            20% 75%,
            50% 50%;
    }
}

@keyframes starDrift {
    0%   { background-position: 0 0; }
    100% { background-position: -200px 200px; }
}

.card {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    margin-top: 60px;
}

.auth-header {
    font-weight: 700;
    margin-bottom: 1rem;
}

.form-control {
    background: rgba(15,23,42,0.6) !important;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.form-control:focus {
    background: rgba(15,23,42,0.8) !important;
    border-color: var(--primary-color);
    color: var(--text-primary);
}



/* ===== Custom Notification Modal ===== */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);     /* semi‑transparent background */
    backdrop-filter: blur(4px);           /* subtle blur for extra depth */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    /* backdrop is not clickable to close */
    pointer-events: auto;
}

.notification-modal {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    width: 90%;
    max-width: 420px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    animation: fadeInUp 0.3s ease-out;
}

.notification-content {
    margin-bottom: 1rem;
}

.message-item {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.5;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.message-item:last-child {
    border-bottom: none;
}

/* Optional: tag‑based styling (use your existing message tags) */
.message-success {
    color: #4ade80;
}
.message-error {
    color: #f87171;
}
.message-warning {
    color: #facc15;
}
.message-info {
    color: #60a5fa;
}

/* Smooth entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .notification-modal {
        padding: 1.2rem;
        max-width: 320px;
    }
    .message-item {
        font-size: 0.95rem;
    }
}