/**
 * Surfbericht frontend component.
 *
 * Design ownership:
 * - HTML contract: includes/SurfReportAI/SurfReportAiModule.php::shortcode()
 * - Visual styling: this file only
 * - Content and facts: cached Surfbericht AI output; no calculations occur here
 *
 * Adjust the custom properties below for a future redesign. Keep selectors scoped
 * to .sccft-surf-report so Elementor and theme styles cannot leak globally.
 */
.sccft-surf-report {
    --sccft-surf-report-color: #fff;
    --sccft-surf-report-muted-color: rgba(255, 255, 255, .82);
    --sccft-surf-report-notice-bg: rgba(255, 255, 255, .12);
    --sccft-surf-report-notice-border: rgba(255, 255, 255, .72);
    --sccft-surf-report-line-height: 1.6;
    --sccft-surf-report-day-gap: 1.45rem;
    --sccft-surf-report-section-gap: 1.75rem;

    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: var(--sccft-surf-report-color);
    background: transparent;
    font: inherit;
    text-align: left;
}

.sccft-surf-report *,
.sccft-surf-report *::before,
.sccft-surf-report *::after {
    box-sizing: border-box;
}

.sccft-surf-report__header {
    margin: 0 0 var(--sccft-surf-report-section-gap);
}

.sccft-surf-report__title,
.sccft-surf-report__day-title,
.sccft-surf-report__wetsuit-title {
    color: var(--sccft-surf-report-color) !important;
    font-family: inherit;
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
}

.sccft-surf-report__title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.12;
    font-weight: 700;
}

.sccft-surf-report__days {
    display: block;
    width: 100%;
}

.sccft-surf-report__day {
    width: 100%;
    margin: 0 0 var(--sccft-surf-report-day-gap);
    padding: 0;
}

.sccft-surf-report__day:last-child {
    margin-bottom: 0;
}

.sccft-surf-report__day-title,
.sccft-surf-report__wetsuit-title {
    margin: 0 0 .35rem;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.25;
    font-weight: 700;
}

.sccft-surf-report__day-text,
.sccft-surf-report__wetsuit-text,
.sccft-surf-report__empty-message {
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--sccft-surf-report-color) !important;
    font: inherit;
    font-size: inherit;
    line-height: var(--sccft-surf-report-line-height);
    overflow-wrap: anywhere;
}

.sccft-surf-report__wetsuit {
    width: 100%;
    margin: var(--sccft-surf-report-section-gap) 0 0;
    padding: 0;
}

.sccft-surf-report__meta {
    margin: 1.45rem 0 0;
    color: var(--sccft-surf-report-muted-color) !important;
    font-size: .88em;
    line-height: 1.45;
}

.sccft-surf-report__meta strong {
    color: inherit;
    font-weight: 700;
}

.sccft-surf-report__notice {
    margin: 0 0 1.4rem;
    padding: .8rem 1rem;
    color: var(--sccft-surf-report-color) !important;
    background: var(--sccft-surf-report-notice-bg);
    border-left: 4px solid var(--sccft-surf-report-notice-border);
    border-radius: 0 .35rem .35rem 0;
    line-height: 1.5;
}

.sccft-surf-report--empty {
    min-height: 1px;
}

@media (max-width: 767px) {
    .sccft-surf-report {
        --sccft-surf-report-line-height: 1.55;
        --sccft-surf-report-day-gap: 1.2rem;
        --sccft-surf-report-section-gap: 1.4rem;
    }

    .sccft-surf-report__title {
        font-size: clamp(1.6rem, 8vw, 2.1rem);
    }

    .sccft-surf-report__day-title,
    .sccft-surf-report__wetsuit-title {
        font-size: clamp(1.12rem, 5.5vw, 1.35rem);
    }

    .sccft-surf-report__meta {
        font-size: .82em;
    }
}

/* v0.7.5.9.2: explicit visual paragraph break between forecast days. */
.sccft-surf-report__day + .sccft-surf-report__day {
    margin-top: max(1.35rem, var(--sccft-surf-report-day-gap));
}

.sccft-surf-report__day-text {
    display: block;
}
