/* index.css */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* 전역 스타일 */
body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

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

.hover-lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* 헤더 스타일 */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 1rem 1.2rem;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 메인 캐러셀 */
.carousel-item img {
    object-fit: cover;
    height: 400px;
}

.carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50%;
    margin: 0 5px !important;
}

/* 카드 스타일 */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-hover:hover {
    transform: translateY(-5px);
}

/* 빠른메뉴 아이콘 */
.quick-menu-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: transform 0.2s ease-in-out;
}

.quick-menu-card:hover .quick-menu-icon {
    transform: scale(1.1);
}

/* 공지사항 및 이용후기 */
.list-group-item {
    border-left: 0;
    border-right: 0;
    padding: 1rem 0;
}

.list-group-item:first-child {
    border-top: 0;
}

.list-group-item:last-child {
    border-bottom: 0;
}

/* 복사 버튼 */
.copy-btn {
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
}

.copy-btn:hover {
    opacity: 1;
}

/* 스크롤 탑 버튼 */
#scrollToTop {
    width: 45px;
    height: 45px;
    right: 20px;
    bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
}

#scrollToTop.show {
    opacity: 1;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 30px;
    }

    .carousel-item img {
        height: 200px;
    }

    .card {
        margin-bottom: 1rem;
    }

    .quick-menu-icon {
        font-size: 2rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* 유틸리티 클래스 */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-overlay {
    position: relative;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

/* 모달 스타일 */
.modal-backdrop {
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 알림 배지 */
.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 500;
}

/* 로딩 스피너 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}