/* ============================================
   Banner Section - Dark Background Style
   ============================================ */

/* CSS 변수 기본값 정의 (다른 CSS에서 재정의 가능) */
:root {
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --text-primary: #1A1A1A;
    --text-secondary: #4A5568;
}

.banner-section {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 후원자 배너: 다크 그린 틴트 */
.banner-sponsor {
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.95) 0%, rgba(85, 107, 47, 0.9) 100%);
}

/* 우승자 배너: 다크 차콜/브론즈 틴트 */
.banner-winner {
    background: linear-gradient(135deg, rgba(54, 69, 79, 0.95) 0%, rgba(139, 115, 85, 0.9) 100%);
}

/* 헤더: 아이콘 + 타이틀 */
.banner-section-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    text-align: center;
}

.banner-section-header-large {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.banner-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.banner-section-title {
    font-family: "Noto Sans KR", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
}

/* 워터마크 SVG - 우상단 */
.banner-watermark {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    opacity: 0.08;
    pointer-events: none;
    overflow: hidden;
}

.banner-watermark svg {
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.3);
}

/* 본문 영역 */
.banner-content {
    position: relative;
    padding: var(--spacing-xs) 0;
    z-index: 1;
    text-align: center;
}

/* ============================================
   후원자 배너: 한 줄 레이아웃 (닉네임 | 금액)
   ============================================ */
.banner-sponsor .banner-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.banner-sponsor .banner-row {
    display: grid;
    grid-template-columns: 70% 30%;
    align-items: center;
    justify-items: center;
    gap: 0.25rem;
    padding: var(--spacing-sm) var(--spacing-sm);
    min-height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.banner-sponsor .banner-row:last-child {
    border-bottom: none;
}

.banner-sponsor .banner-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.banner-sponsor .banner-player-name {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    transition: color 0.2s ease;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.5rem;
    min-width: 0;
    max-width: 100%;
    justify-self: center;
}

.banner-sponsor .banner-row:hover .banner-player-name {
    color: rgba(255, 255, 255, 1);
}

.banner-sponsor .banner-player-amount {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-variant-numeric: tabular-nums;
    text-align: center;
    justify-self: center;
    min-width: 80px;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

/* ============================================
   우승자 배너: 좌측 Identity | 우측 Score
   ============================================ */
.banner-winner .banner-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.banner-winner-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    min-height: 64px;
    min-width: 0;
}

.banner-winner-row:last-child {
    border-bottom: none;
}

.banner-winner-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

/* Identity 영역: 닉네임 + 포지션 */
.banner-identity {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-wrap: nowrap;
    justify-content: center;
    text-align: center;
    min-width: 0;
    max-width: 70%;
}

.banner-winner .banner-player-name {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 100%;
}

.banner-winner .banner-player-role {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.125rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

/* Score 영역: 큰 숫자 + 작은 '점' */
.banner-score-area {
    display: flex;
    align-items: baseline;
    gap: 0.125rem;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.banner-winner .banner-player-score {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
}

.banner-score-unit {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.125rem;
    white-space: nowrap;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.banner-link {
    display: block;
    text-decoration: none;
}

.banner-text-card {
    padding: var(--spacing-md);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-text-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.banner-text-description {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
    color: var(--text-secondary);
}

