/**
 * Avalehe stiilid.
 * Hero, tracks, kategooriad, populaarsed, kasud, tunnistused, uudiskiri.
 */

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

.bubblos-hero {
    position: relative;
    min-height: 60vh;
    max-height: 800px;
    height: 60vh;
    overflow: hidden;
    color: var(--wp--preset--color--vintage-cream);
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    
}

@media (max-width: 768px) {
    .bubblos-hero {
        min-height: 60vh;
        height: auto;
        max-height: none;
    }
}

.bubblos-hero__media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bubblos-hero__poster,
.bubblos-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.bubblos-hero__video {
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 2;
}

.bubblos-hero__video.is-playing {
    opacity: 1;
}

.bubblos-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(
            180deg,
            rgba(26, 52, 56, 0.2) 0%,
            rgba(26, 52, 56, 0.55) 60%,
            rgba(26, 52, 56, 0.75) 100%
        );
}

.bubblos-hero__content {
    position: relative;
    z-index: 4;
    width: 100%;
    padding: 3rem 1.5rem 4rem;
}

.bubblos-hero__inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0;
}

.bubblos-hero__eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
    background: rgba(245, 235, 210, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(245, 235, 210, 0.25);
    border-radius: var(--bubblos-radius-sm);
    font-family: var(--wp--preset--font-family--posada);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--vintage-cream);
    text-transform: uppercase;
}

.bubblos-hero__title {
    margin: 0 0 1rem;
    font-family: var(--wp--preset--font-family--posada);
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--wp--preset--color--vintage-cream);
    line-height: 1.05;
    letter-spacing: 0.005em;
    max-width: 800px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.bubblos-hero__subtitle {
    margin: 0 0 1.75rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(245, 235, 210, 0.9);
    max-width: 620px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .bubblos-hero__subtitle {
        font-size: 1.15rem;
    }
}

/* ───────────────────────────────────────────────────────────────────
 * Hero CTA-d
 * ─────────────────────────────────────────────────────────────────── */

.bubblos-hero__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.bubblos-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.6rem;
    font-family: var(--wp--preset--font-family--posada);
    font-size: 1rem;
    letter-spacing: 0.05em;
    border-radius: var(--bubblos-radius-md);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.bubblos-hero__cta--primary {
    background: var(--wp--preset--color--carnival-orange);
    color: var(--wp--preset--color--white);
}

.bubblos-hero__cta--primary:hover,
.bubblos-hero__cta--primary:focus-visible {
    background: var(--wp--preset--color--carnival-orange-dark);
    color: var(--wp--preset--color--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 136, 56, 0.35);
    outline: none;
}

.bubblos-hero__cta--secondary {
    background: var(--wp--preset--color--brass-gold);
    color: var(--wp--preset--color--deep-charcoal);
}

.bubblos-hero__cta--secondary:hover,
.bubblos-hero__cta--secondary:focus-visible {
    background: var(--wp--preset--color--brass-dark);
    color: var(--wp--preset--color--vintage-cream);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 111, 58, 0.4);
    outline: none;
}

.bubblos-hero__cta--ghost {
    background: transparent;
    color: var(--wp--preset--color--vintage-cream);
    border-color: rgba(245, 235, 210, 0.5);
}

.bubblos-hero__cta--ghost:hover,
.bubblos-hero__cta--ghost:focus-visible {
    background: rgba(245, 235, 210, 0.12);
    border-color: var(--wp--preset--color--vintage-cream);
    color: var(--wp--preset--color--vintage-cream);
    transform: translateY(-2px);
    outline: none;
}

/* ───────────────────────────────────────────────────────────────────
 * Avalehe sektsioonid (üldine — kasutab common kanvasse)
 * ─────────────────────────────────────────────────────────────────── */

.bubblos-section {
    padding: 2rem 1rem;
}

.bubblos-section--alt {
    background: var(--wp--preset--color--circus-teal);
    color: var(--wp--preset--color--vintage-cream);
}

.bubblos-section--alt h2,
.bubblos-section--alt h3 {
    color: var(--wp--preset--color--vintage-cream);
}

.bubblos-section__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.bubblos-section__eyebrow {
    text-align: center;
    font-family: var(--wp--preset--font-family--posada);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--wp--preset--color--brass-dark);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.bubblos-section--alt .bubblos-section__eyebrow {
    color: var(--wp--preset--color--brass-gold);
}

.bubblos-section__title {
    margin: 0 0 0.75rem;
    text-align: center;
    font-family: var(--wp--preset--font-family--posada);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--wp--preset--color--deep-charcoal);
}

.bubblos-section__sub {
    text-align: center;
    color: var(--wp--preset--color--body-text-light);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.bubblos-section--alt .bubblos-section__sub {
    color: rgba(245, 235, 210, 0.85);
}

/* ───────────────────────────────────────────────────────────────────
 * Tracks (Kohale/Rent/Osta)
 * ─────────────────────────────────────────────────────────────────── */

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

.bubblos-track {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2rem 1.75rem;
    background: var(--wp--preset--color--vintage-cream);
    border-radius: var(--bubblos-radius-lg);
    border-top: 4px solid;
    text-decoration: none;
    color: var(--wp--preset--color--body-text);
    box-shadow: var(--bubblos-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bubblos-track:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26, 52, 56, 0.15);
    color: var(--wp--preset--color--body-text);
}

.bubblos-track--kohale { border-top-color: var(--wp--preset--color--circus-teal-dark); }
.bubblos-track--rent   { border-top-color: var(--wp--preset--color--carnival-orange); }
.bubblos-track--osta   { border-top-color: var(--wp--preset--color--sage-green); }

.bubblos-track__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.05);
}

.bubblos-track__tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: var(--bubblos-radius-sm);
    font-family: var(--wp--preset--font-family--posada);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    align-self: flex-start;
}

.bubblos-track__tag--kohale {
    background: var(--wp--preset--color--circus-teal-dark);
    color: var(--wp--preset--color--vintage-cream);
}

.bubblos-track__tag--rent {
    background: var(--wp--preset--color--carnival-orange);
    color: var(--wp--preset--color--white);
}

.bubblos-track__tag--osta {
    background: var(--wp--preset--color--sage-green);
    color: var(--wp--preset--color--deep-charcoal);
}

.bubblos-track__title {
    margin: 0;
    font-family: var(--wp--preset--font-family--posada);
    font-size: 1.5rem;
    color: var(--wp--preset--color--deep-charcoal);
}

.bubblos-track__desc {
    margin: 0 0 0.5rem;
    line-height: 1.55;
    color: var(--wp--preset--color--body-text);
}

.bubblos-track__from {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed var(--bubblos-border);
    font-family: var(--wp--preset--font-family--posada);
    font-size: 1rem;
    color: var(--wp--preset--color--body-text);
}

.bubblos-track__from strong {
    font-size: 1.3rem;
    color: var(--wp--preset--color--carnival-orange-dark);
}

/* ───────────────────────────────────────────────────────────────────
 * Kategooriad
 * ─────────────────────────────────────────────────────────────────── */

.bubblos-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.bubblos-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    background: var(--wp--preset--color--vintage-cream);
    border-radius: var(--bubblos-radius-lg);
    text-decoration: none;
    text-align: center;
    color: var(--wp--preset--color--body-text);
    box-shadow: var(--bubblos-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bubblos-cat-card:hover {
    transform: translateY(-4px);
    color: var(--wp--preset--color--carnival-orange-dark);
    box-shadow: 0 12px 32px rgba(26, 52, 56, 0.15);
}

.bubblos-cat-card__media {
    width: 80px;
    height: 80px;
    background: var(--wp--preset--color--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--wp--preset--color--brass-gold);
}

.bubblos-cat-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bubblos-cat-card__name {
    margin: 0;
    font-family: var(--wp--preset--font-family--posada);
    font-size: 1.25rem;
    color: var(--wp--preset--color--deep-charcoal);
    letter-spacing: 0.02em;
}

.bubblos-cat-card__count {
    font-size: 0.85rem;
    color: var(--wp--preset--color--body-text-light);
}

/* ───────────────────────────────────────────────────────────────────
 * Tootekaardid (featured, related, archive)
 * ─────────────────────────────────────────────────────────────────── */

.bubblos-featured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;

    margin: 0 auto;
   
}

.bubblos-prod-card {
    display: flex;
    flex-direction: column;
    background: var(--wp--preset--color--vintage-cream);
    border-radius: var(--bubblos-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--wp--preset--color--body-text);
    box-shadow: var(--bubblos-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bubblos-prod-card:hover {
    transform: translateY(-4px);
    color: var(--wp--preset--color--body-text);
    box-shadow: 0 12px 32px rgba(26, 52, 56, 0.15);
}

.bubblos-prod-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--wp--preset--color--white);
    overflow: hidden;
}

.bubblos-prod-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bubblos-prod-card:hover .bubblos-prod-card__img {
    transform: scale(1.04);
}

.bubblos-prod-card__tag {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    padding: 0.2rem 0.6rem;
    font-family: var(--wp--preset--font-family--posada);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    border-radius: var(--bubblos-radius-sm);
    text-transform: uppercase;
}

.bubblos-prod-card__tag--kohale {
    background: var(--wp--preset--color--circus-teal-dark);
    color: var(--wp--preset--color--vintage-cream);
}

.bubblos-prod-card__tag--rent {
    background: var(--wp--preset--color--carnival-orange);
    color: var(--wp--preset--color--white);
}

.bubblos-prod-card__tag--osta {
    background: var(--wp--preset--color--sage-green);
    color: var(--wp--preset--color--deep-charcoal);
}

.bubblos-prod-card__body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.bubblos-prod-card__name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--wp--preset--color--deep-charcoal);
    line-height: 1.3;
    min-height: 2.6em;
}

.bubblos-prod-card__footer {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.bubblos-prod-card__price {
    font-family: var(--wp--preset--font-family--posada);
    font-size: 1.15rem;
    color: var(--wp--preset--color--carnival-orange-dark);
}

.bubblos-prod-card__price small {
    font-size: 0.7rem;
    color: var(--wp--preset--color--body-text-light);
    font-family: var(--wp--preset--font-family--roboto);
    font-weight: 400;
}

/* ───────────────────────────────────────────────────────────────────
 * Kasud (statistika)
 * ─────────────────────────────────────────────────────────────────── */

.bubblos-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.bubblos-benefit {
    padding: 1.75rem 1rem;
    background: var(--wp--preset--color--vintage-cream);
    border: 1px dashed var(--wp--preset--color--brass-gold);
    border-radius: var(--bubblos-radius-md);
    text-align: center;
}

.bubblos-benefit__num {
    font-family: var(--wp--preset--font-family--posada);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--wp--preset--color--carnival-orange-dark);
}

.bubblos-benefit__label {
    font-size: 0.95rem;
    color: var(--wp--preset--color--body-text);
    line-height: 1.4;
}

/* ───────────────────────────────────────────────────────────────────
 * Kohahoidjad
 * ─────────────────────────────────────────────────────────────────── */

.bubblos-tagasiside-placeholder,
.bubblos-newsletter-placeholder {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.bubblos-tagasiside-placeholder p,
.bubblos-newsletter-placeholder p {
    background: rgba(0, 0, 0, 0.04);
    border-radius: var(--bubblos-radius-md);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
 * Dark section modifier (Miks meid valitakse, jne)
 * ═══════════════════════════════════════════════════════════════════ */

.bubblos-section--dark {
    position: relative;
    background: var(--wp--preset--color--deep-charcoal);
    color: var(--wp--preset--color--white);
    border-radius: var(--bubblos-radius-md);
    overflow: hidden;
    margin: 3rem auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.bubblos-section--dark .bubblos-section__inner {
    position: relative;
    z-index: 2;
}

.bubblos-section--dark .bubblos-section__eyebrow {
    color: var(--wp--preset--color--brass-gold);
}

.bubblos-section--dark .bubblos-section__title {
    color: var(--wp--preset--color--white);
}

.bubblos-section--dark .bubblos-section__sub {
    color: rgba(255, 255, 255, 0.8);
}

/* Mullid — sama keel mis page-header'is */
.bubblos-section__bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.bubblos-section__bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: bubblos-bubble-float 14s ease-in-out infinite;
}

.bubblos-section__bubble--1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -80px;
}

.bubblos-section__bubble--2 {
    width: 180px;
    height: 180px;
    bottom: -60px;
    left: -40px;
}

.bubblos-section__bubble--3 {
    width: 120px;
    height: 120px;
    top: 30%;
    left: 25%;
}

.bubblos-section__bubble--4 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    right: 30%;
}

@media (max-width: 768px) {
    .bubblos-section__bubble--1 { width: 200px; height: 200px; }
    .bubblos-section__bubble--3,
    .bubblos-section__bubble--4 { opacity: 0.5; }
}

/* ─── Benefits grid — 4 kõrvuti tumedal taustal ─── */
.bubblos-section--dark .bubblos-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
}

.bubblos-section--dark .bubblos-benefit {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
    background: transparent;
    border: none;
}

/* Vertikaalsed eraldajad numbrite vahel */
.bubblos-section--dark .bubblos-benefit + .bubblos-benefit::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.bubblos-section--dark .bubblos-benefit__num {
    font-family: var(--wp--preset--font-family--posada);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1;
    color: var(--wp--preset--color--brass-gold);
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.bubblos-section--dark .bubblos-benefit__label {
    font-family: var(--wp--preset--font-family--roboto);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
}

/* Mobiil — 2x2 grid */
@media (max-width: 700px) {
    .bubblos-section--dark .bubblos-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
    .bubblos-section--dark .bubblos-benefit:nth-child(2)::before {
        display: none; /* eemalda eraldaja 2. lahtri ette mobiilis */
    }
    .bubblos-section--dark .bubblos-benefit:nth-child(3),
    .bubblos-section--dark .bubblos-benefit:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        margin-top: 0.5rem;
        padding-top: 2rem;
    }
}