/* ==========================================================================
   Progressive Round Summary Styles
   Used by _ProgressiveRoundSummary.cshtml partial
   ========================================================================== */

.completed-round-summary {
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-medium, 0.75rem);
    padding: 1.25rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
}

.completed-round-summary.in-progress {
    background: rgba(0, 0, 0, 0.4);
}

/* Score Hero */
.score-hero {
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border-radius: var(--radius-medium, 0.75rem);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.score-relative {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    font-variant-numeric: tabular-nums;
}

.score-relative.under-par {
    color: #4ade80;
    text-shadow: 0 2px 8px rgba(74, 222, 128, 0.4);
}

.score-relative.over-par {
    color: #f87171;
    text-shadow: 0 2px 8px rgba(248, 113, 113, 0.4);
}

.score-relative.even-par {
    color: #FFFFFF;
}

.score-total {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Stats Grid */
.completed-round-summary .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.completed-round-summary .stat-item {
    text-align: center;
    padding: 0.625rem 0.5rem;
    border-radius: var(--radius-small, 0.5rem);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.completed-round-summary .stat-count {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.completed-round-summary .stat-label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
    margin: 0 !important;
}

.completed-round-summary .stat-item.ace {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}
.completed-round-summary .stat-item.ace .stat-count { color: #fca5a5; }

.completed-round-summary .stat-item.eagle {
    background: rgba(250, 204, 21, 0.2);
    border-color: rgba(250, 204, 21, 0.4);
}
.completed-round-summary .stat-item.eagle .stat-count { color: #fde047; }

.completed-round-summary .stat-item.birdie {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.3);
}
.completed-round-summary .stat-item.birdie .stat-count { color: #86efac; }

.completed-round-summary .stat-item.par {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.3);
}

.completed-round-summary .stat-item.bogey {
    background: rgba(251, 146, 60, 0.15);
    border-color: rgba(251, 146, 60, 0.3);
}
.completed-round-summary .stat-item.bogey .stat-count { color: #fdba74; }

.completed-round-summary .stat-item.double-bogey {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.3);
}
.completed-round-summary .stat-item.double-bogey .stat-count { color: #fca5a5; }

/* Preliminary Rating */
.preliminary-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-small, 0.5rem);
    margin: 1rem 0;
}

.rating-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
}

.rating-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #a5b4fc;
    font-variant-numeric: tabular-nums;
}

/* Q&A Section */
.qanda-wrapper {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-small, 0.5rem);
}

.qanda-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.question-section,
.answer-section {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

/* Flippy Avatar in Q&A */
.qanda-section .flippy-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.question-content,
.answer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.flippy-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
}

.question-text,
.answer-text {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

.answer-pending {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-small, 0.5rem);
    color: rgba(255, 255, 255, 0.7);
}

.summary-content {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Card Mates Comparison */
.card-mates-comparison {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-small, 0.5rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-mates-header {
    margin: 0 0 0.75rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
}

.card-mates-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-mate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-small, 0.5rem);
}

.mate-name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.mate-score {
    font-weight: 700;
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
}

.mate-score.under-par { color: #4ade80; }
.mate-score.over-par { color: #f87171; }
.mate-score.even-par { color: #FFFFFF; }

/* Summary Footer */
.completed-round-summary .summary-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* Flippy styling override for completed summary */
.completed-round-summary .flippy-says-simple {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
}

.completed-round-summary .flippy-says-simple__label,
.completed-round-summary .flippy-says-simple__message {
    color: rgba(255, 255, 255, 0.95);
}

/* Summary CTA Buttons */
.completed-round-summary .summary-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-small, 0.5rem);
}

.completed-round-summary .summary-cta .btn {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-small, 0.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.completed-round-summary .summary-cta .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    background: transparent;
}

.completed-round-summary .summary-cta .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.completed-round-summary .summary-cta .btn-primary {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Standalone Summary Content (legacy fallback) */
.summary-content-standalone {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-small, 0.5rem);
}

.flippy-attribution {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
}

.flippy-mini-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.summary-content-standalone .summary-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Remove bullet list styling from AI-generated summary text */
.summary-content-standalone .summary-text ul,
.summary-content-standalone .summary-text ol,
.qanda-wrapper ul,
.qanda-wrapper ol {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.summary-content-standalone .summary-text li,
.qanda-wrapper li {
    padding-left: 0;
    margin-bottom: 0.5rem;
}

.summary-content-standalone .summary-text li:last-child,
.qanda-wrapper li:last-child {
    margin-bottom: 0;
}
