/* Bubble Box Styles for Content Sections */
.bubble-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* Game hosting section spacing */
.game-hosting-section {
    margin-bottom: 60px;
    padding-top: 20px;
}

.game-hosting-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.game-hosting-image {
    flex: 0 0 auto;
    max-width: 300px;
}

.game-hosting-image img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
}

.bubble-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Subtle glow effect inside the bubble */
.bubble-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* soften the base bubble glow for testimonials and other content */
    background: radial-gradient(circle at 30% 20%, rgba(107, 63, 255, 0.04), transparent 60%);
    pointer-events: none;
    z-index: 0; /* place the subtle bubble background behind inner elements */
}

/* Heading styles inside bubble boxes */
.bubble-box h2, 
.bubble-box h3 {
    margin-top: 0;
    color: var(--white);
    position: relative;
    padding-bottom: 8px;
}

/* Subtle accent line under headings - reduced thickness and length for a sleeker look */
.bubble-box h2::after,
.bubble-box h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 36px;
    background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border-radius: 2px;
}

/* Ensure compact feature boxes have an even more subtle underline (or none) */
.bubble-box.feature-bubble.compact h3::after {
    height: 1px;
    width: 28px;
    background: rgba(255,255,255,0.05);
    border-radius: 1px;
}

/* Grid layout for multiple bubble boxes */
.bubble-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0;
}

/* Feature box variation */
.feature-bubble {
    display: flex;
    flex-direction: column;
}

/* Game-specific bubble variations */
.game-bubble {
    border-left: 4px solid transparent;
}

.game-bubble.minecraft {
    border-left-color: #62cb67; /* Minecraft green */
}

.game-bubble.rust {
    border-left-color: #ce422b; /* Rust orange/red */
}

.game-bubble.ark {
    border-left-color: #3498db; /* ARK blue */
}

.game-bubble.terraria {
    border-left-color: #9b59b6; /* Terraria purple */
}

/* Testimonial bubble style: quote centered, author below */
.testimonial-bubble {
    font-style: italic;
    position: relative; /* establish local stacking context */
    z-index: 2; /* bring testimonial above the bubble base background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    padding-bottom: 56px; /* leave room for anchored author */
    min-height: 160px; /* room for decorative quote */
    box-sizing: border-box;
    text-align: center;
    gap: 12px;
    overflow: visible; /* allow soft aura and quote to breathe inside the bubble */
}

.testimonial-bubble p {
    margin: 0;
    z-index: 2; /* keep text above decorative quote */
    max-width: 760px;
}

.testimonial-bubble .quote-text {
    margin: 0 0 18px 0;
    font-style: italic;
    z-index: 2;
    color: var(--white);
    max-width: 760px;
    text-align: center;
    display: block;
    font-size: 15px;
    line-height: 1.45;
    hyphens: auto;
    word-break: break-word;
}

.testimonial-bubble::before {
    /* decorative quote: firmly place at the top-left inside the bubble */
    content: '"';
    position: absolute;
    top: 10px; /* use fixed offset for consistent placement */
    left: 8px; /* nudge slightly left to better align with aura */
    transform: none;
    font-size: 84px; /* slightly reduced so it's less dominant */
    line-height: 1;
    /* lower glyph opacity so it's decorative, not distracting */
    color: rgba(79, 33, 183, 0.03);
    font-family: Georgia, serif;
    pointer-events: none;
    z-index: 1; /* sit above aura but below the main text */
}

/* Inner purple aura that sits behind the decorative quote and content but within the bubble */
.testimonial-bubble .aura {
    position: absolute;
    inset: -6px; /* extend slightly under the bubble border so glow reaches the rounded corner */
    /* soften the aura: lower opacities and move the focal point further left */
    background: radial-gradient(circle at 4% 12%, rgba(107,63,255,0.08), rgba(107,63,255,0.04) 30%, rgba(107,63,255,0.01) 55%, transparent 78%);
    filter: blur(28px);
    z-index: 0; /* sit behind the decorative quote but above the bubble background */
    pointer-events: none;
    border-radius: 16px; /* match .bubble-box radius to avoid a visible ring */
}

/* Allow the glow to extend slightly beyond the inner content without being clipped
   while keeping the bubble border-radius. This relaxes the global overflow:hidden
   applied to generic .bubble-box but only for testimonial bubbles. */
.bubble-box.testimonial-bubble {
    overflow: visible !important;
    background-clip: padding-box; /* ensure background doesn't paint under border */
    border-radius: 16px;
}

/* subtle top overlay for visual depth (keeps decorative quote readable) */
.testimonial-bubble::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    /* make the subtle top overlay even softer to avoid an obvious band */
    background: linear-gradient(180deg, rgba(79,33,183,0.02), rgba(79,33,183,0));
    pointer-events: none;
    z-index: 2; /* keep a subtle overlay above the aura but below text */
}

.testimonial-bubble .author {
    font-style: normal;
    display: block;
    text-align: center;
    margin-top: 8px;
    font-weight: 700;
    font-size: 13px;
    color: var(--accent-purple-light);
    z-index: 4; /* ensure author floats above decorative elements */
}


.faq-bubble .question {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--accent-purple-mid);
}

.faq-bubble .answer {
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bubble-grid {
        grid-template-columns: 1fr;
    }
    
    .bubble-box {
        padding: 16px;
    }
}

/* Compact feature boxes */
.compact-features {
    gap: 16px;
}

.bubble-box.feature-bubble.compact {
    padding: 16px 20px;
    margin-bottom: 16px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bubble-box.feature-bubble.compact h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.bubble-box.feature-bubble.compact p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.9;
}

.bubble-box.feature-bubble.compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Responsive adjustments for compact features */
@media (max-width: 768px) {
    .compact-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .bubble-box.feature-bubble.compact {
        padding: 14px 16px;
    }
    
    .bubble-box.feature-bubble.compact h3 {
        font-size: 0.95rem;
    }
    
    .bubble-box.feature-bubble.compact p {
        font-size: 0.8rem;
    }
}