/*
 * 파일명: style.css
 * 위치: /assets/css/style.css
 * 기능: 솔향기체험마을 메인 스타일시트
 * 작성일: 2025-06-25
 */

/* ===================================
 * 전역 스타일
 * =================================== */

/* 기본 스타일 */
:root {
    --primary-color: #4a7c59;
    --primary-color-light: #6ba076;
    --primary-color-dark: #2d4a35;
    --secondary-color: #8b4513;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition-speed: 0.3s;
    --nature-green: #4a7c59;
    --nature-brown: #8b4513;
}

body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

main {
    flex: 1;
}

.text-gradient {
    background: linear-gradient(90deg, var(--nature-green), var(--nature-brown));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
 * 버튼 스타일
 * =================================== */

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 124, 89, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.2);
}

/* ===================================
 * 네비게이션 스타일
 * =================================== */

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    background-color: #fff !important;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: var(--primary-color) !important;
}

.navbar-brand i {
    font-size: 1.6rem;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 6px;
    color: #333 !important;
}

.nav-link:hover {
    background-color: rgba(74, 124, 89, 0.1);
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(74, 124, 89, 0.1);
}

/* ===================================
 * 히어로 섹션
 * =================================== */

.hero-section {
    padding: 6rem 0 5rem;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.9) 0%, rgba(139, 69, 19, 0.8) 100%), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><path fill="%23f0f8f0" d="M0,200 C150,250 300,150 500,200 C700,250 850,150 1000,200 L1000,300 L0,300 Z"/></svg>');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

/* ===================================
 * 섹션 공통 스타일
 * =================================== */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.section {
    padding: 5rem 0;
}

/* ===================================
 * 카드 스타일
 * =================================== */

.feature-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(74, 124, 89, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.card-title {
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-text {
    color: #666;
    line-height: 1.6;
}

/* ===================================
 * 갤러리 스타일
 * =================================== */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 124, 89, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===================================
 * 플로팅 메뉴 스타일
 * =================================== */

.floating-menu {
    position: fixed;
    right: 20px;
    top: 80%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* 버튼별 색상 */
.phone-btn {
    background-color: #28a745;
}

.phone-btn:hover {
    background-color: #218838;
}

.reservation-btn {
    background-color: var(--primary-color);
}

.reservation-btn:hover {
    background-color: var(--primary-color-dark);
}

.location-btn {
    background-color: #17a2b8;
}

.location-btn:hover {
    background-color: #138496;
}

.chat-btn {
    background-color: #ffc107;
    color: #333 !important;
}

.chat-btn:hover {
    background-color: #e0a800;
    color: #333 !important;
}

.top-btn {
    background-color: #6c757d;
}

.top-btn:hover {
    background-color: #5a6268;
}

/* 툴팁 스타일 */
.floating-tooltip {
    position: absolute;
    right: 60px;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
}

.floating-item:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

/* ===================================
 * 푸터 스타일
 * =================================== */

footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0 1rem;
}

footer h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    font-size: 0.9rem;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-brand i {
    font-size: 1.3rem;
    margin-right: 0.5rem;
    color: var(--primary-color-light);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    color: white;
}

footer .small {
    font-size: 0.8rem;
}

footer p {
    margin-bottom: 0.25rem;
}

/* ===================================
 * 반응형 스타일
 * =================================== */

@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .floating-menu {
        right: 15px;
        gap: 12px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .floating-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .floating-menu {
        right: 10px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ===================================
 * 애니메이션
 * =================================== */

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

.fadeIn {
    animation: fadeIn 0.6s ease-out;
}

.fadeIn.animated {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* ===================================
   갤러리 필터 배지 스타일 (심플 버전)
   =================================== */

/* 카테고리 버튼 내 배지 - 숫자만 표시 */
.btn-outline-primary .badge {
    font-size: 0.75rem;
    padding: 0;
    vertical-align: baseline;
    font-weight: 400;
    background-color: transparent !important;
    color: inherit;
    border: none;
    margin-left: 0.25rem;
}

/* 활성화된 버튼의 배지 */
.btn-outline-primary.active .badge {
    color: white !important;
    font-weight: 500;
}

/* 배지 앞에 괄호 추가 (선택사항) */
.btn-outline-primary .badge::before {
    content: '(';
    opacity: 0.6;
}

.btn-outline-primary .badge::after {
    content: ')';
    opacity: 0.6;
}


/* ===================================
   갤러리 모달 네비게이션 버튼
   =================================== */

/* 기본 버튼 스타일 */
#prevImageBtn,
#nextImageBtn {
    background-color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* 활성화 상태 버튼 호버 */
#prevImageBtn:not(:disabled):hover,
#nextImageBtn:not(:disabled):hover {
    opacity: 1 !important;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 비활성화 상태 버튼 */
#prevImageBtn:disabled,
#nextImageBtn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.7);
}

/* 비활성화 상태 아이콘 색상 */
#prevImageBtn:disabled i,
#nextImageBtn:disabled i {
    color: #6c757d;
}

/* 모달 이미지 트랜지션 */
#modalImage {
    transition: opacity 0.3s ease;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    #prevImageBtn,
    #nextImageBtn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }
}
