/**
 * Volaro v3 — reusable type + glass (Padel in Motion / divider-v2)
 * See documentation/volaro/label-main-caption-style.md
 */

:root {
    --v3-type-lime: #c4e538;
    --v3-type-lime-muted: #84cc16;
    --v3-type-on-dark: #f8fafc;
    --v3-type-subtitle: rgba(255, 255, 255, 0.65);
    --v3-type-label: rgba(255, 255, 255, 0.45);
    --v3-type-caption: rgba(255, 255, 255, 0.4);
}

/* —— Main display (hero lime headline) —— */
.v3-type-main {
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 0.82;
    color: var(--v3-type-lime);
    font-size: clamp(1.75rem, 5vw, 2.75rem);
}

.v3-type-main--display {
    line-height: 0.75;
    font-size: clamp(2.5rem, 8vw, 5rem);
}

.v3-type-main--compact {
    font-size: clamp(1.35rem, 4vw, 2rem);
    line-height: 0.88;
}

/* —— Subtitle (supporting sentence under main) —— */
.v3-type-subtitle {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--v3-type-subtitle);
}

@media (min-width: 768px) {
    .v3-type-subtitle {
        font-size: 0.9rem;
    }
}

.v3-type-subtitle--md {
    font-size: 0.95rem;
    font-weight: 600;
}

/* —— Label (uppercase eyebrow / section kicker) —— */
.v3-type-label {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--v3-type-lime-muted);
    line-height: 1.2;
}

.v3-type-label--muted {
    color: var(--v3-type-label);
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* —— Caption (meta, date, fine print) —— */
.v3-type-caption {
    margin: 0;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--v3-type-caption);
    line-height: 1.3;
}

.v3-type-caption--normal {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.65rem;
    font-weight: 500;
}

/* Light surfaces (cards on white / lime bands) */
body:not(.dark-theme) .v3-type-main {
    color: var(--v3-padel-dark, #3f6212);
}

body:not(.dark-theme) .v3-type-subtitle {
    color: #475569;
}

body:not(.dark-theme) .v3-type-label {
    color: var(--v3-padel-green, #4d7c0f);
}

body:not(.dark-theme) .v3-type-caption {
    color: #64748b;
}

/* Legacy aliases (landing divider-v2) */
.divider-hero-title {
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 0.82;
    color: var(--v3-type-lime);
    font-size: clamp(1.75rem, 5vw, 2.75rem);
}

.divider-section-v2 .divider-hero-title {
    line-height: 0.75;
    font-size: clamp(2.5rem, 8vw, 5rem);
}

.divider-v2-subtitle {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--v3-type-subtitle);
}

.divider-section-v2 .divider-v2-subtitle {
    color: var(--v3-type-subtitle);
}

.divider-v2-caption {
    margin: 0;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--v3-type-caption);
}

.divider-section-v2 .divider-v2-caption {
    color: var(--v3-type-caption);
}

/* —— Glass panel —— */
.v3-glass {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 1.25rem;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
}

.v3-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.42) 0%,
        rgba(255, 255, 255, 0.1) 35%,
        rgba(132, 204, 22, 0.35) 70%,
        rgba(255, 255, 255, 0.08) 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.v3-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 45%;
    border-radius: inherit;
    border-bottom-left-radius: 60%;
    border-bottom-right-radius: 60%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.v3-glass > * {
    position: relative;
    z-index: 1;
}

.v3-glass--radius-md {
    border-radius: 1rem;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .v3-glass {
        background: rgba(15, 23, 42, 0.9);
    }
}
