/* Lions Club Custom Tailwind Extensions */
/* Colors */
.bg-lions-blue {
    background-color: #002d73;
}

.bg-lions-darkblue {
    background-color: #002244;
}

.bg-lions-gold {
    background-color: #F5B800;
}

.bg-lions-accent {
    background-color: #D4AF37;
}

.bg-lions-lightgold {
    background-color: #FFF8E7;
}

.bg-lions-slate {
    background-color: #1e293b;
}

.text-lions-blue {
    color: #002d73;
}

.text-lions-darkblue {
    color: #002244;
}

.text-lions-gold {
    color: #F5B800;
}

.text-lions-accent {
    color: #D4AF37;
}

.text-lions-lightgold {
    color: #FFF8E7;
}

.text-lions-slate {
    color: #1e293b;
}

.border-lions-blue {
    border-color: #002d73;
}

.border-lions-darkblue {
    border-color: #002244;
}

.border-lions-gold {
    border-color: #F5B800;
}

.from-lions-darkblue {
    --tw-gradient-from: #002244;
}

.via-lions-blue\/90 {
    --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 51, 102, 0.9), var(--tw-gradient-to);
}

.hover\:bg-lions-darkblue:hover {
    background-color: #002244;
}

.hover\:bg-lions-blue:hover {
    background-color: #002d73;
}

/* Font families */
.font-serif {
    font-family: "Libre Baskerville", Georgia, serif !important;
}

.font-chinese {
    font-family: "Noto Serif TC", serif;
}

/* Gold gradient text */
.gold-gradient-text {
    background: linear-gradient(135deg, #F5B800 0%, #E69D00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom leading */
.leading-tight-custom {
    line-height: 1.15;
}

/* Arbitrary leading values */
.leading-\[1\.1\] {
    line-height: 1.1;
}

.leading-\[1\.15\] {
    line-height: 1.15;
}

.leading-\[1\.2\] {
    line-height: 1.2;
}

.leading-\[1\.3\] {
    line-height: 1.3;
}

.leading-\[1\.5\] {
    line-height: 1.5;
}

.md\:leading-\[1\.5\] {
    line-height: 1.5;
}

/* Arbitrary min-height values (used on homepage hero) */
.min-h-\[70vh\] {
    min-height: 70vh;
}

.bg-box-gray {
    background-color: #f0f1f1;
}

.bg-background {
    background-color: #fefcf4;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #002d73;
    border-radius: 4px;
}

@media (min-width: 640px) {
    .sm\:min-h-\[80vh\] {
        min-height: 80vh;
    }
}

/* Arbitrary max-height values (used on lightbox) */
.max-h-\[75vh\] {
    max-height: 75vh;
}

/* Arbitrary z-index */
.z-\[1\] {
    z-index: 1;
}

/* =====================================================================
   Amber + Slate palettes (Tailwind v3 names, not in local v2 build)
   These are used across the frontend views. Values match Tailwind v3.
   ===================================================================== */

/* ---- AMBER backgrounds ---- */
.bg-amber-50 {
    background-color: #fffbeb;
}

.bg-amber-100 {
    background-color: #fef3c7;
}

.bg-amber-200 {
    background-color: #fde68a;
}

.bg-amber-300 {
    background-color: #fcd34d;
}

.bg-amber-400 {
    background-color: #fbbf24;
}

.bg-amber-500 {
    background-color: #f59e0b;
}

.bg-amber-600 {
    background-color: #d97706;
}

.bg-amber-50\/30 {
    background-color: rgba(255, 251, 235, 0.30);
}

.bg-amber-50\/50 {
    background-color: rgba(255, 251, 235, 0.50);
}

/* ---- AMBER text ---- */
.text-amber-300 {
    color: #fcd34d;
}

.text-amber-300\/80 {
    color: rgba(252, 211, 77, 0.80);
}

.text-amber-400 {
    color: #fbbf24;
}

.text-amber-500 {
    color: #f59e0b;
}

.text-amber-600 {
    color: #d97706;
}

.text-amber-900 {
    color: #78350f;
}

/* ---- AMBER borders ---- */
.border-amber-200 {
    border-color: #fde68a;
}

.border-amber-400 {
    border-color: #fbbf24;
}

.border-amber-500 {
    border-color: #f59e0b;
}

.border-amber-400\/50 {
    border-color: rgba(251, 191, 36, 0.50);
}

.border-amber-500\/20 {
    border-color: rgba(245, 158, 11, 0.20);
}

/* ---- AMBER ring ---- */
.ring-amber-400 {
    --tw-ring-color: #fbbf24;
    box-shadow: 0 0 0 3px #fbbf24;
}

/* ---- AMBER hover ---- */
.hover\:bg-amber-300:hover {
    background-color: #fcd34d;
}

.hover\:bg-amber-400:hover {
    background-color: #fbbf24;
}

.hover\:bg-amber-400\/80:hover {
    background-color: rgba(251, 191, 36, 0.80);
}

.hover\:bg-amber-50\/50:hover {
    background-color: rgba(255, 251, 235, 0.50);
}

.hover\:border-amber-200:hover {
    border-color: #fde68a;
}

.hover\:border-amber-400\/50:hover {
    border-color: rgba(251, 191, 36, 0.50);
}

.hover\:text-amber-300:hover {
    color: #fcd34d;
}

/* ---- SLATE backgrounds ---- */
.bg-slate-50 {
    background-color: #f8fafc;
}

.bg-slate-100 {
    background-color: #f1f5f9;
}

.bg-slate-200 {
    background-color: #e2e8f0;
}

.bg-slate-800 {
    background-color: #1e293b;
}

.bg-slate-900 {
    background-color: #0f172a;
}

/* ---- SLATE text ---- */
.text-slate-200 {
    color: #e2e8f0;
}

.text-slate-300 {
    color: #cbd5e1;
}

.text-slate-400 {
    color: #94a3b8;
}

.text-slate-500 {
    color: #64748b;
}

.text-slate-600 {
    color: #475569;
}

.text-slate-700 {
    color: #334155;
}

.text-slate-800 {
    color: #1e293b;
}

.text-slate-900 {
    color: #0f172a;
}

/* ---- SLATE borders ---- */
.border-slate-100 {
    border-color: #f1f5f9;
}

.border-slate-200 {
    border-color: #e2e8f0;
}

.border-slate-300 {
    border-color: #cbd5e1;
}

.border-slate-700 {
    border-color: #334155;
}

.border-slate-800 {
    border-color: #1e293b;
}

/* ---- SLATE hover ---- */
.hover\:bg-slate-100:hover {
    background-color: #f1f5f9;
}

.hover\:bg-slate-200:hover {
    background-color: #e2e8f0;
}

.hover\:text-slate-700:hover {
    color: #334155;
}

.hover\:text-slate-900:hover {
    color: #0f172a;
}

/* ---- Border-side widths not in local v2 build ---- */
.border-y {
    border-top-width: 1px;
    border-bottom-width: 1px;
}

.border-x {
    border-left-width: 1px;
    border-right-width: 1px;
}

/* ---- Semantic "border" color token (v3/shadcn style) ---- */
/* Subtle neutral divider color (slate-200) */
.border-border {
    border-color: #e2e8f0;
}

/* ---- Semantic "primary" color token (maps to Lions navy) ---- */
.text-primary {
    color: #002d73;
}

.bg-primary {
    background-color: #002d73;
}

.border-primary {
    border-color: #002d73;
}

/* ---- Arbitrary aspect ratios (not in local v2 build) ---- */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

.aspect-\[16\/9\] {
    aspect-ratio: 16 / 9;
}

.aspect-\[3\/2\] {
    aspect-ratio: 3 / 2;
}

.aspect-\[1\/1\] {
    aspect-ratio: 1 / 1;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

/* ---- group-hover scale (not enabled in local v2 build) ---- */
/* Applies transform directly so it works without the .transform helper class */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.10);
}

/* Ensure transition-transform animates the transform property smoothly */
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-500 {
    transition-duration: 500ms;
}

/* ---- Aspect ratio for event detail hero ---- */
.aspect-\[3\/1\] {
    aspect-ratio: 3 / 1;
}

@media (min-width: 768px) {
    .md\:aspect-\[3\/1\] {
        aspect-ratio: 3 / 1;
    }

    .md\:aspect-\[16\/9\] {
        aspect-ratio: 16 / 9;
    }
}

/* ---- Gradient color-stop opacity variants (v3 slash syntax, missing in v2) ---- */
/* from-black with opacity */
.from-black\/80 {
    --tw-gradient-from: rgba(0, 0, 0, 0.8);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.from-black\/70 {
    --tw-gradient-from: rgba(0, 0, 0, 0.7);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.from-black\/60 {
    --tw-gradient-from: rgba(0, 0, 0, 0.6);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

/* via-black with opacity (mid stop) */
.via-black\/40 {
    --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 0, 0, 0.4), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.via-black\/25 {
    --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 0, 0, 0.25), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.via-black\/20 {
    --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 0, 0, 0.2), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

/* ---- Lions-blue gradient color-stop opacity variants ---- */
.from-lions-blue\/90 {
    --tw-gradient-from: rgba(0, 51, 102, 0.9);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 51, 102, 0));
}

.from-lions-blue\/80 {
    --tw-gradient-from: rgba(0, 51, 102, 0.8);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 51, 102, 0));
}

.via-lions-blue\/30 {
    --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 51, 102, 0.3), var(--tw-gradient-to, rgba(0, 51, 102, 0));
}

.via-lions-blue\/25 {
    --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 51, 102, 0.25), var(--tw-gradient-to, rgba(0, 51, 102, 0));
}

/* ---- Black background opacity variants (v3 slash syntax, missing in v2) ---- */
.bg-black\/90 {
    background-color: rgba(0, 0, 0, 0.9);
}

.bg-black\/80 {
    background-color: rgba(0, 0, 0, 0.8);
}

.bg-black\/75 {
    background-color: rgba(0, 0, 0, 0.75);
}

.bg-black\/70 {
    background-color: rgba(0, 0, 0, 0.7);
}

.bg-black\/60 {
    background-color: rgba(0, 0, 0, 0.6);
}

.bg-black\/50 {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Ensure backdrop blur applies (fallback if v2 build lacks the filter value) */
.backdrop-blur-sm {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}