/* =========================================================
   style.css - Cleaned and documented
   - Theme variables (light/dark)
   - Layout, navbar, cards, collections slider, footer
   - Toast styles, spinner
   ========================================================= */

/* =========================
   Root variables
   ========================= */
:root {
    --gold: #d4af37;
    --bg-dark: #1a1a1a;
    --panel-dark: #2a2a2a;
    --text-light: #f8f9fa;
    --muted-dark: #cfcfcf;
}


/* Light theme - richer champagne tones */
html.light {
    --bg: #f5ebd9;
    /* deeper ivory-beige background */
    --panel: #fff8ec;
    /* warm cream panels */
    --text: #2a2a2a;
    /* near-black text */
    --muted: #5a4a36;
    /* richer brown-gray */
    --nav-bg: #fdf3dd;
    /* soft champagne nav */
}


/* Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background-color .25s, color .25s;
}

/* containers */
.container {
    max-width: 1100px;
    padding: 0 16px;
    margin: 0 auto;
}

/* Brand header */
.brand-header {
    background: var(--bg);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.brand-title {
    margin: 0;
    font-size: 2.1rem;
    letter-spacing: 1px;
    color: var(--text);
    text-transform: uppercase;
}

.brand-subtitle {
    color: var(--muted);
    margin-top: 0.25rem;
}

/* Navbar */
.navbar {
    background: var(--nav-bg);
    padding: .5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.navbar .nav-link {
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.navbar .nav-link:hover {
    color: var(--gold);
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, #d4af37, #f7d774);
    color: #111;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.25);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #c19b2e, #e6c14f);
}


/* Dashboard card */
.dashboard-card {
    background: var(--panel);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    padding: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    transition: transform .2s, box-shadow .2s;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Action card */
.action-card {
    cursor: pointer;
    padding: 24px;
    border-radius: 12px;
}

/* Section titles */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
}

/* Collections slider */
.collections-slider {
    overflow: hidden;
    width: 100%;
}


.collection-card {
    background: var(--panel);
    border: 1px solid rgba(212, 175, 55, 0.15);
    /* faint gold */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}


.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity .4s;
}

.collection-content {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all .4s;
    z-index: 2
}

.collection-content h3 {
    margin: 0;
    color: #fff;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Hover for active slide */
.collection-card:hover img {
    transform: scale(1.05);
}

.collection-card:hover .collection-overlay {
    opacity: 1;
}

.collection-card:hover .collection-content {
    transform: translateY(0);
    opacity: 1;
}

/* Swiper controls */
.swiper-button-next,
.swiper-button-prev {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--gold);
    color: #fff;
}

.swiper-pagination-bullet {
    background: var(--text);
    opacity: .3;
}

.swiper-pagination-bullet-active {
    background: var(--gold);
    opacity: 1;
}

/* Footer */
.footer {
    background: var(--panel);
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    color: var(--text);
    padding-top: 2rem;
}

.footer-title {
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text);
}

.footer-text {
    color: var(--muted);
    line-height: 1.6;
}

/* Toasts (custom) */
.custom-toast {
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    max-width: 320px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.bg-danger {
    background: #dc3545;
}

.bg-success {
    background: #198754;
}

.bg-secondary {
    background: #6c757d;
}

/* Spinner overlay */
.overlay-spinner {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1400;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .brand-title {
        font-size: 1.6rem;
    }

    .collection-content h3 {
        font-size: 1.2rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Featured Collections */
.collection-swiper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
    /* unified padding */
    overflow: visible;
    /* important so side slides don’t get clipped */
}

.collection-swiper .swiper-slide {
    width: 220px;
    /* controls slide size */
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.collection-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #fff;
    transition: transform 0.3s ease;
}

.collection-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collection-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: #fff;
    text-align: center;
}

.collection-caption h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
}

.swiper-button-next,
.swiper-button-prev {
    color: #111;
    font-weight: bold;
}


/* Base header styling */
.brand-header {
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
    border-bottom: 2px solid transparent;
}

body.light-theme .brand-header {
    background: linear-gradient(135deg, #fdf6e3, #f9ecd2, #f7e6b5);
    color: #4a3c1a;
    border-color: #d4af37;
}


body.light-theme .brand-header .brand-subtitle {
    color: #fdf5d7;
    /* softer champagne for subtitle */
}


.gradient-gold {
    background: linear-gradient(135deg, #b8860b, #d4af37, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

}


.text-gold {
    background: linear-gradient(135deg, #b8860b, #d4af37, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Gradient gold text with shimmer */
.gradient-gold {
    background: linear-gradient(45deg, #d4af37, #f7e07e, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.brand-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 1.2rem;
    letter-spacing: 1px;
    font-style: italic;
    color: inherit;
    /* auto adjusts with theme */
}

/* Subtle sparkle (light/dark aware) */
.brand-header::after {
    content: "✨";
    position: absolute;
    font-size: 1.5rem;
    top: 20px;
    right: 20px;
    opacity: 0.6;
    animation: sparkle 3s infinite alternate;
}

@keyframes sparkle {
    0% {
        opacity: 0.2;
        transform: scale(0.9) rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: scale(1.1) rotate(20deg);
    }
}

.brand-title {
    font-size: 2.5rem;
    /* default for desktop */
}

@media (max-width: 768px) {
    .brand-title {
        font-size: 2rem;
        /* tablets */
    }
}

@media (max-width: 576px) {
    .brand-title {
        font-size: 1.6rem;
        /* small smartphones */
    }
}

/* Force horizontal scrolling for tables on small screens */
/* Table styling for jewelry aesthetic */
.table-responsive table {
    background: #fff8ec;
    /* same warm cream as panels */
    border: 1px solid #e2cfa3;
    /* subtle gold-ish border */
    border-radius: 8px;
    overflow: hidden;
}

.table-responsive table th {
    background: #f5ebd9;
    /* slightly darker champagne header */
    color: #2a2a2a;
    font-weight: 600;
    text-transform: uppercase;
}

.table-responsive table td {
    background: #fffdf8;
    /* lighter cream for rows */
    color: #2a2a2a;
    padding: 12px;
}

/* Zebra striping for elegance */
.table-responsive table tr:nth-child(even) td {
    background: #fdf3dd;
    /* champagne stripe */
}

/* Hover effect */
.table-responsive table tr:hover td {
    background: #f5ebd9;
}

/* Hide text on small screens, keep only icons */
@media (max-width: 576px) {
    .btn .btn-text {
        display: none;
    }

    .btn i {
        margin: 0;
        /* remove extra spacing */
    }
}

.text-gold {
    color: #d4af37 !important;
}

.hover-gold:hover {
    background-color: #d4af37;
    color: #000000 !important;
    transition: all 0.3s ease;
}