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

/* 헤더 스타일 */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
}

/* 로고 스타일 */
.logo a {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #1d4ed8;
}

/* 네비게이션 메뉴 */
.nav-menu {
    margin-left: 40px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: #2563eb;
    background-color: #f3f4f6;
}

/* Auth 버튼 스타일 */
.auth-buttons {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.auth-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-button.login {
    background-color: #2563eb;
    color: white;
}

.auth-button.login:hover {
    background-color: #1d4ed8;
}

/* 사용자 메뉴 */
.user-menu {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    background: none;
    color: #4b5563;
    cursor: pointer;
    font-weight: 500;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 8px;
    display: none;
    min-width: 200px;
}

.user-menu:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #4b5563;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    border-radius: 4px;
    color: #2563eb;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }

    .nav-menu {
        margin-left: 20px;
    }

    .nav-link span:not(.material-icons) {
        display: none;
    }

    .auth-button span:not(.material-icons) {
        display: none;
    }

    .user-button span:not(.material-icons) {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        margin-left: 10px;
    }

    .nav-link {
        padding: 8px;
    }
}

/* 로그아웃 버튼 스타일 */
.logout-button {
    color: #ef4444 !important;  /* 로그아웃 버튼 색상을 빨간색으로 */
}

.logout-button:hover {
    background-color: #fee2e2 !important;
}

/* 숨겨진 로그인 버튼이 공간을 차지하지 않도록 */
.auth-button.login[style*="visibility: hidden"] {
    display: none;
}

.auth-button.subtle-login {
    background: none;
    color: #64748b;  /* 연한 회색으로 변경 */
    padding: 8px;
    opacity: 0.7;
}

.auth-button.subtle-login:hover {
    color: #2563eb;
    opacity: 1;
    background: none;
}

.auth-button.subtle-login .material-icons {
    font-size: 24px;
}