@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    :root {
        --gold: #C9A962;
        --gold-light: #D4BC83;
        --bg-main: #fafafa;
        --bg-surface: #ffffff;
        --bg-soft: #f3f4f6;
        --text-main: #111827;
        --text-muted: #6b7280;
        --border-light: #e5e7eb;
    }

    body {
        font-family: 'Manrope', sans-serif;
        background-color: var(--bg-main);
        color: var(--text-main);
        line-height: 1.6;
    }

    h1, h2, h3, h4, h5 {
        font-family: 'Playfair Display', serif;
        letter-spacing: -0.01em;
        font-weight: 500;
        color: var(--text-main);
    }
}

@layer components {
    .glass-header {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-light);
    }

    .form-input {
        background-color: var(--bg-surface);
        border: 1px solid var(--border-light);
        color: var(--text-main);
        border-radius: 4px;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

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

    .form-input:focus {
        outline: none;
        border-color: var(--gold);
        box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.15);
    }

    .btn-primary {
        background-color: var(--gold);
        color: #111827;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        transition: all 0.3s ease;
    }

    .btn-primary:hover {
        background-color: var(--gold-light);
        box-shadow: 0 8px 24px rgba(201, 169, 98, 0.25);
    }

    .btn-secondary {
        border: 1px solid var(--border-light);
        color: var(--text-main);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        background: transparent;
        transition: all 0.3s ease;
    }

    .btn-secondary:hover {
        background: var(--bg-surface);
        border-color: var(--text-main);
    }
}

/* Custom Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafa;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: #f8fafc;
}

*::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Image Animations */
img {
    image-rendering: auto;
}

.hero-img-float {
    animation: heroFloat 16s ease-in-out infinite alternate;
}

@keyframes heroFloat {
    0% { transform: scale(1.02) translateY(0px); }
    100% { transform: scale(1.06) translateY(-6px); }
}

/* Mega Menu overrides */
.mega-menu-content {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Product Cards */
.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.product-img-wrapper {
    background: #f8f8f6;
    border-radius: 4px;
    overflow: hidden;
}

/* Stats / Expert / Team Cards */
.stats-card,
.expert-card,
.team-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    transition: box-shadow 0.3s ease;
}

.stats-card:hover,
.expert-card:hover,
.team-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

/* Spec Table */
.spec-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
}

.spec-table tbody tr:hover {
    background: #fafaf8;
}

/* Form Feedback */
.form-feedback {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-feedback:empty {
    display: none;
}

/* Invalid field styling */
[aria-invalid="true"] {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15) !important;
}

/* Glow Overlay (used on enquiry-confirmed, led-donut) */
.glow-overlay {
    background: radial-gradient(ellipse at center, rgba(201, 169, 98, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Gold Glow (used on led-donut CTAs) */
.gold-glow {
    box-shadow: 0 4px 16px rgba(201, 169, 98, 0.15);
}

.gold-glow:hover {
    box-shadow: 0 6px 24px rgba(201, 169, 98, 0.25);
}

/* Sticky Action Bar (led-donut-light) */
.sticky-action-bar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

/* Catalog Sidebar Sticky */
.catalog-sidebar-inner {
    position: sticky;
    top: 100px;
}

/* Fade-In Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth hover transitions for interactive elements */
a, button {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
