﻿/* Page frame to align with modern layout */
.home-wrap { padding: 1.25rem; }
.home-container { width: 100%; max-width: 980px; margin: 0 auto; }

/* Light hero with red accent; dark text to match the site */
.hero-accent {
    height: 6px;
    border-top-left-radius: .75rem;
    border-top-right-radius: .75rem;
    background: linear-gradient(90deg, #a50c1b, #d61f34 60%, #f04a5a);
}

/* Bubble stage has a subtle surface to feel consistent with cards */
.bubble-stage { overflow: hidden; }
.bubble-container {
    position: relative;
    width: 100%;
    height: 70vh; /* slightly shorter for modern feel */
    min-height: 420px;
    overflow: hidden;
    border-radius: .75rem;
    background: radial-gradient(1200px 600px at 20% 10%, #fff, #fff),
    radial-gradient(800px 400px at 80% 90%, #fff, #f7f2f1);
}

/* Base bubble button */
.bubble {
    position: absolute;
    width: var(--bubble-size, 110px);
    height: var(--bubble-size, 110px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
    z-index: 1;
    box-shadow: 0 6px 16px rgba(0,0,0,.16);
    outline: none;
}

.bubble:hover { transform: translateZ(0) scale(1.04); }
.bubble:focus-visible { outline: 3px solid rgba(255,255,255,.6); outline-offset: 2px; }

.bubble span {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    padding: 0 .5rem;
    pointer-events: none;
}

/* Expanded bubble */
.bubble.expanded {
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 680px;
    max-width: min(90vw, 720px);
    height: auto;
    min-height: 280px;
    border-radius: 24px;
    z-index: 20;
    background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0,0,0,.28);
    padding: 1rem 1rem 1.25rem 1rem;
}

.bubble-content { color: #fff; width: 100%; }
/* Bubble header centered in expanded state */
.bubble-header {
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center;
    text-align: center;       /* align text inside */
    width: 100%;
    margin-bottom: .5rem;
}

.bubble-header h3 {
    flex: 0 1 auto;           /* prevent full-width stretch */
    font-weight: 600;
    color: #fff;
}
.bubble-body { opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.bubble.expanded .bubble-body { opacity: 1; transform: none; }

/* Backdrop when any bubble is expanded */
.bubble-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
    z-index: 15;
}

/* Responsive: smaller expanded width on small screens */
@media (max-width: 768px) {
    .bubble.expanded {
        width: 92vw;
        max-width: 92vw;
        border-radius: 18px;
    }
}

/* Accessibility helpers (optional) */
@media (prefers-reduced-motion: reduce) {
    .bubble, .bubble-body { transition: none !important; }
}
