/* PlaySoccerAcademy 커스텀 테마 스타일 (Bootstrap 5 보완) */
:root {
    --psa-green: #0f7b3e;
    --psa-green-dark: #0a582c;
    --psa-navy: #0c1f38;
    --psa-gold: #f5b700;
    --psa-bg: #f6f8fa;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
    background-color: var(--psa-bg);
    color: #1f2937;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 네비게이션 */
.psa-navbar {
    background: linear-gradient(90deg, var(--psa-navy) 0%, #123456 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.psa-navbar .navbar-brand {
    font-weight: 800;
    letter-spacing: -0.3px;
}

.psa-navbar .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0.9rem;
    border-radius: 0.4rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.psa-navbar .nav-link:hover,
.psa-navbar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* 히어로 배너 */
.psa-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 183, 0, 0.18), transparent 45%),
        linear-gradient(135deg, var(--psa-navy) 0%, var(--psa-green-dark) 65%, var(--psa-green) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.psa-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--psa-gold);
}

/* 페이지 헤더 */
.psa-page-header {
    background: linear-gradient(120deg, var(--psa-navy) 0%, var(--psa-green-dark) 100%);
    color: #fff;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

/* 공통 카드 */
.psa-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psa-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

/* 멤버 프로필 카드 */
.member-avatar-wrap {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #102a43 0%, #0f7b3e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
}

.member-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-back-number {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(12, 31, 56, 0.85);
    color: var(--psa-gold);
    font-weight: 800;
    font-size: 1.15rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(245, 183, 0, 0.65);
}

.member-placeholder-icon {
    font-size: 4.2rem;
    color: rgba(255, 255, 255, 0.35);
}

/* 갤러리 카드 */
.gallery-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
    border-radius: 1rem 1rem 0 0;
    cursor: pointer;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.05);
}

.gallery-play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 3rem;
    transition: background 0.2s ease;
}

.gallery-thumb:hover .gallery-play-badge {
    background: rgba(0, 0, 0, 0.45);
    color: #ff4d4d;
}

/* 월간 캘린더 */
.psa-calendar-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.psa-calendar-table th {
    text-align: center;
    padding: 0.75rem 0.25rem;
    background: #eef2f6;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 2px solid #dee2e6;
}

.psa-calendar-table td {
    vertical-align: top;
    height: 112px;
    padding: 0.4rem;
    border: 1px solid #e9ecef;
    background: #fff;
}

.psa-calendar-table td.cal-other {
    background: #f8f9fa;
    color: #adb5bd;
}

.psa-calendar-table td.cal-today {
    background: #effaf3;
    box-shadow: inset 0 0 0 2px var(--psa-green);
}

.cal-day-num {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.cal-event-pill {
    display: block;
    font-size: 0.75rem;
    padding: 2px 6px;
    margin-bottom: 3px;
    border-radius: 4px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    text-decoration: none;
}

.cal-event-pill:hover {
    opacity: 0.88;
    color: #fff;
}

/* 관리자 사이드바 */
.admin-sidebar {
    background: var(--psa-navy);
    color: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.82);
    border-radius: 0.5rem;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--psa-green);
    color: #fff;
}

/* 푸터 */
.psa-footer {
    background: var(--psa-navy);
    color: rgba(255, 255, 255, 0.78);
    padding: 2.25rem 0;
    margin-top: 4rem;
}

.btn-psa {
    background-color: var(--psa-green);
    border-color: var(--psa-green);
    color: #fff;
}

.btn-psa:hover {
    background-color: var(--psa-green-dark);
    border-color: var(--psa-green-dark);
    color: #fff;
}

@media (max-width: 767.98px) {
    .psa-calendar-table td {
        height: 82px;
        padding: 0.25rem;
    }
    .cal-event-pill {
        font-size: 0.68rem;
        padding: 1px 4px;
    }
}
