@tailwind base;
@tailwind components;
@tailwind utilities;

/* Tailwind custom base styles */
@layer base {
body {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

main {
    padding-top: 68px; /* Account for fixed header height on mobile */
}

@media (min-width: 768px) {
    main {
        padding-top: 86px; /* Slightly larger header on tablet/desktop */
    }
}
}

/* Only keep non-Tailwind-replaceable styles */
@layer components {
    /* GTranslate Flag Styling - can't easily do with Tailwind */
    .gtranslate_wrapper img {
        border-radius: 20% !important;
        width: 35px;
        height: 35px;
        object-fit: cover;
        border: 2px solid white;
        opacity: 0.8;
        transform: scale(0.95);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .gtranslate_wrapper img:hover {
        opacity: 1;
        transform: scale(1.15) !important;
        box-shadow: 0 8px 15px rgba(0,0,0,0.2);
        cursor: pointer;
        z-index: 10;
    }

    html[lang^="en"] .gtranslate_wrapper a[title="English"] img,
    html[lang^="nl"] .gtranslate_wrapper a[title="Dutch"] img {
        opacity: 1;
        transform: scale(1.1);
        border-color: #333;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
}

/* Global button styling to align with homepage buttons */
.btn-primary,
a.bg-brand-primary,
button.bg-brand-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: #490c16;
    border: 2px solid #490c16;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(73, 12, 22, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    transform: none !important;
}
.btn-primary:hover,
a.bg-brand-primary:hover,
button.bg-brand-primary:hover {
    background: #fff;
    color: #490c16;
    box-shadow: 0 10px 24px rgba(73, 12, 22, 0.2);
    transform: none !important;
}

.no-hover,
.no-hover:hover {
    background-color: #490c16 !important;
    color: #fff !important;
    border-color: #490c16 !important;
    box-shadow: 0 6px 14px rgba(73, 12, 22, 0.15) !important;
}

.btn-secondary,
a.bg-brand-cream.text-brand-primary,
button.bg-brand-cream.text-brand-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #490c16;
    background-color: #FCFAF2;
    border: 2px solid rgba(73, 12, 22, 0.3);
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(73, 12, 22, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    transform: none !important;
}
.btn-secondary:hover,
a.bg-brand-cream.text-brand-primary:hover,
button.bg-brand-cream.text-brand-primary:hover {
    background: #fff;
    border-color: #490c16;
    box-shadow: 0 10px 24px rgba(73, 12, 22, 0.12);
    transform: none !important;
}

/* Hero button styles - Primary (Red) */
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background-color: #490c16;
    border: 2px solid #490c16;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(73, 12, 22, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-btn-primary:hover {
    background: linear-gradient(135deg, #6b1523, #8b1e2f);
    border-color: #8b1e2f;
    box-shadow: 0 8px 18px rgba(73, 12, 22, 0.35);
}

/* Hero button styles - Secondary (Cream) */
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: #490c16;
    background-color: #f5ebe0;
    border: 2px solid #e8d5c4;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-btn-secondary:hover {
    background-color: #ede0d1;
    border-color: #d4bfa8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Reveal cards (image + heading only until hover/click) */
.reveal-card .reveal-body {
    display: none;
}

.reveal-card:hover .reveal-body,
.reveal-card:focus-within .reveal-body,
.reveal-card.reveal-open .reveal-body {
    display: block;
}
