/* =========================================================================
   MARIFET MUCEVHERAT - PREMIUM JEWELRY THEME CSS
   ========================================================================= */

/* CSS Variables for Premium Aesthetic */
:root {
    /* Colors */
    --color-bg-dark: #0f1115;
    /* Deep midnight blue / charcoal */
    --color-bg-panel: #16191f;
    /* Slightly lighter for cards */
    --color-gold: #d4af37;
    /* Classic gold */
    --color-gold-light: #f3e5ab;
    /* Champagne gold */
    --color-gold-dark: #aa8529;
    --color-text-main: #f8f6f0;
    /* Off-white */
    --color-text-muted: #a6aab5;
    --color-border: rgba(212, 175, 55, 0.2);

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    /* Spacing & Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Transition */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles & Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;

    /* Subtle noise/grain texture overlaid */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--color-gold-light);
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-gold-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.text-muted {
    color: var(--color-text-muted);
}

/* Typography Utility */
.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.page-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 40px;
    position: relative;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.05), transparent);
}

/* =========================================================================
   Buttons & Forms
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 1rem;
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    border-radius: 0;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
}

.btn-primary:hover {
    background-color: var(--color-gold-light);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-outline:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--color-gold-light);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-gold-light);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--color-gold);
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 1px var(--color-gold);
}

/* =========================================================================
   Navbar & Footer
   ========================================================================= */
.navbar {
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.brand-logo:hover {
    color: inherit;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-gold);
    letter-spacing: 4px;
}

.logo-subtext {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-main);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--color-gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-gold);
    transition: 0.3s;
}

.footer {
    border-top: 1px solid var(--color-border);
    padding: 60px 0 20px;
    margin-top: 60px;
    background-color: rgba(0, 0, 0, 0.2);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 1.8rem;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--color-text-muted);
}

.footer-heading {
    color: var(--color-gold);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* =========================================================================
   Home Page
   ========================================================================= */
.hero {
    padding: 100px 0;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-title span {
    font-size: 1.2rem;
    font-family: var(--font-sans);
    color: var(--color-text-main);
    letter-spacing: 4px;
    opacity: 0.8;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    display: inline-block;
}

.section-line {
    height: 1px;
    width: 60px;
    background-color: var(--color-gold);
    margin: 15px auto 0;
}

/* =========================================================================
   Grid & Cards
   ========================================================================= */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.card {
    background-color: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Card Hover Effect: Subtle gold shine */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.05), transparent);
    transform: skewX(-20deg);
    transition: var(--transition-smooth);
}

.card:hover::after {
    left: 150%;
    transition: 0.7s ease-in-out;
}

.card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.badge-gold {
    background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
    color: #000;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.card-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.detail-label {
    color: var(--color-text-muted);
}

.detail-value {
    color: var(--color-gold-light);
    text-align: right;
}

.card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

.link-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* =========================================================================
   List & Verify Pages
   ========================================================================= */
.list-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.filters-sidebar {
    background-color: var(--color-bg-panel);
    padding: 30px;
    border: 1px solid var(--color-border);
    position: sticky;
    top: 100px;
}

.results-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.verify-container {
    max-width: 600px;
    margin: 0 auto;
}

.verify-box {
    padding: 40px;
    text-align: left;
}

.verify-error {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
}

.verify-error h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-family: var(--font-sans);
}

/* =========================================================================
   Certificate Detail Page
   ========================================================================= */
.detail-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

/* Premium Certificate Frame */
.certificate-doc {
    background-color: var(--color-bg-panel);
    border: 2px solid var(--color-gold);
    padding: 60px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin-bottom: 60px;
}

/* Subtle corner ornaments */
.certificate-doc::before,
.certificate-doc::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--color-gold);
    pointer-events: none;
}

.certificate-doc::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.certificate-doc::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.print-header,
.print-footer,
.print-only {
    display: none;
}

.cert-hero {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
}

/* Product Image Styles */
.product-image-container {
    max-width: 400px;
    margin: 0 auto 30px auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    background-color: var(--color-bg-dark);
}

.cert-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--color-gold);
}

.cert-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    letter-spacing: 5px;
    text-transform: uppercase;
}

.cert-body {}

.cert-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.cert-section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--color-gold-light);
}

.cert-list {
    list-style: none;
}

.cert-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.cert-list strong {
    color: var(--color-text-muted);
    font-weight: normal;
}

/* Timeline / Care */
.care-timeline {
    border-left: 2px solid rgba(212, 175, 55, 0.3);
    padding-left: 20px;
    margin-bottom: 40px;
}

.care-item {
    position: relative;
    padding-bottom: 20px;
}

.care-item:last-child {
    padding-bottom: 0;
}

.care-dot {
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-gold);
}

.care-content {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Accordion */
.accordion-group {
    margin-top: 40px;
    border-top: 1px solid var(--color-border);
}

.accordion {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 1.2rem;
    font-family: var(--font-serif);
    color: var(--color-gold-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header .icon {
    font-size: 1.5rem;
    font-family: var(--font-sans);
    transition: transform 0.3s;
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding-bottom: 20px;
    color: var(--color-text-muted);
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 992px) {
    .list-container {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(15, 17, 21, 0.98);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--color-border);
        text-align: center;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .cert-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .certificate-doc {
        padding: 30px 20px;
    }

    .cert-title {
        font-size: 2rem;
    }
}

/* =========================================================================
   Print Stylesheet
   ========================================================================= */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .no-print {
        display: none !important;
    }

    .certificate-doc {
        border: 2px solid #ccc;
        /* Gold printer ink can be tricky, fallback to grey/black */
        box-shadow: none;
        padding: 40px;
        margin: 0;
        width: 100%;
    }

    .certificate-doc::before,
    .certificate-doc::after {
        border-color: #000;
    }

    .print-header {
        display: block;
        text-align: center;
        margin-bottom: 40px;
        padding-bottom: 20px;
        border-bottom: 2px solid #000;
    }

    .print-header h2 {
        font-family: 'Playfair Display', serif;
        font-size: 24pt;
        color: #000;
        margin-bottom: 5px;
    }

    .print-header h2 span {
        font-family: 'Inter', sans-serif;
        font-size: 10pt;
        letter-spacing: 2px;
    }

    .print-header p {
        text-transform: uppercase;
        letter-spacing: 3px;
        font-size: 10pt;
    }

    .cert-hero {
        display: none;
    }

    /* Hide web hero, use print header */

    .cert-title {
        color: #000;
        font-size: 20pt;
        text-align: center;
        margin-bottom: 20px;
        display: block;
    }

    .cert-section-title {
        color: #000;
        border-bottom: 1px solid #ccc;
        font-size: 14pt;
    }

    .cert-list li {
        border-bottom: 1px solid #eee;
    }

    .cert-list strong {
        color: #333;
    }

    .badge-gold {
        background: none;
        color: #000;
        border: 1px solid #000;
        padding: 2px 5px;
    }

    .print-only {
        display: block;
        margin-top: 30px;
    }

    .print-footer {
        margin-top: 50px;
        padding-top: 20px;
        border-top: 1px dashed #ccc;
        text-align: center;
        font-size: 9pt;
        color: #555;
    }

    .print-footer .verify-text {
        font-weight: bold;
        margin-top: 10px;
    }

    .care-timeline {
        border-left-color: #ccc;
    }

    .care-dot {
        background-color: #000;
    }

    .care-content {
        background: none;
        border: 1px solid #eee;
    }

    /* Ensure page breaks inside cards are avoided */
    .certificate-doc {
        page-break-inside: avoid;
    }
}