/* ==========================================================================
   RETROEDITORS ULTRA-LUXURY GLASSMORPHIC SEARCH SYSTEM
   ========================================================================== */

/* Global Reset & Base */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body.track-theme-body {
    /* Rich CPU-friendly radial dark forest-to-obsidian gradient */
    background: radial-gradient(circle at 50% 0%, #0d200b 0%, #060708 60%);
    background-attachment: fixed;
    color: #ffffff;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbars */
body.track-theme-body::-webkit-scrollbar {
    width: 8px;
}

body.track-theme-body::-webkit-scrollbar-thumb {
    background-color: rgba(50, 230, 5, 0.45);
    border-radius: 10px;
    border: 2px solid #060708;
}

body.track-theme-body::-webkit-scrollbar-thumb:hover {
    background-color: #32e605;
}

body.track-theme-body::-webkit-scrollbar-track {
    background-color: #060708;
}

/* Sophisticated Glassmorphic Sticky Header */
.track-header {
    background-color: rgba(6, 7, 8, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 18px 24px;
    border-bottom: 1.5px solid rgba(50, 230, 5, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Elegant Luxury Logo Typography */
.track-logo {
    font-size: 1.55rem;
    font-weight: 300;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: opacity 0.2s;
}

.track-logo:hover {
    opacity: 0.9;
}

.track-logo .highlight-green {
    font-weight: 800;
    color: #32e605;
    text-shadow: 0 0 15px rgba(50, 230, 5, 0.4);
}

/* Navigation Links */
.track-nav-menu {
    display: flex;
    gap: 24px;
    list-style: none;
}

.track-nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: color 0.2s, opacity 0.2s;
    opacity: 0.75;
    position: relative;
    padding-bottom: 4px;
}

.track-nav-menu li a:hover {
    opacity: 1;
    color: #32e605;
}

/* Elegant Hover Indicator Accent */
.track-nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background-color: #32e605;
    transition: width 0.25s, left 0.25s;
    box-shadow: 0 0 8px #32e605;
}

.track-nav-menu li a:hover::after {
    width: 100%;
    left: 0;
}

/* Mobile Toggle Layout using Checkbox Hack */
.nav-toggle-checkbox {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    cursor: pointer;
}

.nav-toggle-label .bar {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Sophisticated Dark Glassmorphic Search Bar */
.header-search-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.search-pill-box {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 2px 8px 2px 18px;
    width: 100%;
    max-width: 520px;
    transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.search-pill-box:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(50, 230, 5, 0.25);
}

.search-pill-box:focus-within {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: #32e605;
    box-shadow: 0 0 20px rgba(50, 230, 5, 0.22);
}

.search-pill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.search-pill-icon svg {
    stroke: rgba(255, 255, 255, 0.4);
    transition: stroke 0.25s;
}

.search-pill-box:focus-within .search-pill-icon svg {
    stroke: #32e605;
}

.search-pill-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 11px 0;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.search-pill-field::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}

/* Main Container Listing */
.track-main-container {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px;
}

.results-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.results-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Elegant Acrylic/Glass Card (Apple / Vercel style) */
.scene-item-card {
    display: flex;
    background-color: rgba(22, 24, 28, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 16px 20px;
    gap: 20px;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.scene-item-card:hover {
    background-color: rgba(22, 24, 28, 0.7);
    border-color: rgba(50, 230, 5, 0.35);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(50, 230, 5, 0.08);
    transform: translateY(-3px);
}

/* Beautiful Green Accent Border Highlight */
.scene-poster-box {
    width: 78px;
    height: 108px;
    background-color: rgba(50, 230, 5, 0.02);
    border: 1.5px dashed rgba(50, 230, 5, 0.25);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.scene-poster-box svg {
    stroke: rgba(50, 230, 5, 0.5);
    transition: all 0.3s ease;
}

.scene-item-card:hover .scene-poster-box {
    background-color: rgba(50, 230, 5, 0.05);
    border-color: rgba(50, 230, 5, 0.6);
    box-shadow: 0 0 15px rgba(50, 230, 5, 0.15);
}

.scene-item-card:hover .scene-poster-box svg {
    stroke: #32e605;
    transform: scale(1.08);
    filter: drop-shadow(0 0 4px rgba(50, 230, 5, 0.5));
}

/* Info Box Typography */
.scene-info-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.scene-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.scene-card-meta {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.4px;
}

.scene-card-divider {
    height: 1.5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
    width: 100%;
    margin: 10px 0;
    border-radius: 2px;
}

.scene-card-actions {
    display: flex;
    justify-content: flex-start;
}

/* Luxury Glowing Pill Button Outline */
.btn-info-action {
    display: inline-block;
    background-color: transparent;
    color: #32e605;
    border: 1.5px solid #32e605;
    border-radius: 30px;
    padding: 6px 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    box-shadow: 0 0 5px rgba(50, 230, 5, 0.1);
}

.btn-info-action:hover {
    background-color: #32e605;
    color: #000000;
    box-shadow: 0 0 20px rgba(50, 230, 5, 0.45);
    transform: translateY(-1px);
}

/* Luxury Pagination trigger */
.load-more-btn {
    display: block;
    margin: 32px auto 0 auto;
    padding: 12px 30px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: rgba(50, 230, 5, 0.03);
    border: 2px solid rgba(50, 230, 5, 0.4);
    color: #32e605;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.load-more-btn:hover {
    background-color: #32e605;
    color: #000000;
    border-color: #32e605;
    box-shadow: 0 0 20px rgba(50, 230, 5, 0.3);
}

.no-results-message {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Luxury Floating Action Trigger Button */
.btn-floating-action {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #32e605;
    color: #000000;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(50, 230, 5, 0.35);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-floating-action:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 30px rgba(50, 230, 5, 0.5);
}

/* Upload contribution modal style */
.upload-modal-container {
    position: fixed;
    bottom: 96px;
    right: 30px;
    width: 330px;
    max-height: 80vh;
    background-color: rgba(18, 19, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(50, 230, 5, 0.15);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(50, 230, 5, 0.08);
    z-index: 9999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.upload-modal-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.upload-modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.upload-modal-header p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    margin-top: 3px;
}

.upload-modal-body {
    padding: 20px;
}

.form-group-custom {
    margin-bottom: 16px;
}

.form-group-custom input[type="text"],
.form-group-custom input[type="password"],
.form-group-custom textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.form-group-custom input[type="text"]:focus,
.form-group-custom input[type="password"]:focus,
.form-group-custom textarea:focus {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: #32e605;
    box-shadow: 0 0 12px rgba(50, 230, 5, 0.15);
}

.form-group-custom textarea {
    resize: none;
}

.validation-error {
    color: #ff4545;
    font-size: 0.72rem;
    margin-top: 5px;
    font-weight: 600;
    display: none;
}

.btn-upload-submit {
    width: 100%;
    background-color: #32e605;
    color: #000000;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-upload-submit:hover {
    background-color: #2bd004;
    box-shadow: 0 0 20px rgba(50, 230, 5, 0.45);
}

/* Toast popup feedback */
.toast-notification {
    display: none;
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(18, 19, 23, 0.9);
    backdrop-filter: blur(8px);
    border: 1.5px solid #32e605;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(50, 230, 5, 0.25);
    z-index: 100000;
    transition: opacity 0.2s;
}

/* RESPONSIVE DESIGN FOR TABLETS & MOBILES */
@media (max-width: 600px) {
    .track-header {
        padding: 16px 20px;
    }

    .nav-toggle-label {
        display: flex;
    }
    
    .track-nav-menu {
        position: absolute;
        top: 100%;
        left: -20px;
        right: -20px;
        background-color: rgba(6, 7, 8, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(50, 230, 5, 0.15);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    }
    
    .track-nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .track-nav-menu li a {
        display: block;
        padding: 16px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
        font-size: 0.9rem;
    }

    .track-nav-menu li a::after {
        display: none;
    }
    
    .nav-toggle-checkbox:checked ~ .track-nav-menu {
        max-height: 250px;
    }
    
    .nav-toggle-checkbox:checked ~ .nav-toggle-label .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .nav-toggle-checkbox:checked ~ .nav-toggle-label .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle-checkbox:checked ~ .nav-toggle-label .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .upload-modal-container {
        width: calc(100vw - 32px);
        left: 16px;
        right: 16px;
        bottom: 90px;
    }
}

/* ==========================================================================
   ADMIN PORTAL MODAL & WORKFLOW STYLES (Ultra-Luxury Vibe)
   ========================================================================== */

/* Fullscreen Glassmorphic Modal Overlay */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(6, 7, 8, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

/* Glass Modal Box Content */
.custom-modal-content {
    background-color: rgba(18, 19, 23, 0.95);
    border: 1.5px solid rgba(50, 230, 5, 0.2);
    border-radius: 24px;
    width: 100%;
    max-width: 370px;
    padding: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(50, 230, 5, 0.1);
    margin: 16px;
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-modal-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 24px 24px 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.custom-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.custom-modal-header p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    margin-top: 3px;
}

.custom-modal-body {
    padding: 24px;
}

/* Modal Action Cancel Button */
.btn-modal-cancel {
    width: 100%;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    padding: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 10px;
}

.btn-modal-cancel:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

/* --- Red Theme Confirmation Modal --- */
.confirm-modal-border {
    border-color: rgba(255, 69, 69, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 69, 69, 0.08);
}

.border-danger {
    border-bottom: 1px solid rgba(255, 69, 69, 0.08);
}

.border-danger h3 {
    color: #ff4545 !important;
}

.delete-warning-text {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
    margin-bottom: 24px;
}

.delete-warning-text strong {
    color: #ffffff;
    word-break: break-all;
}

.confirm-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Glowing Neon Red Buttons */
.btn-confirm-delete {
    width: 100%;
    background-color: transparent;
    border: 1.5px solid #ff4545;
    color: #ff4545;
    border-radius: 12px;
    padding: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-confirm-delete:hover {
    background-color: #ff4545;
    color: #000000;
    box-shadow: 0 0 18px rgba(255, 69, 69, 0.45);
}

.btn-confirm-cancel {
    width: 100%;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    padding: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-confirm-cancel:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

/* --- Inline Red Trash Button styling --- */
.btn-delete-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #ff4545;
    border: 1.5px solid #ff4545;
    border-radius: 30px;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 8px;
    box-shadow: 0 0 5px rgba(255, 69, 69, 0.1);
}

.btn-delete-action:hover {
    background-color: #ff4545;
    color: #000000;
    box-shadow: 0 0 15px rgba(255, 69, 69, 0.45);
    transform: translateY(-1px);
}

.btn-delete-action svg {
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.btn-delete-action:hover svg {
    transform: scale(1.05);
}

/* --- Inline Light Blue Pencil Edit Button styling --- */
.btn-edit-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #38bdf8;
    border: 1.5px solid #38bdf8;
    border-radius: 30px;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 8px;
    box-shadow: 0 0 5px rgba(56, 189, 248, 0.1);
}

.btn-edit-action:hover {
    background-color: #38bdf8;
    color: #000000;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.45);
    transform: translateY(-1px);
}

.btn-edit-action svg {
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.btn-edit-action:hover svg {
    transform: scale(1.05);
}