* { box-sizing: border-box; }
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
}

header .header-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    header .header-container {
        padding: 0 15px;
    }
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.3));
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 200px; /* 4:1 비율 로고 대응 (50px * 4) */
    vertical-align: middle;
    transition: height 0.3s ease;
}

/* 메인 페이지 대형 로고 지원 */
.main-page .logo img {
    height: 80px;
    max-width: 320px; /* 4:1 비율 대응 (80px * 4) */
}

/* 메인 네비게이션 */
nav.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav.header-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
}

nav.header-nav a:hover {
    color: #00e5ff;
}

nav.header-nav a.active {
    color: #ffffff;
}

nav.header-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff4655, #ffd700);
    border-radius: 2px;
}

/* 특수 버튼 스타일 (로그인/로그아웃) */
.nav-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#loginLink {
    background: rgba(0, 229, 255, 0.1);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

#loginLink:hover {
    background: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

#logoutLink {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

#logoutLink:hover {
    color: #ff4655;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    header .header-container {
        padding: 0 5px;
    }
    .logo {
        padding: 5px 0;
    }
    .logo img {
        height: 38px;
        max-width: 150px;
    }
    nav.header-nav {
        gap: 8px;
    }
    nav.header-nav a {
        font-size: 0.75rem;
        letter-spacing: -0.3px;
    }
    .nav-btn {
        padding: 4px 10px !important;
        border-radius: 6px !important;
        font-size: 0.75rem !important;
    }
    nav.header-nav a:not(#loginLink):not(#myPageLink):not([href*="boards"]):not(#logoutLink) {
        display: none;
    }
}

/* FOOTER STYLES */
.main-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    text-align: left;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.copyright {
    display: none;
}

.business-info {
    font-size: 0.8rem;
    line-height: 1.6;
    max-width: 100%;
    margin: 0;
    white-space: normal;
}

@media (max-width: 768px) {
    .main-footer {
        padding: 15px 15px;
        margin-top: 20px;
    }
    .business-info {
        font-size: 0.75rem;
    }
}
