/* assets/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outlet:wght@300;400;600&family=Inter:wght@300;400;500;700&display=swap');

:root {
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #ec4899;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 40%);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.glass-btn:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-2px);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s;
}

header.scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Product Page */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 100px;
}

.product-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
}

.configurator-section {
    margin-bottom: 25px;
}

.option-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.option-card {
    padding: 10px 15px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.02);
}

.option-card:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.option-card.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* Hover Preview Tooltip in JS */
.preview-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 100;
    width: 150px;
    height: 150px;
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    display: none;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Forms */
input,
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    box-sizing: border-box;
    /* Fix width issues */
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Admin */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending_valuation {
    background: #f59e0b;
    color: #000;
}

.status-valued {
    background: #3b82f6;
    color: white;
}

.status-completed {
    background: #10b981;
    color: white;
}

footer {
    margin-top: 50px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}
/* Mobile Responsiveness */

/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s;
}

/* Transform hamburger to X */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    /* Header & Navigation */
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    /* Reset margins for mobile links */
    .nav-links a {
        margin-left: 0;
        font-size: 1.2rem;
    }

    /* Hero Section */
    section h1 {
        font-size: 2.2rem !important; /* Override inline styles if necessary, but better to move inline to class */
    }

    section p {
        font-size: 1rem !important;
        padding: 0 15px;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .glass-panel {
        padding: 15px !important;
    }

    /* Product Page */
    .product-image-container {
        min-height: 250px;
    }
    
    /* Order/Table Views */
    .admin-table {
        display: block;
        overflow-x: auto;
    }
}
/* Product Detail Grid */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}