/* ── Crew Challenge Styles ── */

/* Landing page challenge banner */
#crew-challenge-banner {
    display: none;
    margin: 0 0 20px 0;
}

.crew-banner-inner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8f 100%);
    border: 2px solid #FF9800;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: crewBannerSlide 0.5s ease-out;
}

.crew-banner-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.crew-banner-text {
    color: #ffffff;
    font-size: clamp(14px, 3.8vw, 17px);
    font-weight: 600;
    line-height: 1.4;
}

@keyframes crewBannerSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Results page comparison */
#crew-comparison {
    display: none;
    margin: 16px 0 20px 0;
}

.crew-comparison {
    background: #f8f9fa;
    border-radius: 12px;
    padding: clamp(14px, 4vw, 20px);
    animation: crewFadeIn 0.6s ease-out;
}

.crew-verdict {
    text-align: center;
    font-size: clamp(16px, 4.5vw, 20px);
    font-weight: 700;
    margin-bottom: 16px;
    padding: 8px;
    border-radius: 8px;
}

.crew-verdict-won {
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.1);
}

.crew-verdict-tied {
    color: #f57c00;
    background: rgba(245, 124, 0, 0.1);
}

.crew-verdict-lost {
    color: #1e3a5f;
    background: rgba(30, 58, 95, 0.1);
}

.crew-scores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.crew-score-card {
    flex: 1;
    max-width: 140px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    transition: border-color 0.3s;
}

.crew-score-card.crew-winner {
    border-color: #FF9800;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

.crew-score-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #718096;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.crew-score-value {
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.crew-score-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.crew-score-bar-fill {
    height: 100%;
    background: #FF9800;
    border-radius: 3px;
    transition: width 0.8s ease-out;
}

.crew-score-bar-fill.skipper-fill {
    background: #1e3a5f;
}

.crew-vs {
    font-size: 14px;
    font-weight: 700;
    color: #a0aec0;
    text-transform: uppercase;
    flex-shrink: 0;
}

@keyframes crewFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* Challenge share button */
#crew-share {
    display: none;
    margin: 16px 0;
}

.crew-share-section {
    text-align: center;
}

.crew-challenge-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 3px 12px rgba(255, 152, 0, 0.3);
}

.crew-challenge-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(255, 152, 0, 0.4);
}

.crew-challenge-btn:active {
    transform: translateY(0);
}

.crew-challenge-btn.crew-copied {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    box-shadow: 0 3px 12px rgba(46, 125, 50, 0.3);
}

.crew-challenge-icon {
    font-size: 20px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .crew-scores {
        gap: 8px;
    }

    .crew-score-card {
        padding: 10px;
    }

    .crew-score-value {
        font-size: 24px;
    }

    .crew-banner-text {
        font-size: 15px;
    }

    .crew-challenge-btn {
        padding: 12px 22px;
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .crew-scores {
        gap: 6px;
    }

    .crew-score-card {
        padding: 8px;
        border-radius: 8px;
    }

    .crew-score-value {
        font-size: 20px;
    }

    .crew-score-label {
        font-size: 10px;
    }

    .crew-banner-inner {
        padding: 12px 14px;
        gap: 8px;
    }

    .crew-banner-text {
        font-size: 13px;
    }

    .crew-challenge-btn {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
}
