/**
 * Bonus Cards Styles - Mockup-aligned layout for single bonus pages.
 *
 * @package Bookmaker_Manager
 */

:root {
    --bpc-bg-main: #0b0e14;
    --bpc-bg-surface: #151a23;
    --bpc-text: #ffffff;
    --bpc-muted: #8a93a6;
    --bpc-accent: #00e574;
    --bpc-accent-h: #00c462;
    --bpc-border: #262d3d;
}

.hbs-wrapper {
    max-width: 1600px;
    margin: 0 auto 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color, var(--bpc-border));
    border-radius: 28px;
    background: var(--bg-surface, var(--bpc-bg-surface));
    color: var(--text-main, var(--bpc-text));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hbs-wrapper::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 116, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hbs-card-main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.hbs-brand-side {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color, var(--bpc-border));
}

.hbs-brand-stack {
    width: 100%;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hbs-brand-logo-link {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hbs-brand-logo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.hbs-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: rgba(255, 255, 255, 0.96);
    padding: 10px;
}

.hbs-brand-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(18, 39, 38, 0.98) 0%, rgba(20, 28, 34, 0.98) 100%);
    color: var(--text-main, var(--bpc-text));
    font-size: 48px;
    font-weight: 900;
}

.hbs-brand-name {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-main, var(--bpc-text));
}

.hbs-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 18px;
    color: #ffc107;
    font-size: 14px;
}

.hbs-rating span {
    margin-left: 4px;
    color: var(--text-muted, var(--bpc-muted));
    font-weight: 700;
}

.hbs-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0, 229, 116, 0.12);
    color: var(--accent-color, var(--bpc-accent));
    font-size: 14px;
    font-weight: 700;
}

.hbs-offer-side {
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
}

.hbs-type-label {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color, var(--bpc-accent));
}

.hbs-title {
    margin: 0 0 16px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-main, var(--bpc-text));
}

.hbs-desc {
    margin: 0;
    max-width: 720px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted, var(--bpc-muted));
}

.hbs-stats-flex {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.hbs-stat-item {
    min-height: 96px;
    padding: 16px 18px;
    border: 1px solid var(--border-color, var(--bpc-border));
    border-radius: 16px;
    background: var(--bg-main, var(--bpc-bg-main));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}

.hbs-stat-lbl {
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted, var(--bpc-muted));
}

.hbs-stat-val {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    color: var(--text-main, var(--bpc-text));
}

.hbs-stat-item--accent .hbs-stat-val {
    color: var(--accent-color, var(--bpc-accent));
}

.hbs-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    margin-top: 24px;
}

.hbs-promo-group {
    flex: 1 1 240px;
    max-width: 320px;
}

.hbs-promo-label {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted, var(--bpc-muted));
}

.hbs-promo-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px dashed var(--accent-color, var(--bpc-accent));
    border-radius: 14px;
    background: rgba(0, 229, 116, 0.08);
    color: var(--accent-color, var(--bpc-accent));
    cursor: pointer;
    font: inherit;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hbs-promo-box:hover {
    background: rgba(0, 229, 116, 0.14);
    border-color: var(--accent-hover, var(--bpc-accent-h));
}

.hbs-code-val {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.hbs-copy-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
}

.hbs-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    padding: 16px 24px;
    border: none;
    border-radius: 14px;
    background: var(--accent-color, var(--bpc-accent));
    color: #02160d !important;
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 24px rgba(0, 229, 116, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hbs-cta-btn:hover {
    background: var(--accent-hover, var(--bpc-accent-h));
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 229, 116, 0.24);
}

.hbs-cta-btn.btn-support {
    background: rgba(0, 229, 116, 0.12);
    color: var(--accent-color, var(--bpc-accent)) !important;
    border: 1px solid var(--accent-color, var(--bpc-accent));
    box-shadow: none;
}

.hbs-cta-btn.btn-support:hover {
    background: rgba(0, 229, 116, 0.2);
    box-shadow: none;
}

.hbs-cta-btn.btn-tourn {
    background: rgba(168, 85, 247, 0.14);
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.34);
    box-shadow: none;
}

.hbs-cta-btn.btn-tourn:hover {
    background: rgba(168, 85, 247, 0.22);
    box-shadow: none;
}

.hbs-terms-short {
    margin-top: 16px;
    max-width: 720px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted, var(--bpc-muted));
}

.hbs-terms {
    position: relative;
    z-index: 1;
    padding: 20px 24px 24px;
    border-top: 1px solid var(--border-color, var(--bpc-border));
    background: rgba(0, 0, 0, 0.18);
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

.hbs-terms strong {
    color: var(--text-main, var(--bpc-text));
}

.hbs-terms p,
.hbs-terms ul,
.hbs-terms ol {
    margin-top: 0;
}

.hbs-terms p:last-child,
.hbs-terms ul:last-child,
.hbs-terms ol:last-child {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .hbs-card-main {
        flex-direction: row;
        align-items: stretch;
    }

    .hbs-brand-side {
        width: 280px;
        padding: 42px 32px;
        border-right: 1px solid var(--border-color, var(--bpc-border));
        border-bottom: none;
    }

    .hbs-offer-side {
        padding: 42px 48px;
    }

    .hbs-title {
        font-size: 44px;
    }

    .hbs-desc {
        font-size: 17px;
    }

    .hbs-stats-flex {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .hbs-wrapper {
        border-radius: 22px;
    }

    .hbs-brand-logo-link {
        width: 88px;
        height: 88px;
    }

    .hbs-brand-logo-fallback {
        font-size: 40px;
    }

    .hbs-title {
        font-size: 26px;
    }

    .hbs-stat-val {
        font-size: 17px;
    }

    .hbs-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hbs-promo-group,
    .hbs-cta-btn {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 479px) {
    .hbs-brand-side,
    .hbs-offer-side,
    .hbs-terms {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hbs-stats-flex {
        grid-template-columns: 1fr;
    }

    .hbs-title {
        font-size: 22px;
    }

    .hbs-desc {
        font-size: 15px;
    }
}
