/* SecuresVault - Main Styles */
/* Direct Sales Store: Watches (new + pre-owned), Reconditioned Smartphones (graded A/B/C), Accessories */
/* Updated: April 2026 - Pivot from marketplace/escrow model to own-inventory direct sales (Stripe + guarantees + trade-in) */

:root {
    --gold: #D4AF77;
    --black: #000000;
    --surface: #111111;
    --white: #FFFFFF;
    --gray-300: #CCCCCC;
    --gray-400: #999999;
    --gray-900: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--black);
    color: var(--white);
    min-height: 100vh;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Colors */
.text-gold {
    color: var(--gold);
}

.bg-surface {
    background-color: var(--surface);
}

/* Vault Icon Animation */
.vault-pulse {
    animation: vaultPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--gold));
}

@keyframes vaultPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px var(--gold));
        opacity: 1;
    }
    50% {
        filter: drop-shadow(0 0 16px var(--gold));
        opacity: 0.9;
    }
}

/* Navigation */
.nav-link {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--gold);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #b8935f 100%);
    color: var(--black);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 119, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 119, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--black);
}

/* Form Inputs */
.input-field {
    background: var(--surface);
    border: 1px solid var(--gray-900);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 119, 0.1);
}

.input-field::placeholder {
    color: var(--gray-400);
}

/* Category Pills */
.category-pill {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--gold);
    border-radius: 9999px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-pill:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
}

/* Listing Cards (used on shop.html – formerly browse.html) */
.listing-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-900);
}

.listing-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 12px 24px rgba(212, 175, 119, 0.2);
}

.listing-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.listing-card-content {
    padding: 1rem;
}

.listing-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.listing-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Skeleton Loaders */
.listing-skeleton {
    background: var(--surface);
    border-radius: 12px;
    height: 350px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 1rem;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(212, 175, 119, 0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* Footer */
.footer-link {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--gold);
}

/* Gradient Background */
.bg-gradient-radial {
    background: radial-gradient(circle at center, var(--gold), transparent);
}

/* Utilities */
.glass {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 119, 0.2);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-pro {
    background: linear-gradient(135deg, var(--gold) 0%, #b8935f 100%);
    color: var(--black);
}

.badge-guarantee {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error/Success Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
}

/* Wishlist Heart */
.wishlist-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-btn:hover,
.wishlist-btn.active {
    color: #ef4444;
    background: rgba(0, 0, 0, 0.95);
}

/* Image Carousel */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

/* Filters */
.filter-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--gray-900);
    border-radius: 9999px;
    color: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip:hover,
.filter-chip.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 119, 0.1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

/* Page Content Styles */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h3 {
    color: var(--white);
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-content p {
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.page-content ul {
    color: var(--gray-300);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.page-content a {
    color: var(--gold);
    text-decoration: underline;
}

/* FAQ Accordion */
.faq-item {
    border: 1px solid var(--gray-900);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    background: var(--surface);
    color: var(--white);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(212, 175, 119, 0.1);
}

.faq-question .arrow {
    color: var(--gold);
    transition: transform 0.3s;
    font-size: 1.25rem;
}

.faq-item.open .faq-question .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.25rem 1rem;
    background: var(--surface);
    color: var(--gray-300);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Trade-in Page (repurposed from old sell.html) */
.sell-form-group {
    margin-bottom: 1.5rem;
}

.sell-form-group label {
    display: block;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sell-form-group select {
    background: var(--surface);
    border: 1px solid var(--gray-900);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    width: 100%;
    transition: border-color 0.3s;
}

.sell-form-group select:focus {
    border-color: var(--gold);
    outline: none;
}

.sell-form-group textarea {
    background: var(--surface);
    border: 1px solid var(--gray-900);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    width: 100%;
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.3s;
}

.sell-form-group textarea:focus {
    border-color: var(--gold);
    outline: none;
}

/* Image Upload Zone (still used for trade-in submissions) */
.upload-zone {
    border: 2px dashed var(--gray-900);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-zone:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 119, 0.05);
}

.upload-zone.dragover {
    border-color: var(--gold);
    background: rgba(212, 175, 119, 0.1);
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.upload-preview img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--gray-900);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Trust Badges Row */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-300);
    font-size: 0.875rem;
}

.trust-badge svg {
    width: 48px;
    height: 48px;
    color: var(--gold);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* =============================================
   NEW / ENHANCED STYLES FOR PROJECT INSTRUCTIONS
   ============================================= */

/* Main Header (sticky, consistent across ALL pages) */
.main-header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 119, 0.2);
    position: sticky;
    top: 0;
    z-index: 10000;
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Split Logo: Secure [Vault Icon] Vault - perfectly centered on all devices */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    justify-content: center;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-secure {
    color: var(--white);
}

.logo-vault {
    color: var(--gold);
}

/* Top-right navigation (Browse, Sell, Currencies – currencies visible only on Shop and product-detail pages) */
.top-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav-link {
    color: var(--gray-300);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

/* Floating Trade-in Button (now leads to trade-in.html – "Sell your watches & phones to us", bottom-right, visible on EVERY page) */
.floating-sell-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--gold) 0%, #c9a46a 100%);
    color: var(--black);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(212, 175, 119, 0.45);
    z-index: 99999;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-sell-btn:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 20px 40px rgba(212, 175, 119, 0.6);
}

.floating-sell-btn span {
    font-size: 1.35rem;
    margin-right: 4px;
}

/* Home Page Announcement Banner (only on home page - Paris Opening Day) */
.announcement-bar {
    background: linear-gradient(90deg, var(--gold), #f5d8a0);
    color: #111111;
    padding: 14px 0;
    text-align: center;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(212, 175, 119, 0.3);
}

/* Hero Banner (luxury direct-store feel for watches & smartphones) */
.hero-section {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.85));
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--gray-300);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Mobile responsiveness (ensures logo/menu/title stay perfectly centered) */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.25rem;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .top-nav {
        gap: 1rem;
    }
    
    .floating-sell-btn {
        bottom: 25px;
        right: 25px;
        width: 58px;
        height: 58px;
        font-size: 1.05rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-section {
        min-height: 480px;
    }
}

/* Extra utility for non-home pages (Home button visibility) */
.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 600;
}