/* === FONT === */
@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/Manrope-VariableFont_wght.woff2') format('woff2');
    font-weight: 200 800;
    font-display: swap;
}

/* === KIOSK RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --kiosk-accent: #009942;
    --kiosk-bg: #111;
}

body.kiosk-mode {
    overflow: hidden;
    cursor: none;
    background: var(--kiosk-bg);
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    user-select: none;
}

body.kiosk-mode.cursor-visible {
    cursor: default;
}

/* === LAYOUT (fullscreen slideshow) === */
.kiosk-container {
    width: 100vw;
    height: 100vh;
}

.kiosk-slideshow {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
    background: #000;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    inset: 0;
}

/* Slide media (billeder + videoer) */
.slideshow-container .slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    border-radius: 0;
}

.slideshow-container .slide-media.active {
    opacity: 1;
}

.slideshow-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

.slideshow-placeholder-text {
    color: rgba(255,255,255,0.3);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Clock overlay */
.kiosk-clock {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 5rem;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    z-index: 5;
    font-variant-numeric: tabular-nums;
}

/* Progress bar */
.slideshow-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 15px;
    width: 0%;
    background: var(--kiosk-accent);
    z-index: 10;
    pointer-events: none;
}

/* === GROUP SELECTOR === */
.group-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 2rem;
    cursor: default;
}

.group-selector-title {
    color: rgba(255,255,255,0.85);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

.group-selector-loading,
.group-selector-empty {
    color: rgba(255,255,255,0.4);
    font-size: 1.5rem;
    font-weight: 500;
}

.group-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 1200px;
}

.group-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 0;
    width: 220px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
}

.group-tile:hover,
.group-tile:focus {
    transform: scale(1.05);
    border-color: var(--kiosk-accent);
    box-shadow: 0 0 0 4px rgba(0, 153, 66, 0.25);
    outline: none;
}

.group-tile-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 14px 14px 0 0;
}

.group-tile-name {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.75rem 1rem 0.25rem;
    text-align: center;
}

.group-tile-count {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    padding: 0 1rem 0.75rem;
}
