/* ============================================================================
   Boldklubben B73 Slagelse — Nordic Club Visual Identity
   Clean, authentic Danish sports club aesthetic across all B73 portals.
   Replaces generic neon/dark-SaaS AI styling with calm surfaces, sharp edges,
   readable contrast, and classic B73 green (#14532d / #15803d).
   ============================================================================ */

:root {
    --b73-green-dark: #14532d;
    --b73-green: #15803d;
    --b73-green-hover: #166534;
    --b73-green-soft: #eaf4ee;
    --b73-green-border: #c6dfd0;
    --b73-bg: #f5f6f4;
    --b73-surface: #ffffff;
    --b73-surface-muted: #f0f3f0;
    --b73-border: #dce2de;
    --b73-border-strong: #c7d1cb;
    --b73-ink: #16211b;
    --b73-ink-body: #36453d;
    --b73-ink-muted: #5d6e64;
}

/* Global calm geometry & anti-slop refinements for all B73 portals */
.b73-nordic body,
body.b73-nordic {
    font-family: 'Inter', 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Tone down exaggerated AI corner radii & floating shadows */
.b73-nordic .rounded-3xl,
.b73-nordic .rounded-\[2\.5rem\] {
    border-radius: 0.75rem !important;
}
.b73-nordic .rounded-2xl {
    border-radius: 0.625rem !important;
}
.b73-nordic .shadow-2xl,
.b73-nordic .shadow-xl {
    box-shadow: 0 2px 10px rgba(16, 32, 22, 0.06) !important;
}
.b73-nordic .shadow-lg {
    box-shadow: 0 1px 4px rgba(16, 32, 22, 0.06) !important;
}

/* Disable gimmicky AI hover bounces & pulsing status dots */
.b73-nordic .animate-pulse {
    animation: none !important;
}
.b73-nordic .hover\:-translate-y-1:hover,
.b73-nordic .hover\:-translate-y-2:hover,
.b73-nordic .hover\:-translate-y-0\.5:hover {
    transform: none !important;
}
.b73-nordic .group:hover .group-hover\:scale-105,
.b73-nordic .group:hover .group-hover\:scale-110 {
    transform: none !important;
}

/* Authentic Nordic club header bar */
.b73-club-header {
    background-color: #14532d !important;
    border-bottom: 3px solid #15803d !important;
    color: #ffffff !important;
    backdrop-filter: none !important;
}
.b73-club-header a,
.b73-club-header button {
    transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

/* ============================================================================
   Light-surface conversion for legacy dark-slate portals
   (app.b73.dk, cup.b73.dk, feedback.b73.dk)
   Ensures EVERY subpage has crisp daylight contrast with zero invisible text.
   ============================================================================ */
html.b73-light-surface,
html.b73-light-surface body {
    background-color: var(--b73-bg) !important;
    color: var(--b73-ink) !important;
}

/* Page & card surfaces */
.b73-light-surface .bg-slate-950,
.b73-light-surface .bg-slate-950\/90,
.b73-light-surface .bg-slate-950\/80,
.b73-light-surface .bg-slate-950\/70,
.b73-light-surface .bg-slate-950\/60 {
    background-color: var(--b73-bg) !important;
}

.b73-light-surface .bg-slate-900,
.b73-light-surface .bg-slate-900\/95,
.b73-light-surface .bg-slate-900\/90,
.b73-light-surface .bg-slate-900\/80,
.b73-light-surface .bg-slate-900\/70,
.b73-light-surface .bg-slate-900\/60,
.b73-light-surface .glass-panel {
    background-color: var(--b73-surface) !important;
    backdrop-filter: none !important;
}

.b73-light-surface .bg-slate-800,
.b73-light-surface .bg-slate-800\/90,
.b73-light-surface .bg-slate-800\/80,
.b73-light-surface .bg-slate-800\/60,
.b73-light-surface .bg-slate-800\/50 {
    background-color: var(--b73-surface-muted) !important;
}
.b73-light-surface .hover\:bg-slate-800:hover,
.b73-light-surface .hover\:bg-slate-800\/80:hover,
.b73-light-surface .hover\:bg-slate-850:hover,
.b73-light-surface .hover\:bg-slate-700:hover {
    background-color: #e4ebe6 !important;
}

/* Soft tinted surfaces */
.b73-light-surface .bg-emerald-950,
.b73-light-surface .bg-emerald-950\/90,
.b73-light-surface .bg-emerald-950\/80,
.b73-light-surface .bg-emerald-950\/60,
.b73-light-surface .bg-emerald-950\/40,
.b73-light-surface .bg-emerald-900\/60,
.b73-light-surface .bg-emerald-500\/10,
.b73-light-surface .bg-emerald-500\/15,
.b73-light-surface .bg-emerald-500\/20 {
    background-color: var(--b73-green-soft) !important;
}
.b73-light-surface .bg-indigo-950,
.b73-light-surface .bg-indigo-950\/60,
.b73-light-surface .bg-indigo-500\/10,
.b73-light-surface .bg-indigo-500\/15,
.b73-light-surface .bg-indigo-500\/20 {
    background-color: #eef2ff !important;
}
.b73-light-surface .bg-blue-500\/10,
.b73-light-surface .bg-blue-500\/15,
.b73-light-surface .bg-blue-500\/20,
.b73-light-surface .bg-sky-500\/15,
.b73-light-surface .bg-sky-500\/20 {
    background-color: #eff6ff !important;
}
.b73-light-surface .bg-amber-500\/10,
.b73-light-surface .bg-amber-500\/15,
.b73-light-surface .bg-amber-500\/20,
.b73-light-surface .bg-amber-600\/25,
.b73-light-surface .bg-yellow-500\/10,
.b73-light-surface .bg-yellow-500\/20 {
    background-color: #fef9e7 !important;
}
.b73-light-surface .bg-rose-950,
.b73-light-surface .bg-rose-950\/80,
.b73-light-surface .bg-rose-900\/40,
.b73-light-surface .bg-rose-500\/15,
.b73-light-surface .bg-rose-500\/20,
.b73-light-surface .bg-rose-600\/20,
.b73-light-surface .bg-red-950,
.b73-light-surface .bg-red-950\/90,
.b73-light-surface .bg-red-950\/80,
.b73-light-surface .bg-red-950\/60,
.b73-light-surface .bg-red-600\/30 {
    background-color: #fef2f2 !important;
}
.b73-light-surface .bg-purple-500\/10,
.b73-light-surface .bg-purple-500\/20,
.b73-light-surface .bg-pink-500\/10,
.b73-light-surface .bg-pink-500\/20 {
    background-color: #f3f5f4 !important;
}

/* Remove heavy dark gradients on content cards */
.b73-light-surface .bg-gradient-to-br.from-emerald-950,
.b73-light-surface .bg-gradient-to-br.from-slate-900 {
    background-image: none !important;
    background-color: var(--b73-surface) !important;
}

/* Borders */
.b73-light-surface .border-slate-900,
.b73-light-surface .border-slate-800,
.b73-light-surface .border-slate-800\/90,
.b73-light-surface .border-slate-800\/80,
.b73-light-surface .border-slate-800\/60,
.b73-light-surface .border-slate-700,
.b73-light-surface .border-slate-700\/80 {
    border-color: var(--b73-border) !important;
}
.b73-light-surface .border-emerald-500\/30,
.b73-light-surface .border-emerald-500\/40,
.b73-light-surface .border-emerald-400\/30 {
    border-color: var(--b73-green-border) !important;
}
.b73-light-surface .border-amber-500\/40 { border-color: #f3d082 !important; }
.b73-light-surface .border-rose-500\/30,
.b73-light-surface .border-rose-500\/40,
.b73-light-surface .border-rose-500\/50,
.b73-light-surface .border-rose-800\/50,
.b73-light-surface .border-red-500\/30,
.b73-light-surface .border-red-500\/40 { border-color: #f5c2c7 !important; }
.b73-light-surface .border-sky-500\/30 { border-color: #bfdbfe !important; }

/* Text colors on light surfaces */
.b73-light-surface .text-white,
.b73-light-surface .text-slate-100,
.b73-light-surface .text-slate-200 {
    color: var(--b73-ink) !important;
}
.b73-light-surface .text-slate-300 { color: var(--b73-ink-body) !important; }
.b73-light-surface .text-slate-400 { color: var(--b73-ink-muted) !important; }
.b73-light-surface .text-slate-500 { color: #64746b !important; }

.b73-light-surface .text-emerald-400,
.b73-light-surface .text-emerald-300,
.b73-light-surface .text-emerald-200,
.b73-light-surface .text-emerald-300\/95 {
    color: var(--b73-green) !important;
}
.b73-light-surface .text-indigo-400,
.b73-light-surface .text-indigo-300 { color: #3730a3 !important; }
.b73-light-surface .text-blue-400,
.b73-light-surface .text-sky-200,
.b73-light-surface .text-sky-300 { color: #1d4ed8 !important; }
.b73-light-surface .text-amber-400,
.b73-light-surface .text-amber-300,
.b73-light-surface .text-amber-200,
.b73-light-surface .text-yellow-400 { color: #92400e !important; }
.b73-light-surface .text-rose-300,
.b73-light-surface .text-rose-200,
.b73-light-surface .text-red-300,
.b73-light-surface .text-red-200 { color: #b91c1c !important; }
.b73-light-surface .text-purple-400,
.b73-light-surface .text-purple-300,
.b73-light-surface .text-pink-400 { color: #14532d !important; }

/* Preserve crisp white text inside dark-colored solid buttons, headers, banners */
.b73-light-surface .b73-club-header,
.b73-light-surface .b73-club-header .text-white,
.b73-light-surface .b73-club-header .text-slate-100,
.b73-light-surface .b73-club-header .text-slate-200,
.b73-light-surface .b73-club-header .text-slate-300,
.b73-light-surface .b73-club-header .text-emerald-400,
.b73-light-surface .b73-club-header .text-emerald-300,
.b73-light-surface .b73-club-header .text-purple-300,
.b73-light-surface .b73-dark-banner,
.b73-light-surface .b73-dark-banner *,
.b73-light-surface .bg-emerald-600,
.b73-light-surface .bg-emerald-600 *,
.b73-light-surface .bg-emerald-700,
.b73-light-surface .bg-emerald-700 *,
.b73-light-surface .bg-green-700,
.b73-light-surface .bg-green-700 *,
.b73-light-surface .bg-indigo-600,
.b73-light-surface .bg-indigo-600 *,
.b73-light-surface .bg-blue-600,
.b73-light-surface .bg-blue-600 *,
.b73-light-surface .bg-red-600,
.b73-light-surface .bg-red-600 *,
.b73-light-surface .bg-rose-600,
.b73-light-surface .bg-rose-600 *,
.b73-light-surface .bg-\[\#14532d\],
.b73-light-surface .bg-\[\#14532d\] * {
    color: #ffffff !important;
}
.b73-light-surface .b73-club-header .text-green-200,
.b73-light-surface .b73-club-header .text-emerald-200 {
    color: #bbf7d0 !important;
}
.b73-light-surface .b73-club-header .hover\:bg-slate-800:hover,
.b73-light-surface .b73-club-header .bg-slate-800 {
    background-color: rgba(255, 255, 255, 0.14) !important;
}
.b73-light-surface .b73-club-header .bg-emerald-600 {
    background-color: #15803d !important;
}
.b73-light-surface .b73-club-header .b73-club-dropdown {
    background-color: #ffffff !important;
    border: 1px solid #d5ddd8 !important;
    color: #16211b !important;
}
.b73-light-surface .b73-club-header .b73-club-dropdown a {
    color: #16211b !important;
}
.b73-light-surface .b73-club-header .b73-club-dropdown a:hover {
    background-color: #f2f6f3 !important;
    color: #14532d !important;
}

/* Primary green buttons match official B73 green */
.b73-light-surface .bg-emerald-600 {
    background-color: var(--b73-green) !important;
}
.b73-light-surface .hover\:bg-emerald-500:hover {
    background-color: var(--b73-green-hover) !important;
}

/* Inputs, selects & textareas on light surfaces */
.b73-light-surface input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.b73-light-surface select,
.b73-light-surface textarea {
    background-color: #ffffff !important;
    border-color: #cbd5cf !important;
    color: #16211b !important;
}
.b73-light-surface input::placeholder,
.b73-light-surface textarea::placeholder {
    color: #7c8b82 !important;
}
.b73-light-surface input:focus,
.b73-light-surface select:focus,
.b73-light-surface textarea:focus {
    border-color: #15803d !important;
    box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.15) !important;
}

/* Prose & tables */
.b73-light-surface .prose,
.b73-light-surface .prose-invert {
    color: var(--b73-ink-body) !important;
}
.b73-light-surface table thead {
    background-color: #f0f4f1 !important;
}
.b73-light-surface table tr {
    border-color: #e4eae6 !important;
}

/* Toast notification remains high-contrast dark pill */
.b73-light-surface #b73Toast > div {
    background-color: #14532d !important;
    border-color: #15803d !important;
    color: #ffffff !important;
}
.b73-light-surface #b73Toast > div * {
    color: #ffffff !important;
}
