/* ==========================================================================
   Noir Furniture - Design System & Stylesheet
   ========================================================================== */

:root {
    --bg-dark: #0a0a0c;
    --bg-card: rgba(22, 22, 26, 0.75);
    --border-card: rgba(255, 255, 255, 0.08);
    --gold-primary: #d4af37;
    --gold-hover: #f3cf65;
    --gold-glow: rgba(212, 175, 55, 0.25);
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-dark: #18181b;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Ambient Lighting */
.bg-gradient-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(20, 20, 25, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* Header Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 4rem;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-card);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #d4af37, #8a7322);
    color: #0a0a0c;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px var(--gold-glow);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-primary);
    line-height: 1;
}

.brand-sub {
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--gold-primary);
    margin-top: 2px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem 2rem;
    width: 100%;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold-primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Catalog Glass Card */
.catalog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-card);
    background: rgba(10, 10, 12, 0.4);
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.meta-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-badge {
    color: #34d399;
}

.viewer-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Image Viewport */
.image-wrapper {
    position: relative;
    width: 100%;
    max-height: 800px;
    overflow: auto;
    background: #050507;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
}

.newsletter-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: transform var(--transition-smooth);
    transform-origin: center center;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 10;
}

.image-wrapper:hover .hover-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-weight: 500;
    background: rgba(22, 22, 26, 0.85);
    padding: 1.25rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--border-card);
    transform: translateY(10px);
    transition: transform var(--transition-fast);
}

.image-wrapper:hover .overlay-content {
    transform: translateY(0);
}

.icon-large {
    font-size: 2rem;
    color: var(--gold-primary);
}

/* Loading Spinner */
.loading-spinner {
    position: absolute;
    z-index: 5;
    display: none;
}

.spinner-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top: 3px solid var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Catalog Footer */
.catalog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    border-top: 1px solid var(--border-card);
    background: rgba(10, 10, 12, 0.4);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-left h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.footer-left p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: #ffffff;
    color: #0a0a0c;
}

.btn-primary:hover {
    background: #e4e4e7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary), #a6841e);
    color: #0a0a0c;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-hover), #b89425);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--gold-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-card);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-large {
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 8, 0.94);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: opacity;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    border-bottom: 1px solid var(--border-card);
    background: rgba(10, 10, 12, 0.8);
}

.lightbox-title {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-card);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast);
    z-index: 1010;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-content {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox-content img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(22, 22, 26, 0.95);
    border: 1px solid var(--gold-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-glow);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2000;
    transform: translateY(120%);
    transition: transform var(--transition-smooth);
}

.toast-container.show {
    transform: translateY(0);
}

.toast-container i {
    font-size: 1.5rem;
    color: var(--gold-primary);
}

.toast-text {
    display: flex;
    flex-direction: column;
}

.toast-text strong {
    font-size: 0.95rem;
    color: #fff;
}

.toast-text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-card);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .catalog-header, .catalog-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .viewer-actions {
        justify-content: space-between;
    }
}
