/* common.css - 공통 스타일 */

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    /* padding-top: 80px; 제거 - hero 섹션이 헤더 아래부터 시작 */
}

/* Header */
#mainHeader {
    /* background: linear-gradient(135deg, #3498db, #2c3e50); */
    /* color: white; */
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

    backdrop-filter: blur(4px);
    background: rgb(52 73 94 / 30%);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

#mainHeader nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mainHeader .logo {
    text-decoration: none; /* 링크 밑줄 제거 */
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
}

#mainHeader .nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

#mainHeader .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#mainHeader .nav-links a:hover {
    color: #f39c12;
}

#mainHeader .menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

#mainHeader .menu-toggle:hover {
    color: #f39c12;
}

/* 공통 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 공통 섹션 */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.section-alt {
    background: #f8f9fa;
}

/* 공통 버튼 */
.cta-button {
    background: #f39c12;
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

/* Footer */
footer {
    /* background: #2c3e50; */
    background: #f39c12;
    color: white;
    text-align: center;
    padding: 2rem 0;
}
/*관리자 로그인*/
.btn_adminLgn {
    border-radius: 7px;
    padding: 7px 13px;
    margin-top: 8px;
    background: #202b36;
    color: #fff;
    box-shadow: none;
    border-width: 0;
    cursor: pointer;
}

/* 공통 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 부드러운 스크롤 */
html {
    scroll-behavior: smooth;
}

/* 반응형 기본 설정 */
@media (max-width: 768px) {
    #mainHeader {
        padding: 0.8rem 0; /* 헤더 두께 줄임 */
    }

    #mainHeader .logo {
        font-size: 1.4rem; /* 로고 크기 축소 */
        text-decoration: none; /* 링크 밑줄 제거 */
        color: inherit; /* 기존 색상 유지 */
    }

    #mainHeader .menu-toggle {
        display: block;
    }

    #mainHeader .nav-links {
        position: fixed;
        top: 70px; /* 헤더 높이만큼 */
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #2c3e50, #34495e);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        gap: 2rem;
        z-index: 999;
    }

    #mainHeader .nav-links.active {
        left: 0;
    }

    #mainHeader .nav-links li {
        width: 100%;
        text-align: center;
    }

    #mainHeader .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 90%;
        margin: 0 auto;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2rem;
    }
}


/* 관리자 로그인 버튼 스타일 */
.btn_adminLgn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* background-color: rgba(255, 255, 255, 0.2); */
    backdrop-filter: blur(8px);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    opacity: 0.8;
}

.btn_adminLgn:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn_adminLgn:active {
    transform: translateY(0);
}

/* 로그인 상태에 따른 스타일 변경 */
.btn_adminLgn[title*="로그아웃"] {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.btn_adminLgn[title*="로그아웃"]:hover {
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}