/**
 * AFCON 2027 attendance survey — Fan Pulse banner + modal.
 */

/* ── Fan Pulse banner (below season toolbar) ── */
.afcon-survey-strip {
    margin-top: 0;
}

.afcon-survey-strip[hidden] {
    display: none !important;
}

.afcon-survey-strip__panel[hidden] {
    display: none !important;
}

.afcon-survey-strip__panel--prompt,
.afcon-survey-strip__panel--going-yes,
.afcon-survey-strip__panel--done-no,
.afcon-survey-strip__panel--continue {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    min-height: 88px;
    padding: 20px 24px;
    border-radius: 16px;
    box-sizing: border-box;
}

.afcon-survey-strip__panel--prompt {
    background: linear-gradient(105deg, #006432 0%, #0a7a3e 38%, #3d8f2a 62%, #b89b3e 100%);
    box-shadow:
        0 6px 20px rgba(0, 100, 50, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    color: #fff;
}

.afcon-survey-strip__panel--prompt::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 48%),
        radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.afcon-survey-strip__panel--prompt::after {
    content: '🏆';
    position: absolute;
    right: 28%;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(72px, 12vw, 110px);
    line-height: 1;
    opacity: 0.12;
    pointer-events: none;
    filter: grayscale(0.2);
}

.afcon-survey-strip__panel--prompt > * {
    position: relative;
    z-index: 1;
}

.afcon-survey-strip__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1 1 240px;
    min-width: 0;
}

.afcon-survey-strip__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.afcon-survey-strip__live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.afcon-survey-strip__headline {
    margin: 0;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

.afcon-survey-strip__sub {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
}

.afcon-survey-strip__actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}

.afcon-survey-strip button {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    margin: 0;
}

.afcon-survey-strip__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.afcon-survey-strip__btn:active {
    transform: scale(0.98);
}

.afcon-survey-strip__btn--yes {
    background: #fff;
    color: #006432;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.afcon-survey-strip__btn--yes:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.afcon-survey-strip__btn--no {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.afcon-survey-strip__btn--no:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.85);
}

.afcon-survey-strip__btn--continue {
    background: #0f172a;
    color: #fff;
}

/* Going yes — celebration banner */
.afcon-survey-strip__panel--going-yes {
    background: linear-gradient(105deg, #006432 0%, #0a7a3e 45%, #b89b3e 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 100, 50, 0.22);
}

.afcon-survey-strip__panel--going-yes .afcon-survey-strip__text {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.afcon-survey-strip__emoji {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.afcon-survey-strip__link {
    flex-shrink: 0;
    min-height: 38px;
    padding: 0 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.afcon-survey-strip__link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.afcon-survey-strip__panel--done-no {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.afcon-survey-strip__panel--continue {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d;
}

.afcon-survey-strip__panel--continue .afcon-survey-strip__text {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
}

/* ── Modal ── */
.afcon-survey-modal {
    position: fixed;
    inset: 0;
    z-index: 11900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.afcon-survey-modal[hidden] {
    display: none !important;
}

body.afcon-survey-modal-open {
    overflow: hidden;
}

.afcon-survey-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 100, 50, 0.55);
    backdrop-filter: blur(5px);
}

.afcon-survey-modal__panel {
    position: relative;
    z-index: 1;
    width: min(400px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #fff;
    border-radius: 22px;
    padding: 0 0 18px;
    box-shadow: 0 28px 70px rgba(0, 100, 50, 0.35);
}

.afcon-survey-modal__hero {
    padding: 22px 22px 18px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(105deg, #006432 0%, #0a7a3e 55%, #b89b3e 100%);
    color: #fff;
    text-align: center;
}

.afcon-survey-modal__hero-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.afcon-survey-modal__hero-icon {
    display: block;
    font-size: 36px;
    margin-bottom: 6px;
    line-height: 1;
}

.afcon-survey-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.afcon-survey-step {
    padding: 0 20px;
}

.afcon-survey-modal__title {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
}

.afcon-survey-modal__hero + .afcon-survey-step .afcon-survey-modal__title {
    margin-top: 18px;
}

.afcon-survey-modal__hint {
    margin: -8px 0 14px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

.afcon-survey-modal__choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.afcon-survey-modal__choices--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.afcon-survey-modal button {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}

.afcon-survey-choice {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.afcon-survey-choice:hover {
    border-color: #0a7a3e;
    background: #ecfdf5;
}

.afcon-survey-choice:active {
    transform: scale(0.98);
}

.afcon-survey-choice--yes {
    border-color: #0a7a3e;
    background: linear-gradient(145deg, #ecfdf5, #d1fae5);
    color: #006432;
}

.afcon-survey-choice--submit {
    margin-top: 10px;
    background: linear-gradient(105deg, #006432, #0a7a3e);
    border-color: transparent;
    color: #fff;
}

.afcon-survey-choice--submit:hover {
    background: linear-gradient(105deg, #005028, #006432);
    color: #fff;
}

.afcon-survey-email-form {
    display: flex;
    flex-direction: column;
}

.afcon-survey-email-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    box-sizing: border-box;
    font-family: inherit;
}

.afcon-survey-email-input:focus {
    outline: none;
    border-color: #0a7a3e;
}

.afcon-survey-modal__skip {
    display: block;
    width: calc(100% - 40px);
    margin: 14px auto 0;
    padding: 8px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-family: inherit;
}

.afcon-survey-modal__footer {
    margin: 12px 20px 0;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
    text-align: center;
}

@media (max-width: 640px) {
    .afcon-survey-strip__panel--prompt,
    .afcon-survey-strip__panel--going-yes,
    .afcon-survey-strip__panel--done-no,
    .afcon-survey-strip__panel--continue {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 16px;
    }

    .afcon-survey-strip__actions {
        margin-left: 0;
        width: 100%;
    }

    .afcon-survey-strip__btn {
        flex: 1;
        min-width: 0;
    }

    .afcon-survey-strip__panel--prompt::after {
        right: 8%;
        opacity: 0.08;
    }

    .afcon-survey-strip__panel--going-yes {
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .afcon-survey-modal {
        padding: 14px;
        align-items: flex-end;
    }

    .afcon-survey-modal__panel {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .afcon-survey-strip__btn {
        transition: none;
    }
}
