/**
 * Website Builder Vergleich - Toplist Styles
 */

/* Variables */
:root {
    --wbv-primary: #3b82f6;
    --wbv-primary-dark: #1e3a8a;
    --wbv-success: #22c55e;
    --wbv-warning: #f59e0b;
    --wbv-danger: #ef4444;
    --wbv-text: #1f2937;
    --wbv-text-light: #6b7280;
    --wbv-border: #e5e7eb;
    --wbv-bg: #f9fafb;
    --wbv-white: #ffffff;
    --wbv-radius: 8px;
    --wbv-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Top 3 Showcase */
.wbv-top3-showcase {
    background: var(--wbv-primary-dark);
    border-radius: var(--wbv-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.wbv-top3-header {
    text-align: center;
    margin-bottom: 20px;
}

.wbv-top3-badge {
    background: var(--wbv-primary);
    color: var(--wbv-white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.wbv-top3-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 15px;
    align-items: end;
}

.wbv-top3-item {
    background: var(--wbv-white);
    border-radius: var(--wbv-radius);
    padding: 20px;
    text-align: center;
}

.wbv-top3-item--featured {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.wbv-top3-item__logo {
    margin-bottom: 15px;
}

.wbv-top3-item__logo img {
    max-width: 120px;
    max-height: 50px;
    object-fit: contain;
}

.wbv-top3-item__rating {
    margin-bottom: 10px;
}

.wbv-top3-item__rating .wbv-rating-score {
    font-size: 24px;
    font-weight: bold;
    color: var(--wbv-text);
}

.wbv-top3-item__rating .wbv-rating-stars {
    color: var(--wbv-warning);
    font-size: 12px;
    display: block;
}

.wbv-top3-item__price {
    font-size: 12px;
    color: var(--wbv-text-light);
    margin-bottom: 15px;
}

.wbv-top3-item__cta {
    display: inline-block;
    background: var(--wbv-primary);
    color: var(--wbv-white);
    padding: 10px 20px;
    border-radius: var(--wbv-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.wbv-top3-item__cta:hover {
    background: var(--wbv-primary-dark);
    color: var(--wbv-white);
}

/* Provider List */
.wbv-toplist {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Provider Card */
.wbv-provider-card {
    display: grid;
    grid-template-columns: 50px 160px 1fr 150px 180px;
    gap: 15px;
    align-items: center;
    background: var(--wbv-white);
    border: 1px solid var(--wbv-border);
    border-radius: var(--wbv-radius);
    padding: 20px 20px 20px 15px;
    position: relative;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    cursor: pointer;
    min-height: 180px;
    contain: layout style;
}

.wbv-provider-card:hover {
    box-shadow: var(--wbv-shadow);
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* Rank 1 - Light yellow background */
.wbv-provider-card[data-rank="1"] {
    background: #fffdf0;
    border-color: #fdd835;
}

.wbv-provider-card[data-rank="1"] .wbv-logo-rating {
    background: #fffdf0;
}

.wbv-provider-card[data-rank="1"] .wbv-rank-badge {
    background: linear-gradient(135deg, #f5a623 0%, #e8970f 100%);
}

/* ==========================================================================
   BADGE SEAL (Round gold seal for #1 - "BESTE WAHL")
   ========================================================================== */

.wbv-badge-seal {
    position: absolute;
    right: -10px;
    top: -10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4860a 0%, #b8720a 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.wbv-badge-seal-middle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wbv-badge-seal-inner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5a623 0%, #e8970f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wbv-badge-seal-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.wbv-badge-seal-text span {
    display: block;
}

/* Card with seal - positioned top right, no special grid needed */
.wbv-provider-card.has-seal {
    overflow: visible;
}

/* ==========================================================================
   BADGE RIBBON (Banner for #2-5)
   ========================================================================== */

.wbv-badge-ribbon {
    position: absolute;
    top: 12px;
    left: -10px;
    padding: 6px 20px 6px 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    z-index: 15;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Right arrow shape */
.wbv-badge-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    right: -12px;
    border-style: solid;
    border-width: 14px 0 14px 12px;
    border-color: transparent transparent transparent inherit;
}

/* Bottom left fold shadow */
.wbv-badge-ribbon::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    border-style: solid;
    border-width: 0 10px 6px 0;
    border-color: transparent rgba(0, 0, 0, 0.25) transparent transparent;
}

.wbv-badge-ribbon-text {
    position: relative;
    z-index: 1;
}

/* Card with ribbon needs slight left margin */
.wbv-provider-card.has-ribbon {
    margin-left: 10px;
}

/* ==========================================================================
   OLD BADGE STYLE (kept for backwards compatibility)
   ========================================================================== */

.wbv-provider-badge {
    position: absolute;
    top: -1px;
    left: 20px;
    color: var(--wbv-white);
    padding: 4px 12px;
    border-radius: 0 0 6px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Rank Badge */
.wbv-provider-card__rank {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wbv-rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #3b82f6;
    border-radius: 8px;
}

.wbv-rank-badge__number {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

/* Legacy rank number (fallback) */
.wbv-rank-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--wbv-primary);
}

/* Logo */
.wbv-provider-card__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    height: 170px;
    min-height: 170px;
    max-height: 170px;
    padding-top: 5px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.wbv-provider-card__logo img {
    width: 140px;
    height: 60px;
    min-width: 140px;
    min-height: 60px;
    max-width: 140px;
    max-height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Rating box under logo */
.wbv-logo-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #ffffff;
    padding: 6px 12px 4px;
    border-radius: 8px;
    text-align: center;
    width: 120px;
    height: 90px;
    min-height: 90px;
    max-height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.wbv-logo-rating__score {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    height: 24px;
    flex-shrink: 0;
}

.wbv-logo-rating .wbv-stars {
    display: flex;
    gap: 2px;
    height: 18px;
    flex-shrink: 0;
}

.wbv-logo-rating .wbv-star {
    font-size: 14px;
    color: #f5a623;
    width: 14px;
    height: 14px;
    line-height: 1;
}

.wbv-logo-rating__votes {
    font-size: 11px;
    color: #6b7280;
    height: 14px;
    line-height: 14px;
    flex-shrink: 0;
}

/* Rating status in logo-rating - always reserve space to prevent layout shift */
.wbv-logo-rating .wbv-rating-status {
    display: block;
    font-size: 10px;
    min-height: 12px;
    line-height: 12px;
    flex-shrink: 0;
}

/* Content */
.wbv-provider-card__content {
    min-width: 0;
}

.wbv-provider-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--wbv-text);
}

.wbv-provider-headline {
    font-size: 14px;
    font-weight: 600;
    color: var(--wbv-text);
    margin: 0 0 10px 0;
}

.wbv-provider-description {
    font-size: 13px;
    color: var(--wbv-text-light);
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.wbv-provider-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: var(--wbv-text-light);
}

.wbv-provider-features li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 4px;
}

.wbv-provider-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--wbv-success);
    font-weight: bold;
}

/* Rating / Testurteil */
.wbv-provider-card__rating {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wbv-rating-score {
    display: block;
}

.wbv-rating-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--wbv-success);
}

.wbv-rating-stars {
    color: var(--wbv-warning);
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

.wbv-rating-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--wbv-text-light);
    text-transform: uppercase;
    margin-top: 5px;
}

/* Interactive Star Rating in Toplist */
.wbv-provider-card__rating .wbv-rating-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
}

.wbv-provider-card__rating .wbv-stars {
    display: flex;
    gap: 2px;
    font-size: 16px;
}

.wbv-provider-card__rating .wbv-stars--interactive {
    cursor: pointer;
}

.wbv-provider-card__rating .wbv-stars--interactive .wbv-star {
    transition: transform 0.1s, color 0.1s;
}

.wbv-provider-card__rating .wbv-stars--interactive .wbv-star:hover {
    transform: scale(1.15);
}

.wbv-provider-card__rating .wbv-star-filled {
    color: var(--wbv-warning);
}

.wbv-provider-card__rating .wbv-star-empty {
    color: #d1d5db;
}

.wbv-provider-card__rating .wbv-votes {
    font-size: 11px;
    color: var(--wbv-text-light);
}

.wbv-provider-card__rating .wbv-rating-status {
    font-size: 10px;
    margin-top: 3px;
    font-weight: 500;
}

.wbv-provider-card__rating .wbv-rating-status--preview {
    color: var(--wbv-primary);
}

.wbv-provider-card__rating .wbv-rating-status--saving {
    color: var(--wbv-text-light);
}

.wbv-provider-card__rating .wbv-rating-status--success {
    color: var(--wbv-success);
}

.wbv-provider-card__rating .wbv-rating-status--error {
    color: var(--wbv-danger);
}

.wbv-provider-card__rating .wbv-rating-status--voted {
    color: var(--wbv-text-light);
    font-style: italic;
}

.wbv-provider-card__rating .wbv-testurteil {
    transform: scale(0.8);
    transform-origin: center center;
}

/* Testurteil Badge */
.wbv-testurteil {
    width: 110px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    text-align: center;
    flex-shrink: 0;
}

.wbv-testurteil__header {
    padding: 12px 10px;
}

.wbv-testurteil__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #555;
    text-transform: uppercase;
}

.wbv-testurteil__flag {
    display: flex;
    width: 60%;
    height: 3px;
    margin: 0 auto 8px;
    border-radius: 2px;
    overflow: hidden;
}

.wbv-testurteil__flag span:nth-child(1) {
    background: #000000;
    flex: 1;
}

.wbv-testurteil__flag span:nth-child(2) {
    background: #dd0000;
    flex: 1;
}

.wbv-testurteil__flag span:nth-child(3) {
    background: #ffcc00;
    flex: 1;
}

.wbv-testurteil__body {
    padding: 8px 10px 12px;
}

.wbv-testurteil__note {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.wbv-testurteil__date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.wbv-testurteil__verdict {
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.wbv-testurteil__verdict--sehr-gut {
    background: #fdd835;
}

.wbv-testurteil__verdict--gut {
    background: #ffee58;
}

.wbv-testurteil__verdict--befriedigend {
    background: #ffa726;
}

.wbv-testurteil__verdict--ausreichend {
    background: #ff7043;
    color: #fff;
}

.wbv-testurteil__verdict--mangelhaft {
    background: #ef5350;
    color: #fff;
}

/* Medal Colors based on Rank - Flat Design */
.wbv-testurteil--gold {
    border-color: #fdd835;
}

.wbv-testurteil--gold .wbv-testurteil__header {
    background: #fdd835;
}

.wbv-testurteil--gold .wbv-testurteil__label {
    color: #333;
}

.wbv-testurteil--gold .wbv-testurteil__verdict {
    background: #fff9c4;
}

.wbv-testurteil--silver {
    border-color: #b0bec5;
}

.wbv-testurteil--silver .wbv-testurteil__header {
    background: #b0bec5;
}

.wbv-testurteil--silver .wbv-testurteil__label {
    color: #333;
}

.wbv-testurteil--silver .wbv-testurteil__verdict {
    background: #eceff1;
}

.wbv-testurteil--bronze {
    border-color: #d4a574;
}

.wbv-testurteil--bronze .wbv-testurteil__header {
    background: #d4a574;
}

.wbv-testurteil--bronze .wbv-testurteil__label {
    color: #333;
}

.wbv-testurteil--bronze .wbv-testurteil__verdict {
    background: #f5e6d3;
}

/* CTA */
.wbv-provider-card__cta {
    text-align: center;
}

.wbv-provider-price {
    margin-bottom: 10px;
}

.wbv-price-amount {
    font-size: 20px;
    font-weight: bold;
    color: var(--wbv-text);
}

.wbv-price-info {
    display: block;
    font-size: 12px;
    color: var(--wbv-text-light);
}

.wbv-cta-button {
    display: inline-block;
    background: var(--wbv-primary);
    color: var(--wbv-white);
    padding: 12px 24px;
    border-radius: var(--wbv-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    white-space: nowrap;
}

.wbv-cta-button:hover {
    background: var(--wbv-primary-dark);
    color: var(--wbv-white);
}

/* More Info Link */
.wbv-more-info-link {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #3b82f6 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    cursor: pointer;
}

.wbv-more-info-link:hover,
.wbv-more-info-link:focus,
.wbv-more-info-link:active {
    color: #3b82f6 !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   RESPONSIVE - TABLET (max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
    .wbv-provider-card {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: center;
        max-width: 100%;
        overflow: hidden;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 20px 15px;
        min-height: auto;
        gap: 15px;
    }

    .wbv-provider-card__cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-top: 15px;
        border-top: 1px solid var(--wbv-border);
        margin-top: 10px;
        width: 100%;
    }

    .wbv-top3-grid {
        grid-template-columns: 1fr;
    }

    .wbv-top3-item--featured {
        transform: none;
        order: -1;
    }

    /* All card sections - full width, stacked */
    .wbv-provider-card__rank,
    .wbv-provider-card__logo,
    .wbv-provider-card__content,
    .wbv-provider-card__rating {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        flex: none !important;
    }

    /* Rank badge */
    .wbv-provider-card__rank {
        display: flex;
        justify-content: center;
        margin-bottom: 5px;
    }

    .wbv-rank-badge {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .wbv-rank-badge__number {
        font-size: 18px;
    }

    /* Logo section - flexible height */
    .wbv-provider-card__logo {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 10px 0;
        gap: 10px;
    }

    .wbv-provider-card__logo img {
        width: auto !important;
        height: auto !important;
        min-width: auto !important;
        min-height: auto !important;
        max-width: 160px !important;
        max-height: 70px !important;
    }

    /* Logo rating box - flexible */
    .wbv-logo-rating {
        width: auto !important;
        min-width: 130px;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 10px 20px;
        gap: 6px;
    }

    .wbv-logo-rating__score {
        height: auto;
        font-size: 24px;
    }

    .wbv-logo-rating .wbv-stars {
        height: auto;
    }

    .wbv-logo-rating__votes {
        height: auto;
        line-height: 1.4;
        font-size: 12px;
    }

    .wbv-logo-rating .wbv-rating-status {
        min-height: auto;
    }

    /* Content section - FULL WIDTH TEXT */
    .wbv-provider-card__content {
        padding: 10px 15px !important;
        text-align: center;
        width: 100% !important;
        max-width: 100% !important;
    }

    .wbv-provider-name {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .wbv-provider-headline {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .wbv-provider-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .wbv-provider-features {
        text-align: left;
        display: inline-block;
        margin: 10px auto 0;
    }

    .wbv-provider-features li {
        font-size: 14px;
        margin-bottom: 6px;
    }

    /* Rating/Testurteil section - centered, after content */
    .wbv-provider-card__rating {
        display: flex !important;
        justify-content: center !important;
        padding: 10px 0;
    }

    .wbv-provider-card__rating .wbv-testurteil {
        transform: scale(0.85);
        transform-origin: center center;
    }

    /* Testurteil badge */
    .wbv-testurteil {
        width: auto;
        min-width: 100px;
        max-width: 120px;
    }

    .wbv-testurteil__note {
        font-size: 36px;
    }

    /* Badge seal */
    .wbv-badge-seal {
        width: 55px;
        height: 55px;
        right: 10px;
        top: 10px;
    }

    .wbv-badge-seal-middle {
        width: 46px;
        height: 46px;
    }

    .wbv-badge-seal-inner {
        width: 38px;
        height: 38px;
    }

    .wbv-badge-seal-text {
        font-size: 7px;
    }

    /* Badge ribbon */
    .wbv-badge-ribbon {
        left: 0;
        border-radius: 0 0 8px 0;
        padding: 8px 16px;
        font-size: 11px;
    }

    .wbv-badge-ribbon::before,
    .wbv-badge-ribbon::after {
        display: none;
    }

    .wbv-provider-card.has-ribbon {
        margin-left: 0;
        padding-top: 45px;
    }

    /* CTA section */
    .wbv-cta-button {
        width: 100%;
        max-width: 300px;
        padding: 14px 24px;
        font-size: 16px;
    }

    .wbv-provider-price {
        margin-bottom: 10px;
    }

    .wbv-price-amount {
        font-size: 20px;
    }

    .wbv-price-info {
        font-size: 13px;
    }

    /* Deal countdown */
    .wbv-deal-countdown {
        max-width: 300px;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {
    .wbv-provider-card {
        padding: 15px 12px;
        gap: 12px;
    }

    .wbv-provider-card__content {
        padding: 8px 10px !important;
    }

    .wbv-provider-name {
        font-size: 18px;
    }

    .wbv-provider-headline {
        font-size: 14px;
    }

    .wbv-provider-description {
        font-size: 13px;
    }

    .wbv-provider-features li {
        font-size: 13px;
    }

    .wbv-provider-card__rating .wbv-testurteil {
        transform: scale(0.75);
    }

    .wbv-testurteil__note {
        font-size: 32px;
    }

    .wbv-badge-seal {
        width: 48px;
        height: 48px;
        right: 8px;
        top: 8px;
    }

    .wbv-badge-seal-middle {
        width: 40px;
        height: 40px;
    }

    .wbv-badge-seal-inner {
        width: 32px;
        height: 32px;
    }

    .wbv-badge-seal-text {
        font-size: 6px;
    }

    .wbv-cta-button {
        max-width: 280px;
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ==========================================================================
   CTA WRAPPER & DEAL COUNTDOWN
   ========================================================================== */

.wbv-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.wbv-deal-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: 6px;
    padding: 6px 8px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.25);
    border-radius: 4px;
    font-size: 11px;
    color: #dc3545;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.wbv-deal-countdown__time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wbv-deal-countdown .wbv-deal-timer {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 12px;
    font-weight: 700;
    background: #dc3545;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.wbv-deal-countdown .wbv-deal-text {
    font-size: 10px;
}

.wbv-deal-countdown strong {
    color: #dc3545;
    font-size: 10px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .wbv-deal-countdown {
        padding: 5px 6px;
    }

    .wbv-deal-countdown .wbv-deal-timer {
        font-size: 11px;
    }

    .wbv-deal-countdown strong {
        font-size: 9px;
    }
}

/* ==========================================================================
   LAZY LOADING SECTIONS
   ========================================================================== */

/* Lazy section wrapper - visible by default for no-JS fallback */
.wbv-lazy-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* When JS is enabled, hide sections until they're in view */
.js .wbv-lazy-section:not(.wbv-lazy-loaded) {
    opacity: 0;
    transform: translateY(20px);
}

/* When section becomes visible */
.wbv-lazy-section.wbv-lazy-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Skeleton placeholder for loading state */
.wbv-lazy-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: wbv-skeleton-loading 1.5s infinite;
    border-radius: var(--wbv-radius);
    min-height: 200px;
}

@keyframes wbv-skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Lazy loaded images */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.wbv-img-loaded {
    opacity: 1;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .wbv-lazy-section {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .wbv-lazy-placeholder {
        animation: none;
    }

    img[data-src] {
        transition: none;
    }
}
