/**
 * Award popup styles
 */

.award-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.award-popup[hidden] {
    display: none;
}

.award-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 14, 5, 0.65);
    backdrop-filter: blur(3px);
}

.award-popup__box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 48px 36px 36px;
    width: min(480px, 100%);
    box-shadow: 0 32px 80px rgba(26, 14, 5, 0.3);
    text-align: center;
    animation: popupIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 4px solid var(--color-gold, #d4a96a);
    overflow: visible;
}

@keyframes popupIn {
    from { transform: scale(0.85) translateY(20px); opacity: 0; }
    to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.award-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f4f0eb;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 14px;
    cursor: pointer;
    color: #6b4c2a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.award-popup__close:hover {
    background: #e5d5c5;
}

.award-popup__badge {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(201, 169, 98, 0.4));
}

.award-popup__badge img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 8px;
}

.award-popup__from {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold, #d4a96a);
    margin-bottom: 8px;
}

.award-popup__title {
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--color-primary, #6b2a0e);
    margin-bottom: 4px;
    line-height: 1.2;
}

.award-popup__award-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-gold, #d4a96a);
    background: rgba(201, 169, 98, 0.12);
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.award-popup__text {
    font-size: 14px;
    color: #6b4c2a;
    line-height: 1.7;
    margin-bottom: 28px;
}

.award-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.award-popup__cta {
    width: 100%;
}

.award-popup__dismiss {
    background: none;
    border: none;
    font-size: 13px;
    color: #aaa;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px;
}

.award-popup__dismiss:hover {
    color: #888;
}

@media (max-width: 400px) {
    .award-popup__box {
        padding: 40px 24px 28px;
    }
}