/* ═══════════════════════════════════════════════════════════
   index.css  —  Page-specific styles for index.php
   Depends on: 2md_bootstrap.css (design tokens + brand colours)
═══════════════════════════════════════════════════════════ */

/* ── Override style.css which sets display:table — breaks fixed positioning ── */
/* Only the viewport scrolls: overflow-x is set on <html> alone. Setting it on
   both html and body turns body into a second scroll container (double scrollbar). */
html {
    overflow-x: hidden; /* prevent any child from causing horizontal scroll */
    max-width: 100%;
    scroll-padding-top: var(--nav-h); /* anchor links (Games.php#braetspil) clear the navbar */
}

body {
    display: block !important;
    height: auto !important;   /* style.css sets height:100% */
    min-height: 100vh;
    overflow: visible;
    max-width: 100%;
    padding-top: var(--nav-h); /* push content below the fixed navbar (set by NavBar.js) */
}

/* ── Design tokens (single source of truth) ── */
:root {
    --red:        #bb0000;
    --red-dark:   #8a0000;
    --bg-warm:    #fed;
    --bg-light:   #faf7f0;
    --text-main:  #333;
    --radius:     8px;
    --shadow:     0 2px 12px rgba(0, 0, 0, 0.10);
    --nav-h: 56px; /* must equal #main-navbar height: 8px + 40px logo + 8px */
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
    background-color: var(--red);
    background-image:
        radial-gradient(ellipse at 70% 50%, rgba(180,0,0,0.6) 0%, transparent 70%),
        radial-gradient(ellipse at 20% 80%, rgba(80,0,0,0.4) 0%, transparent 60%);
    color: #fff;
    padding: 80px 20px 80px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Subtle texture overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 8px;
}

.hero-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.hero-title {
    font-family: 'Ceviche One', cursive;
    font-size: clamp(2rem, 8vw, 4.5rem); /* lowered min so it fits narrow screens */
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    word-break: break-word;
}

.hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: clamp(0.9rem, 3vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

.btn-hero {
    background-color: #fff;
    color: var(--red);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 32px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    display: inline-block;
}

.btn-hero:hover,
.btn-hero:focus {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

/* ═══════════════════════════════════════════
   EVENT BANNERS
═══════════════════════════════════════════ */
.event-banner-section {
    border-bottom: 1px solid #e8ddd0;
}

.event-banner-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Stack multiple banners with a gap */
.event-banner-link + .event-banner-link {
    margin-top: 10px;
}

.event-banner {
    background-color: #fff;
    border: 1px solid #e0d4c4;
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    min-width: 0;
}

.event-banner:hover {
    box-shadow: 0 4px 20px rgba(187,0,0,0.15);
    transform: translateY(-1px);
}

.event-banner-fb-icon {
    font-size: 2rem;
    color: #1877F2; /* Facebook brand blue */
    flex-shrink: 0;
}

.event-banner-body {
    flex: 1;
    min-width: 0;
}

/* Badge variants */
.event-badge {
    display: inline-block;
    background-color: var(--red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    white-space: nowrap;
}

.event-badge--soon {
    background-color: #e07000;
}

.event-badge--today {
    background-color: #c47800;
    animation: pulse-badge 1.4s ease-in-out infinite;
}

.event-badge--active {
    background-color: #1a8a3a;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.65; }
}

.event-banner-text {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-banner-date {
    font-size: 0.82rem;
    color: #666;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-banner-date .fa-calendar {
    margin-right: 4px;
}

.event-banner-arrow {
    flex-shrink: 0;
    color: var(--red);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════
   SHARED SECTION SPACING
═══════════════════════════════════════════ */
.section-padded {
    padding: 64px 0;
}


/* ═══════════════════════════════════════════
   OM FORENINGEN
═══════════════════════════════════════════ */
.about-logo {
    max-height: 260px;
    width: auto;
    opacity: 0.92;
}

.btn-primary-2md {
    background-color: var(--red);
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: var(--radius);
    border: 2px solid var(--red);
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s, color 0.2s;
}

.btn-primary-2md:hover,
.btn-primary-2md:focus {
    background-color: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
}

/* ═══════════════════════════════════════════
   ACTIVITY CARDS
═══════════════════════════════════════════ */
.activity-card {
    background-color: #fff;
    border: 1px solid #e0d4c4;
    border-radius: var(--radius);
    padding: 32px 24px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.activity-card:hover {
    box-shadow: 0 6px 24px rgba(187,0,0,0.13);
    transform: translateY(-3px);
}

.activity-icon {
    font-size: 2.4rem;
    color: var(--red);
    margin-bottom: 16px;
    line-height: 1;
}

.activity-card h3 {
    font-family: 'Ceviche One', cursive;
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.activity-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 16px;
}

.activity-link {
    color: var(--red);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.activity-link:hover {
    color: var(--red-dark);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════
   MAP
═══════════════════════════════════════════ */
.map-wrapper {
    border: 1px solid #e0d4c4;
    width: 100%;
    overflow: hidden;
}

.map-wrapper iframe {
    display: block; /* removes inline bottom gap */
    width: 100%;
}

/* ═══════════════════════════════════════════
   RESPONSIVE TWEAKS
═══════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .hero {
        padding: 60px 16px 48px;
    }

    .hero-logo {
        height: 56px;
    }

    .section-padded {
        padding: 40px 0;
    }

    .activity-card {
        padding: 24px 16px;
    }

    /* Stack the about section — logo hidden on mobile to save space */
    .about-logo {
        max-height: 160px;
    }
}


/* ═══════════════════════════════════════════
   SHARED TABLE  (red header, rounded card) — used by Games.php and Contact.php
═══════════════════════════════════════════ */
.site-table-wrap {
    border: 1px solid #e0d4c4;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 16px;
}

.site-table-wrap .table {
    margin-bottom: 0;
    background-color: #fff;
}

.site-table-wrap thead tr {
    background-color: var(--red);
    color: #fff;
}

.site-table-wrap thead th {
    --bs-table-bg: var(--red);
    --bs-table-color: #fff;
    background-color: var(--red);
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    padding: 12px 16px;
}

.site-table-wrap tbody tr {
    border-color: #e8ddd0;
}

.site-table-wrap tbody tr:hover {
    background-color: #faf0e8;
}

.site-table-wrap tbody td,
.site-table-wrap tbody th {
    padding: 12px 16px;
    vertical-align: middle;
}
