/* X-GATE PREMIUM STYLESHEET 
    Theme: McLaren High-Performance (Midnight/Orange)
*/

:root { 
    --mclaren-deep: #E0610E;
    --mclaren-papaya: #FF9800; 
    --bg: #151936;      /* Midnight Blue-Black */
    --card-bg: #0d0d12; 
    --text-dim: #94a3b8;
    --border: rgba(255, 152, 0, 0.15);
}

body { 
    background-color: var(--bg); 
    color: white; 
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0; 
    overflow-x: hidden;
    /* Subtle background depth */
    background-image: radial-gradient(circle at top right, rgba(255, 152, 0, 0.03), transparent);
}

/* --- NAVIGATION (Centered & Modern) --- */
nav {
    position: fixed;
    top: 0; 
    width: 100%;
    display: flex;
    justify-content: center; 
    padding: 25px 0;
    z-index: 1000;
    background: rgba(21, 25, 54, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 50px; /* Wide spacing for a premium feel */
}

.nav-link {
    font-size: 1.2rem; /* Large font per your request */
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--mclaren-papaya);
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.4);
}

/* --- HERO SECTION (Samoyed Style) --- */
.hero-brand {
    padding: 160px 20px 60px;
    text-align: center;
}

.hero-logo-large {
    width: 320px; /* Large centerpiece logo */
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
}

.hero-title { 
    font-size: 3.5rem; 
    font-weight: 900; 
    margin: 0; 
    letter-spacing: -1px;
}

.orange-text { 
    color: var(--mclaren-papaya); 
    background: linear-gradient(to bottom, #FFB74D, #FF9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- GRID SYSTEM (Fixed 3-Column) --- */
.section-wrap {
    padding: 40px 8%;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-left: 5px solid var(--mclaren-papaya);
    padding-left: 15px;
}

.grid-3 { 
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* FORCED 3 COLUMNS */
    gap: 30px;
    width: 100%;
}

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

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

/* --- CAROUSEL --- */
.carousel-container { 
    width: 100%; 
    overflow: hidden; 
    padding: 60px 0; 
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel-track { 
    display: flex; 
    gap: 30px; 
    animation: scroll 50s linear infinite; 
    width: max-content; 
}

@keyframes scroll { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* --- CARDS --- */
.icon .material-symbols-outlined {
    font-size: 4rem; /* Makes the icon large */
    display: block;
    margin: 0 auto;
    color: var(--mclaren-papaya); /* Uses your brand orange */
}

/* Glassmorphism for the cards to fix the "raw" look */
.card {
    background: rgba(13, 13, 18, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--mclaren-papaya);
}

/* --- BUTTONS (McLaren Gradient) --- */
.btn-p { 
    background: linear-gradient(135deg, var(--mclaren-deep) 0%, var(--mclaren-papaya) 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(224, 97, 14, 0.3);
    transition: all 0.3s ease;
}

.btn-p:hover {
    box-shadow: 0 0 25px rgba(255, 152, 0, 0.5);
    filter: brightness(1.1);
}

.user-pill {
    background: rgba(255, 152, 0, 0.05);
    border: 2px solid var(--mclaren-papaya);
    color: var(--mclaren-papaya);
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-pill:hover {
    background: rgba(255, 152, 0, 0.15);
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.2);
}

/* --- DASHBOARD DRAWER --- */
#dashboard {
    display: none;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 380px;
    background: #0a0a0f;
    border-left: 1px solid var(--border);
    padding: 100px 40px;
    z-index: 2000;
    box-shadow: -20px 0 50px rgba(0,0,0,0.6);
}

.username-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    width: 100%;
    margin-bottom: 10px;
    outline: none;
}

.hero-subtitle {
    color: var(--text-dim);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto 40px;
    line-height: 1.6;
}

.feature-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-icon {
    width: 35px;
    height: 35px;
    border: 2px solid var(--mclaren-papaya);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: var(--mclaren-papaya);
    background: rgba(255, 152, 0, 0.1);
}

.step p {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.step-line {
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 25px; /* Aligns line with the icons */
}

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.modal-content {
    background: #0d0d12; border: 2px solid var(--mclaren-papaya);
    padding: 40px; border-radius: 12px; text-align: center; width: 380px;
    box-shadow: 0 0 40px rgba(255, 152, 0, 0.15);
}
.loader {
    border: 4px solid rgba(255, 152, 0, 0.1); border-top: 4px solid var(--mclaren-papaya);
    border-radius: 50%; width: 45px; height: 45px; animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

/* --- PREMIUM FORM STYLING --- */
#seller-view input, 
#seller-view textarea {
    width: 100%;
    box-sizing: border-box; /* Fixes the squished inputs */
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0 25px 0;
    font-family: inherit;
    font-size: 1rem;
}

#seller-view label {
    display: block;
    color: var(--mclaren-papaya);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- TAB NAVIGATION STYLING --- */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-container .btn-p {
    background: transparent;
    border: 1px solid #333;
    opacity: 0.6;
    box-shadow: none;
}

.tab-container .btn-p.active-tab {
    background: linear-gradient(135deg, var(--mclaren-deep) 0%, var(--mclaren-papaya) 100%);
    opacity: 1;
    border: none;
    box-shadow: 0 4px 15px rgba(224, 97, 14, 0.3);
}

/* --- DASHBOARD CARD FIX (Icons) --- */
.card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    height: 80px; /* Gives icons a consistent "seat" */
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Admin Specific Styles */
.admin-input {
    background: #0a0a0f !important;
    border: 1px solid #333 !important;
    color: white !important;
    padding: 10px !important;
    width: 100%;
}

#admin-tree div:hover {
    color: var(--mclaren-papaya);
}

#admin-logs div {
    padding: 8px;
    border-bottom: 1px solid #1a1a24;
}

#admin-logs .log-error {
    color: #ff4444;
}

#admin-logs .log-ticket {
    color: var(--mclaren-papaya);
}

/* High-Density Gallery Grid */
.grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 Columns */
    gap: 15px;
    width: 100%;
}

/* Update Card for smaller size */
.grid-6 .card {
    padding: 15px;
    border-radius: 10px;
}

.grid-6 .card h3 {
    font-size: 0.9rem; /* Smaller text for smaller cards */
    margin: 10px 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Keeps names from breaking layout */
}

.grid-6 .card .price-tag {
    font-size: 0.8rem;
    font-weight: 800;
}

/* Responsive adjustments */
@media (max-width: 1400px) { .grid-6 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .grid-6 { grid-template-columns: repeat(2, 1fr); } }

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#progress-bar-wrap { width: 100%; background: #1a1a24; height: 6px; border-radius: 3px; margin-top: 20px; overflow: hidden; }
#progress-bar { width: 0%; height: 100%; background: var(--mclaren-papaya); transition: width 0.4s ease; }