* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    background: #ffffff;
    color: #111111;
}

body {
    min-width: 320px;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
}

img {
    display: block;
    width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ececec;
}

.site-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    height: 84px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #222;
}

.site-header__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #111;
    background: #fff;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid #ececec;
    background: #fafafa;
}

.site-footer__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer__brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-footer__text {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .site-header__inner {
        height: 68px;
        padding: 0 18px;
    }

    .site-logo {
        font-size: 24px;
    }

    .site-nav {
        display: none;
    }

    .header-icon-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .site-footer__inner {
        padding: 24px 18px;
    }
}

.header-auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
}

.header-auth-link {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    transition: opacity 0.2s ease;
}

.header-auth-link:hover {
    opacity: 0.65;
}

.header-auth-divider {
    font-size: 13px;
    color: #b0b0b0;
}

.header-user-menu {
    position: relative;
}

.header-user-btn {
    font-size: 17px;
    line-height: 1;
}

.header-user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 180px;
    padding: 10px 0;
    border: 1px solid #e9e9e9;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 200;
}

.header-user-menu.is-open .header-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-user-dropdown__item {
    display: block;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-user-dropdown__item:hover {
    background: #f7f7f7;
}

.header-user-dropdown__item--logout {
    color: #7a7a7a;
}

@media (max-width: 768px) {
    .header-auth-links {
        gap: 6px;
    }

    .header-auth-link,
    .header-auth-divider {
        font-size: 12px;
    }

    .header-user-dropdown {
        min-width: 160px;
        right: -6px;
    }

    .header-user-dropdown__item {
        font-size: 13px;
        padding: 11px 14px;
    }
}

.header-auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
}

.header-auth-link {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    transition: opacity 0.2s ease;
}

.header-auth-link:hover {
    opacity: 0.65;
}

.header-auth-divider {
    font-size: 13px;
    color: #b0b0b0;
}

.header-user-menu {
    position: relative;
}

.header-user-btn {
    font-size: 17px;
    line-height: 1;
}

.header-user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 180px;
    padding: 10px 0;
    border: 1px solid #e9e9e9;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 200;
}

.header-user-menu.is-open .header-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-user-dropdown__text {
    padding: 12px 18px 8px;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
}

.header-user-dropdown__item {
    display: block;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-user-dropdown__item:hover {
    background: #f7f7f7;
}

@media (max-width: 768px) {
    .header-auth-links {
        gap: 6px;
    }

    .header-auth-link,
    .header-auth-divider {
        font-size: 12px;
    }

    .header-user-dropdown {
        min-width: 160px;
        right: -6px;
    }

    .header-user-dropdown__text,
    .header-user-dropdown__item {
        font-size: 13px;
        padding-left: 14px;
        padding-right: 14px;
    }
}