/* ============================================
   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: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-clip: padding-box;
}

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

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

/* 오른쪽 위 우승자 배너만 에메랄드/제이드 포인트 */
.banner-winner-primary.banner-winner {
    background:
        radial-gradient(circle at top left, rgba(110, 231, 183, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, rgb(6, 30, 33) 0%, rgb(10, 67, 61) 56%, rgb(17, 94, 89) 100%);
    border-color: rgba(110, 231, 183, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.banner-winner-primary .banner-section-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-bottom-color: rgba(110, 231, 183, 0.14);
}

.banner-winner-primary .banner-section-title {
    color: #ecfdf5;
    letter-spacing: 0.4px;
}

.banner-winner-primary .banner-player-role {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(110, 231, 183, 0.16);
    color: rgba(209, 250, 229, 0.82);
}

.banner-winner-primary .banner-score-unit {
    color: rgba(167, 243, 208, 0.74);
}

/* 헤더: 아이콘 + 타이틀 */
.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);
}

/* 배너 공통 축소 버전 (홈/개인페이지 공통 사용) */
.banner-compact .banner-section-header-large {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.banner-compact .banner-content {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.banner-compact .banner-watermark {
    width: 60px;
    height: 60px;
}

.banner-compact.banner-sponsor .banner-row,
.banner-compact .banner-winner-row {
    min-height: 32px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    gap: 0.125rem;
}

.banner-compact.banner-sponsor .banner-row {
    padding-right: 0.75rem;
}

