/* Shared styles for home page variants.
   CSS variables, orbs, and background-grid live in views/layouts/public.handlebars */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap');

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--beacon-navy);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── Layout ────────────────────────────────────────────────── */

.page-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .page-container { padding: 0 1rem; }
}

/* ── Animations ────────────────────────────────────────────── */

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

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 104, 66, 0.3); }
    50%       { box-shadow: 0 0 20px rgba(255, 104, 66, 0.6); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
    padding: 7rem 0 4rem;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.2s both;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    pointer-events: none;
}

.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.1s both;
}

.hero-logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 24px rgba(255, 186, 83, 0.45));
}

.hero-status {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 104, 66, 0.2);
    border: 1px solid var(--beacon-orange);
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    animation: statusPulse 2s ease-in-out infinite;
}

.hero h1 {
    font-family: 'Kanit', sans-serif;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--beacon-white), var(--beacon-yellow), var(--beacon-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-tagline {
    font-family: 'Kanit', sans-serif;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--beacon-white);
    margin-bottom: 0.75rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* ── Countdown ─────────────────────────────────────────────── */

.countdown {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.countdown-item { text-align: center; }

.countdown-number {
    display: block;
    font-family: 'Kanit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-item:nth-child(1) .countdown-number { color: var(--beacon-blue); }
.countdown-item:nth-child(2) .countdown-number { color: var(--beacon-orange); }
.countdown-item:nth-child(3) .countdown-number { color: var(--beacon-yellow); }
.countdown-item:nth-child(4) .countdown-number { color: var(--beacon-white); }

.countdown-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── Buttons ───────────────────────────────────────────────── */

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 5rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.btn {
    padding: 1.2rem 3rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--beacon-yellow), var(--beacon-orange));
    color: var(--beacon-navy);
    box-shadow: 0 10px 30px rgba(255, 186, 83, 0.3);
    font-weight: 700;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 186, 83, 0.5);
    color: var(--beacon-navy);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--beacon-blue);
    transform: translateY(-2px);
    color: var(--text-primary);
}

/* ── Stats ─────────────────────────────────────────────────── */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0 5rem;
    animation: fadeInUp 1s ease-out 1.1s both;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--beacon-yellow), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.stat-card:hover::before { transform: translateX(100%); }
.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--beacon-yellow);
    box-shadow: 0 10px 40px rgba(255, 186, 83, 0.2);
}

.stat-number {
    font-family: 'Kanit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--beacon-yellow), var(--beacon-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── Section headings ──────────────────────────────────────── */

.section-title {
    font-family: 'Kanit', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--beacon-white), var(--beacon-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
    line-height: 1.8;
}

/* ── Intro / "Vad är Beacon?" ──────────────────────────────── */

.intro-section {
    padding: 2rem 0 5rem;
    text-align: center;
}

.intro-text {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.9;
}

/* ── Audience cards ("För vem?") ───────────────────────────── */

.audience-section { padding: 3rem 0 6rem; }

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.audience-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.audience-card:hover {
    border-color: rgba(255, 186, 83, 0.4);
    box-shadow: 0 8px 30px rgba(255, 186, 83, 0.1);
}

.audience-card-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 186, 83, 0.1), rgba(36, 155, 215, 0.06));
}

.audience-card-header h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 0.95rem;
    color: var(--beacon-yellow);
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.audience-card-body {
    display: block;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.audience-card-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.audience-card-body p:last-child { margin-bottom: 0; }

.audience-card-body a {
    color: var(--beacon-yellow);
    text-decoration: underline;
    transition: color 0.2s;
}

.audience-card-body a:hover { color: var(--beacon-orange); }

/* ── LAN specs ─────────────────────────────────────────────── */

.lan-section { padding: 3rem 0 6rem; }

.lan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.lan-spec {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 3px solid var(--beacon-yellow);
    border-radius: 0 12px 12px 0;
    padding: 1.4rem 1.5rem;
    transition: all 0.25s ease;
}

.lan-spec:hover {
    background: rgba(255, 186, 83, 0.05);
    border-left-color: var(--beacon-orange);
    transform: translateX(4px);
}

.lan-spec-label {
    font-size: 0.75rem;
    color: var(--beacon-yellow);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
}

.lan-spec-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
}

/* ── Activities ────────────────────────────────────────────── */

.activities-section { padding: 3rem 0 6rem; }

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: linear-gradient(135deg, rgba(36, 155, 215, 0.05), rgba(255, 186, 83, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-6px);
    border-color: var(--beacon-yellow);
    box-shadow: 0 16px 50px rgba(255, 186, 83, 0.18);
}

.activity-card-image {
    height: 140px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.activity-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.activity-card:hover .activity-card-image img {
    transform: scale(1.06);
}

.activity-card-image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(17, 22, 35, 0.72), rgba(17, 22, 35, 0.45));
    padding: 0 1rem;
}

.activity-card-image-overlay h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1.2rem;
    color: var(--beacon-yellow);
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    margin: 0;
}

.activity-card-gradient {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    flex-shrink: 0;
}

.activity-card-gradient h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1.2rem;
    color: var(--beacon-white);
    text-align: center;
    margin: 0;
}

.gradient-esports       { background: linear-gradient(135deg, #FF6842, #249BD7); }
.gradient-competitive   { background: linear-gradient(135deg, #FFBA53, #FF6842); }
.gradient-creative      { background: linear-gradient(135deg, #249BD7, #22c55e); }
.gradient-community     { background: linear-gradient(135deg, #22c55e, #FFBA53); }
.gradient-tech          { background: linear-gradient(135deg, #1a2035, #249BD7); }
.gradient-entertainment { background: linear-gradient(135deg, #FF6842, #22c55e); }

.activity-card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.activity-card-body h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1.2rem;
    color: var(--beacon-yellow);
    margin-bottom: 0.75rem;
}

.activity-card-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 0.4rem;
    flex-grow: 1;
}

/* ── Event info ────────────────────────────────────────────── */

.eventinfo-section { padding: 3rem 0 6rem; }

.eventinfo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.75rem;
}

.eventinfo-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.25rem;
    transition: all 0.3s ease;
}

.eventinfo-card:hover {
    transform: translateY(-4px);
    border-color: var(--beacon-orange);
    box-shadow: 0 10px 40px rgba(255, 104, 66, 0.12);
}

.eventinfo-card h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1.1rem;
    color: var(--beacon-orange);
    margin-bottom: 1.25rem;
    letter-spacing: 0.04em;
}

.eventinfo-time-block { margin-bottom: 1rem; }

.eventinfo-time-block h4 {
    font-family: 'Kanit', sans-serif;
    font-size: 0.95rem;
    color: var(--beacon-orange);
    margin-bottom: 0.4rem;
}

.eventinfo-time-block p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding-left: 1rem;
    border-left: 2px solid var(--beacon-orange);
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.eventinfo-line {
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 0.35rem 0 0.35rem 1rem;
    border-left: 2px solid var(--beacon-orange);
    margin-bottom: 0.5rem;
    line-height: 1.6;
    display: block;
}

.eventinfo-line a {
    color: var(--beacon-orange);
    text-decoration: underline;
    transition: color 0.2s;
}

.eventinfo-line a:hover { color: var(--beacon-yellow); }

/* ── FAQ ───────────────────────────────────────────────────── */

.faq-section { padding: 3rem 0 6rem; }

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.faq-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-4px);
    border-color: var(--beacon-blue);
    box-shadow: 0 10px 40px rgba(36, 155, 215, 0.12);
}

.faq-card h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    color: var(--beacon-blue);
    margin-bottom: 0.75rem;
}

.faq-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.75;
    margin-bottom: 0.4rem;
}

.faq-card a {
    color: var(--beacon-orange);
    text-decoration: underline;
    transition: color 0.2s;
}

.faq-card a:hover { color: var(--beacon-yellow); }

/* ── Tickets teaser ────────────────────────────────────────── */

.tickets-section {
    padding: 3rem 0 6rem;
    text-align: center;
}

.tickets-content {
    background: linear-gradient(135deg, rgba(255, 186, 83, 0.07), rgba(255, 104, 66, 0.05));
    border: 1px solid rgba(255, 186, 83, 0.22);
    border-radius: 24px;
    padding: 4rem;
    max-width: 680px;
    margin: 0 auto;
}

.tickets-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* ── Location ──────────────────────────────────────────────── */

.location {
    padding: 2rem 0 6rem;
    text-align: center;
}

.location-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4rem;
    backdrop-filter: blur(10px);
}

.location h2 {
    font-family: 'Kanit', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--beacon-white);
}

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

/* ── Footer ────────────────────────────────────────────────── */

.home-footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* ── Scroll reveal ─────────────────────────────────────────── */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .audience-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .eventinfo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero { padding: 4rem 0 3rem; }
    .hero-logo img { height: 60px; }
    .hero-status { font-size: 0.72rem; padding: 0.4rem 1rem; letter-spacing: 0.08em; }
    .countdown { gap: 1.2rem; }
    .countdown-number { font-size: 2rem; }
    .countdown-label { font-size: 0.7rem; }
    .cta-group { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; text-align: center; padding: 1rem 2rem; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-card { padding: 1.5rem 1rem; }
    .stat-number { font-size: 2.2rem; }
    .section-title { font-size: 1.9rem; }
    .lan-grid { grid-template-columns: 1fr 1fr; }
    .activities-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .location-content { padding: 2rem 1.5rem; }
    .tickets-content { padding: 2rem 1.5rem; }
    .scroll-reveal { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .lan-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
}
