/*
Theme Name: #livet
Theme URI: https://hashtaglivet.se
Author: Erik
Description: Tema för podden #livet med Kim och Mats — vinrött, varmt och personligt.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: livet-theme
*/

/* === Custom Properties === */
:root {
    --burgundy: #5C1A2A;
    --burgundy-dark: #2A0C12;
    --burgundy-light: #7A2E3F;
    --warm-cream: #1A120E;
    --warm-white: #221813;
    --gold: #C9A84C;
    --gold-light: #D4B86A;
    --gold-dim: rgba(201, 168, 76, 0.12);
    --text: #E8DDD4;
    --text-light: #A89888;
    --radius: 10px;
    --glow-gold: 0 0 30px rgba(201, 168, 76, 0.15);
    --glow-burgundy: 0 0 40px rgba(92, 26, 42, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background-color: #110C09;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gold-light);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gold);
}

/* === Layout === */
.section {
    padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 2rem);
    position: relative;
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1rem auto 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.9rem 2.25rem;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    position: relative;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #B8943A 100%);
    color: var(--burgundy-dark);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 168, 76, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--text);
    border: 2px solid rgba(232, 221, 212, 0.4);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(232, 221, 212, 0.7);
    color: var(--text);
    transform: translateY(-2px);
}

.btn-disabled {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-disabled:hover {
    transform: none;
}

/* === Navigation === */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 clamp(1rem, 5vw, 2rem);
    transition: background-color 0.4s, box-shadow 0.4s, padding 0.4s;
}

.site-nav.scrolled {
    background: rgba(17, 12, 9, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(201, 168, 76, 0.1);
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    position: relative;
}

.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold) !important;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.4s;
    position: absolute;
    right: 0;
}

.site-nav.scrolled .nav-logo {
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(17, 12, 9, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.25rem;
    }
}

/* Admin bar offset */
.admin-bar .site-nav {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-nav {
        top: 46px;
    }
}

/* Episodes placeholder */
.episodes-placeholder {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 3rem 0;
}

/* === Signup Page === */
.signup-page {
    max-width: 560px;
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 2rem);
}

.signup-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.signup-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.signup-title {
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--text);
    margin-bottom: 2rem;
}

.signup-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.signup-meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-light);
    font-size: 1rem;
}

.signup-meta-item svg {
    color: var(--gold);
    flex-shrink: 0;
    opacity: 0.7;
}

.signup-meta-sub {
    opacity: 0.6;
    font-size: 0.9em;
}

/* Form */
.signup-form-wrap {
    background: linear-gradient(145deg, #241A15 0%, #1C1310 100%);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: calc(var(--radius) + 4px);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.signup-form-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.75rem;
    color: var(--gold);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-group input::placeholder {
    color: rgba(168, 152, 136, 0.4);
}

/* Guest picker */
.guest-picker {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}

.guest-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.15);
    color: var(--gold);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.guest-btn:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
    border-right: none;
}

.guest-btn:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
    border-left: none;
}

.guest-btn:hover {
    background: rgba(201, 168, 76, 0.1);
}

.guest-btn:active {
    background: rgba(201, 168, 76, 0.2);
}

.guest-picker input[type="number"] {
    width: 56px;
    height: 44px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 0;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    -moz-appearance: textfield;
    outline: none;
}

.guest-picker input::-webkit-inner-spin-button,
.guest-picker input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.form-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.form-hint strong {
    color: var(--gold);
}

.form-group .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--gold);
    flex-shrink: 0;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.signup-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    font-size: 1.05rem;
}

.signup-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none !important;
}

.form-full-message {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    padding: 1rem 0;
}

.form-spots-left {
    text-align: center;
    color: #E57373;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding: 0.5rem 1rem;
    background: rgba(229, 115, 115, 0.08);
    border-radius: var(--radius);
    border: 1px solid rgba(229, 115, 115, 0.15);
}

.form-error {
    text-align: center;
    color: #E57373;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Confirmation */
.signup-confirmation {
    text-align: center;
}

.confirmation-check {
    margin-bottom: 1rem;
    animation: checkPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes checkPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.confirmation-text {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.confirmation-text strong {
    color: var(--gold);
}

.swish-section {
    background: linear-gradient(145deg, #241A15 0%, #1C1310 100%);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: calc(var(--radius) + 4px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.swish-qr img {
    border-radius: var(--radius);
    width: 200px;
    height: 200px;
}

.swish-details {
    text-align: center;
}

.swish-name {
    font-weight: 600;
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.swish-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.swish-message {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* === 404 === */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(92, 26, 42, 0.15) 0%, transparent 60%),
        #110C09;
}

.error-content {
    max-width: 500px;
}

.error-code {
    font-size: clamp(5rem, 15vw, 10rem);
    color: var(--burgundy);
    line-height: 1;
    margin-bottom: 0.25rem;
    opacity: 0.4;
}

.error-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--gold);
    margin-bottom: 1rem;
}

.error-text {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* === Bingo theme override === */
.page-content .bingo-container {
    font-family: 'Inter', -apple-system, sans-serif;
    max-width: 600px;
    padding: clamp(10px, 3vw, 30px);
}

.page-content .bingo-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--gold);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    letter-spacing: 0.03em;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 15px rgba(201, 168, 76, 0.15);
}

/* Board */
.page-content .bingo-board {
    background: transparent;
    border: none;
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(201, 168, 76, 0.15),
        0 12px 40px rgba(0, 0, 0, 0.35),
        0 0 80px rgba(92, 26, 42, 0.08);
    margin-bottom: 1.25rem;
}

/* Cells */
.page-content .bingo-cell {
    border-color: rgba(201, 168, 76, 0.08);
    color: var(--text);
    background: linear-gradient(145deg, #241A15 0%, #1C1310 100%);
    transition: all 0.25s ease;
    position: relative;
}

.page-content .bingo-cell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.page-content .bingo-cell:hover {
    background: linear-gradient(145deg, #2E2018 0%, #241A14 100%);
}

.page-content .bingo-cell:hover::after {
    opacity: 1;
}

.page-content .bingo-cell .bingo-cell-content {
    color: var(--text-light);
    font-weight: 500;
    font-size: clamp(10px, 2.2vmin, 13px);
    letter-spacing: 0.01em;
    transition: color 0.25s ease, transform 0.25s ease;
}

.page-content .bingo-cell:hover .bingo-cell-content {
    color: var(--text);
}

/* Selected */
.page-content .bingo-cell.selected {
    background: linear-gradient(145deg, var(--burgundy) 0%, var(--burgundy-dark) 100%) !important;
    border-color: rgba(122, 46, 63, 0.3) !important;
}

.page-content .bingo-cell.selected .bingo-cell-content {
    color: var(--text) !important;
    transform: scale(1.02);
}

.page-content .bingo-cell.selected::after {
    background: radial-gradient(circle at center, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
    opacity: 1;
}

/* Winning */
.page-content .bingo-cell.winning-cell {
    background: linear-gradient(145deg, var(--gold) 0%, #B8943A 100%) !important;
    border-color: var(--gold-light) !important;
    animation: winPulse 1.5s ease-in-out infinite;
}

.page-content .bingo-cell.winning-cell .bingo-cell-content {
    color: var(--burgundy-dark) !important;
    font-weight: 700;
}

@keyframes winPulse {
    0%, 100% { box-shadow: inset 0 0 0 rgba(255, 255, 255, 0); }
    50% { box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.15); }
}

/* Controls */
.page-content .bingo-controls {
    margin-top: 1rem;
    gap: 1rem;
}

.page-content .bingo-button {
    background: linear-gradient(135deg, var(--gold) 0%, #B8943A 100%);
    color: var(--burgundy-dark);
    border: none;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 22px;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
    transition: all 0.25s ease;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.page-content .bingo-button:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 168, 76, 0.3);
}

.page-content .bingo-select {
    background: #1E1410;
    color: var(--text);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.page-content .bingo-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

.page-content .bingo-size-selector {
    color: var(--text-light);
    font-size: 0.85rem;
}

.page-content .bingo-size-selector label {
    letter-spacing: 0.02em;
}

/* === 1. Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(92, 26, 42, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 70%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
        #110C09;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-conic-gradient(
        rgba(201, 168, 76, 0.02) 0deg 1deg,
        transparent 1deg 3deg
    );
    animation: slowSpin 120s linear infinite;
    pointer-events: none;
}

@keyframes slowSpin {
    to { transform: rotate(360deg); }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-image {
    width: clamp(240px, 40vw, 380px);
    height: auto;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 60px rgba(92, 26, 42, 0.25)) blur(8px);
    animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes heroReveal {
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 60px rgba(92, 26, 42, 0.25)) blur(0px);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    color: var(--text);
    letter-spacing: 0.08em;
    text-shadow: 0 2px 20px rgba(201, 168, 76, 0.2);
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-light);
    max-width: 500px;
    font-style: italic;
}

.hero-platforms {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.hero-platforms a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: var(--gold);
    transition: all 0.3s ease;
}

.hero-platforms a:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--gold);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--glow-gold);
}

.hero-platforms svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.hero-cta {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    animation: fadeInUp 0.8s ease 1.2s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2.5s ease-in-out infinite;
    color: var(--gold);
    opacity: 0.4;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.7; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === 2. Om Podden === */
.about {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(92, 26, 42, 0.1) 0%, transparent 50%),
        var(--warm-white);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text);
}

/* === 3. Senaste Avsnitten === */
.episodes {
    background:
        radial-gradient(ellipse at 80% 50%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
        var(--warm-cream);
}

.episodes-embed {
    max-width: 660px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.episodes-embed iframe {
    width: 100%;
    border: none;
    border-radius: var(--radius);
}

/* === 4. Bingo === */
.bingo {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(122, 46, 63, 0.6) 0%, transparent 60%),
        linear-gradient(180deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    color: var(--text);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bingo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(255, 255, 255, 0.015) 40px,
        rgba(255, 255, 255, 0.015) 80px
    );
    pointer-events: none;
}

.bingo .section-title {
    color: var(--text);
}

.bingo .section-title::after {
    background: linear-gradient(90deg, transparent, rgba(232, 221, 212, 0.4), transparent);
}

.bingo-description {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.85;
    position: relative;
}

.bingo .btn-outline {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    position: relative;
}

/* === 5. Spel === */
.games {
    background:
        radial-gradient(ellipse at 30% 80%, rgba(92, 26, 42, 0.08) 0%, transparent 50%),
        var(--warm-white);
    position: relative;
}

.games::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.game-card {
    background: linear-gradient(145deg, #2A1C16 0%, #1E1410 100%);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(201, 168, 76, 0.1);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--gold), var(--burgundy));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--glow-gold);
    border-color: rgba(201, 168, 76, 0.25);
}

.game-card:hover::before {
    opacity: 1;
}

.game-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.game-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.game-card .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.75rem;
}

/* === 6. Live Event === */
.live-event {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
        var(--warm-cream);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.live-event::before,
.live-event::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.live-event::before { top: 0; }
.live-event::after { bottom: 0; }

.live-event-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-align: center;
    margin-bottom: -0.5rem;
    opacity: 0.7;
}

.live-event-date {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
}

.live-event-text {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.8;
}

/* === 7. Footer === */
.site-footer {
    background:
        linear-gradient(180deg, var(--burgundy-dark) 0%, #150A0D 100%);
    color: rgba(232, 221, 212, 0.6);
    padding: 3.5rem clamp(1rem, 5vw, 2rem);
    text-align: center;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(92, 26, 42, 0.5), transparent);
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-platforms {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-platforms a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(232, 221, 212, 0.6);
    transition: all 0.3s ease;
}

.footer-platforms a:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: rgba(201, 168, 76, 0.3);
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-platforms svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.4;
}

/* === Page Template (for games) === */
.page-container {
    min-height: 100vh;
    padding: 0;
    background-color: #110C09;
}

.page-header {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    padding: 1.25rem clamp(1rem, 5vw, 2rem);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent);
}

.page-header-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-back-link {
    color: var(--text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: all 0.2s;
}

.page-back-link:hover {
    opacity: 1;
    color: var(--gold);
}

.page-title {
    color: var(--text);
    font-size: 1.25rem;
    margin: 0;
}

.page-content {
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 5vw, 2rem);
    max-width: 1000px;
    margin: 0 auto;
}

/* === Responsive === */
@media (max-width: 767px) {
    .hero {
        min-height: 90vh;
        padding: 2rem 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        padding: 2rem 1.5rem;
    }
}

@media (min-width: 768px) {
    .about-content {
        font-size: 1.1rem;
    }
}

/* === JS Animation Keyframes === */
@keyframes shimmer {
    0% { background-position: 100% 50%; }
    50% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes eventPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* Animated border on bingo button */
.bingo .btn-outline {
    position: relative;
    overflow: hidden;
}

.bingo .btn-outline::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg, transparent, rgba(201, 168, 76, 0.5), transparent, rgba(232, 221, 212, 0.3), transparent);
    animation: borderSpin 4s linear infinite;
    z-index: -1;
    border-radius: inherit;
}

.bingo .btn-outline::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--burgundy);
    border-radius: calc(var(--radius) - 2px);
    z-index: -1;
}

@keyframes borderSpin {
    to { transform: rotate(360deg); }
}

/* Card glow sweep */
.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.04), transparent);
    transition: none;
    pointer-events: none;
}

.game-card:hover::after {
    animation: cardSweep 0.6s ease-out;
}

@keyframes cardSweep {
    to { left: 150%; }
}

/* Hero image ring pulse */
.hero-image {
    position: relative;
}

/* After reveal: lock visible + breathe */
.hero-image.revealed {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 60px rgba(92, 26, 42, 0.25)) blur(0px);
    animation: heroBreathe 6s ease-in-out infinite;
}

@keyframes heroBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.015); }
}

/* === WP Admin Bar Fix === */
.admin-bar .hero {
    min-height: calc(100vh - 32px);
}

@media (max-width: 782px) {
    .admin-bar .hero {
        min-height: calc(100vh - 46px);
    }
}
