/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* 메인 네비게이션 */
.main-nav {
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 데스크톱 메뉴 */
.desktop-menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.menu-container {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 20px;
}

.logo {
    flex-shrink: 0;
    margin-right: 30px;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 150px;
}

.desktop-menu .menu-container > ul {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    height: 60px;
    flex: 1;
    margin: 0;
    padding: 0;
}

.desktop-menu .menu-container > ul > li {
    position: relative;
    height: 100%;
    margin: 0;
    padding: 0;
    flex: 1;
    max-width: 120px;
}

.desktop-menu .menu-container > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 10px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 16px;
    width: 100%;
    text-align: center;
}

.desktop-menu .menu-container > ul > li:hover > a {
    color: #14859e;
    background: #f8f9fa;
}

/* 서브메뉴 */
.desktop-menu .menu-container > ul > li > ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    list-style: none;
    z-index: 1001;
    border-radius: 0 0 4px 4px;
    margin: 0;
    padding: 0;
}

.desktop-menu .menu-container > ul > li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-menu .menu-container > ul > li > ul > li {
    border-bottom: 1px solid #eee;
    margin: 0;
    padding: 0;
}

.desktop-menu .menu-container > ul > li > ul > li:last-child {
    border-bottom: none;
}

.desktop-menu .menu-container > ul > li > ul > li > a {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    margin: 0;
}

.desktop-menu .menu-container > ul > li > ul > li > a:hover {
    background: #f8f9fa;
    color: #14859e;
    padding-left: 25px;
}

/* 모바일 메뉴 */
.mobile-menu {
    display: none;
}

.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    height: 60px;
}

.mobile-header .logo img {
    height: 40px;
    width: auto;
    max-width: 120px;
}

.mobile-menu-toggle {
    display: none;
    padding: 15px;
    cursor: pointer;
    background: none;
    border: none;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s;
}

/* 모바일 아코디언 메뉴 스타일 */
.accordion-item {
    border-bottom: 1px solid #bee3f8;
}

.accordion-header {
    background-color: #e8f4ff;
    color: #2c5282;
    padding: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.accordion-header:hover {
    background-color: #bee3f8;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #2c5282;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header {
    background-color: #3182ce;
    color: white;
}

.accordion-item.active .accordion-header::after {
    content: '-';
    color: white;
}

.accordion-content {
    background-color: #f7fafc;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-content .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-content .submenu li a {
    display: block;
    padding: 12px 20px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.accordion-content .submenu li a:hover {
    background-color: #ebf8ff;
    color: #2c5282;
    border-left-color: #3182ce;
}

.accordion-content .submenu li a.active {
    background-color: #bee3f8;
    color: #2c5282;
    border-left-color: #3182ce;
    font-weight: 500;
}

/* 관리자 링크 */
a[href="admin.php"] {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 1001;
    color: #ff9800;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    transition: all 0.3s ease;
}

a[href="admin.php"]:hover {
    color: #f57c00;
    background: rgba(255, 255, 255, 1);
}

/* 슬라이더 스타일 */
.frontbox {
    margin-top: 0;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 숏컷 섹션 */
.shortcut {
    padding: 10px 0;
    background: #f8f9fa;
}

.shortcut-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #14859e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.circle:hover {
    background: #0f6b7a;
    transform: scale(1.1);
}

/* 푸터 스타일 */
footer {
    background: #333;
    color: white;
    padding: 20px 0;
}

.flex-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 20px;
    gap: 20px;
}

.footer-logo-container,
.footer-address-container,
.footer-contact-container {
    flex: 1;
}

.footer-logo-container {
    text-align: center;
}

.footer-logo-container img {
    height: 55px;
    width: auto;
    max-width: 165px;
}

.footer-address-container p,
.footer-contact-container p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    font-size: 13px;
}

.footer-contact-mobile {
    display: none;
}

/* 반응형 스타일 */
@media (min-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
    .desktop-menu {
        display: block !important;
    }
    
    .mobile-menu,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        padding-top: 60px;
    }

    .footer-contact-mobile {
        display: none !important;
    }
    
    .footer-contact-desktop {
        display: block !important;
    }
    
    .footer-garden-address {
        display: block !important;
    }
}

@media (max-width: 767px) {
    .main-nav {
        position: static;
    }
    .desktop-menu {
        display: none !important;
    }
    
    .mobile-menu {
        display: block !important;
    }

    .mobile-menu.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        overflow-y: auto;
        z-index: 999;
        background: #fff;
    }

    .mobile-menu-toggle {
        display: block !important;
    }
    
    .accordion {
        display: block;
        position: static;
        top: auto;
        left: auto;
    }
    
    a[href="admin.php"] {
        right: 60px;
        top: 15px;
    }

    body {
        padding-top: 0;
    }
    
    .accordion-header {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    .submenu a {
        padding: 10px 15px;
    }

    .mobile-menu.active .accordion {
        display: block;
    }

    /* 반응형 슬라이더 */
    .frontbox {
        display: block !important;
        height: 200px !important;
        width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
        background-color: transparent;
    }

    .swiper {
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    .swiper-slide {
        width: 100% !important;
        height: 100% !important;
    }

    .swiper-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* 반응형 푸터 */
    .flex-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 10px;
    }

    .footer-logo-container img {
        height: 40px;
        max-width: 120px;
    }

    .footer-address-container,
    .footer-contact-container {
        text-align: center;
        width: 100%;
    }

    .footer-address-container p,
    .footer-contact-container p {
        font-size: 13px !important;
        margin: 0;
        line-height: 1.6;
    }

    .footer-garden-address {
        display: none;
    }

    .footer-contact-desktop {
        display: none;
    }

    .footer-contact-mobile {
        display: block;
    }

    .shortcut {
        display: none;
    }
}
