/* 커스텀 스타일 */

/* 전체적인 애니메이션 */
* {
    transition: all 0.3s ease;
}

/* 카드 호버 효과 강화 */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 버튼 호버 효과 */
.btn:hover {
    transform: translateY(-1px);
}

/* 네비게이션 바 스타일 */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
}

/* 메인 컨테이너 */
.container {
    max-width: 1200px;
}

/* 그라데이션 텍스트 */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 모달 애니메이션 */
.modal {
    transition: all 0.3s ease;
}

.modal-box {
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 토스트 애니메이션 */
.toast {
    animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 통계 카드 스타일 */
.stats .stat {
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* 배지 스타일 */
.badge {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* 아바타 스타일 */
.avatar img {
    object-fit: cover;
}

/* 커뮤니티 게시글 스타일 */
.community-post {
    transition: all 0.2s ease;
}

.community-post:hover {
    background-color: rgba(59, 130, 246, 0.05);
    border-left: 4px solid #3b82f6;
}

/* 기션 스페이스 특별 스타일 */
.gishion-profile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 반응형 그리드 */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
    }
    
    .stats .stat {
        margin-bottom: 1rem;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .navbar {
        background-color: rgba(31, 41, 55, 0.9);
    }
    
    .stats .stat {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }
}

/* 로딩 애니메이션 */
.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 페이드 인 애니메이션 */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 버튼 그룹 스타일 */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* 커스텀 포커스 스타일 */
.btn:focus,
.input:focus,
.textarea:focus,
.select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* 텍스트 선택 스타일 */
::selection {
    background-color: #3b82f6;
    color: white;
}

/* 아이콘 애니메이션 */
.icon-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 접이식 패널 전환 */
.collapsible {
    overflow: hidden;
}
