@import "tokens.css";

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* overflow-x: hidden; */
}

img {
    max-width: 100%;
    height: auto;
}

html{
    width: 100%;
    height: 100%;
}
a{
    text-decoration: none;
}
li{
    list-style: none;
}


/* 首页 */
.ootoon-m{
    position: relative;
}
/* 菜单 */
.otoon-top{
    position: sticky;
    top: 61px;
    z-index: 999;
    background-color: white;
    border-bottom: 1px solid rgb(229, 229, 229);
}
html[data-theme="dark"] .otoon-top{ background-color: var(--color-bg); border-bottom-color: var(--color-border) }

/* 로그인 팝업 스타일 */
.login-container {
    position: relative;
}
.login-container a{
    color: black;
}

.login-popup {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 300ms ease, visibility 300ms ease;
}
.login-popup.open{ opacity:1; visibility:visible; pointer-events:auto }


.login-close{ position:absolute; top:8px; right:10px; background:none; border:none; font-size:32px; line-height:1; cursor:pointer }

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.login-logo {
    width: 140px; /* 로고 크기 적당히 조절 */
    height: auto;
    object-fit: contain;
}

.login-header h3 {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--color-text);
    margin: 0;
}

.login-form {
    width: 100%;
}

.form-group {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px;
}

.form-group.input-with-icon {
    gap: 10px;
}

.login-popup .form-group.input-with-icon {
    border-bottom: 1px solid #e5e5e5;
}

.input-icon {
    color: #888;
    flex-shrink: 0;
}

.form-group input {
    width: 100%;
    border: none;
    outline: none;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 14px;
    background: transparent;
    color: var(--color-text);
}

.login-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
}

.login-submit-btn, .register-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    cursor: pointer;
}
.login-buttons a{
    padding: 10px;
    border-radius: 6px;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
}

.login-submit-btn {
    background-color: var(--brand-action);
    color: #FFFFFF;
    border: 1px solid var(--brand-action);
    font-weight: 700;
}

.register-btn {
    background-color: #FFFFFF;
    color: #000000;
    border: 1px solid #000000;
    font-weight: 400;
}

.login-welcome {
    padding: 0px 10px;
}

.login-welcome p {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #474747;
}

/* 사용자 UI 팝업 스타일 */
/* 새 사용자 UI 드롭다운 컨테이너 (기존 팝업 모달 대신 absolute 드롭다운) */
.user-dropdown-container {
    position: absolute;
    top: calc(100% + 15px);
    right: -10px; /* 오른쪽 정렬 */
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 300ms ease, visibility 300ms ease, transform 300ms ease;
    border: 1px solid var(--color-border);
}

.user-dropdown-container.open { 
    opacity: 1; 
    visibility: visible; 
    pointer-events: auto; 
    transform: translateY(0);
}

/* 화살표 꼬리 */
.user-dropdown-container::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 25px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-top: 1px solid #fff;
}