/* 전국 바둑이 커뮤니티 스타일 */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --success-color: #27ae60;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
}

/* 레벨 뱃지 */
.level-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 카드 스타일 */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 게시판 카드 */
.board-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.board-card:hover {
    border-left-color: var(--secondary-color);
}

/* 게시글 리스트 */
.post-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.post-item:hover {
    border-left-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-item.notice {
    background: #fff8dc;
    border-left-color: var(--secondary-color);
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.post-title:hover {
    color: var(--secondary-color);
}

.post-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

/* 사용자 정보 카드 */
.user-info-card {
    background: white !important;
    color: #333 !important;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-level {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 10px 0;
}

.user-exp-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin-top: 10px;
}

.user-exp-progress {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

/* 출석체크 */
.attendance-calendar {
    background: white;
    padding: 20px;
    border-radius: 12px;
}

.attendance-day {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin: 5px;
    border-radius: 8px;
    background: var(--bg-light);
    font-weight: 600;
}

.attendance-day.checked {
    background: var(--success-color);
    color: white;
}

/* 버튼 스타일 */
.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: #34495e;
}

.btn-danger {
    background: var(--secondary-color);
}

.btn-danger:hover {
    background: #c0392b;
}

/* 폼 스타일 */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

/* 페이지네이션 */
.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 통계 카드 */
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    display: inline-block;
}

.stat-label {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
}

/* 지역 선택 */
.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.region-btn {
    padding: 20px;
    text-align: center;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.region-btn:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.region-btn.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 댓글 스타일 */
.comment-item {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* 모바일 게시글 카드 */
.post-card-mobile {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s;
}

.post-card-mobile:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.post-card-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* 공지사항 뱃지 */
.badge-notice {
    background: var(--secondary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 5px;
}

/* 반응형 */
@media (max-width: 768px) {
    .region-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-title {
        font-size: 1rem;
    }
}

/* 히어로 배너 스타일 */
.hero-banner {
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    z-index: 1;
}

.hero-banner .card-body {
    position: relative;
    z-index: 2;
}

/* 통계 카드 호버 효과 */
.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.stat-card:hover .stat-number {
    background: linear-gradient(135deg, #3498db 0%, #27ae60 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* 버튼 호버 효과 */
.hero-buttons .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3) !important;
}

.hero-buttons .btn-light:hover {
    background: #fff !important;
    color: var(--primary-color) !important;
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtle-zoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* 글로우 효과 */
@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.6));
    }
}

.hero-banner i.bi-suit-diamond-fill {
    animation: glow 2s ease-in-out infinite;
}

/* 로딩 스피너 */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* 반응형 히어로 배너 */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 400px !important;
    }

    .hero-banner .display-3 {
        font-size: 2rem !important;
    }

    .hero-banner .lead {
        font-size: 1rem !important;
    }

    .stat-card {
        margin-bottom: 10px;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px !important;
    }
}
