:root {
    --primary-navy: #0F3568;
    --primary-navy-dark: #0A254A;
    --primary-orange: #FF6B00;
    --primary-orange-light: #FF8F40;
    --text-main: #333333;
    --text-sub: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #ddd;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Pretendard', sans-serif; }
html, body { width: 100%; height: 100%; }
body { background-color: var(--bg-light); color: var(--text-main); line-height: 1.6; display: flex; flex-direction: column; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }

/* [Header] */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; height: 90px; background-color: var(--white);
    box-shadow: var(--shadow-sm); position: fixed; width: 100%; top: 0; z-index: 1000;
}

.logo-container { 
    height: 100%; display: flex; align-items: center; cursor: pointer; 
}
.logo-img { height: 60px; width: auto; }

nav ul { display: flex; list-style: none; gap: 40px; }
nav a { font-weight: 600; font-size: 16px; position: relative; }
nav a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background-color: var(--primary-orange); transition: width 0.3s;
}
nav a:hover, nav a.active { color: var(--primary-orange); }
nav a:hover::after, nav a.active::after { width: 100%; }

.auth-links { font-size: 15px; font-weight: 500; display: flex; align-items: center; }
.auth-links a { margin-left: 20px; }
.user-greeting-link {
    margin-left: 0;
    margin-right: 15px;
    font-weight: 700;
    color: #333;
    max-width: 200px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-greeting-link:hover {
    color: var(--primary-orange);
}
.logout-link {
    color: #666;
    text-decoration: none;
}
.btn-signup {
    background-color: var(--primary-orange); color: var(--white); padding: 10px 24px;
    border-radius: 30px; font-weight: 700; transition: background-color 0.2s, transform 0.2s;
}
.btn-signup:hover { background-color: var(--primary-orange-light); transform: translateY(-2px); }
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #e6e9ee;
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    padding: 9px 8px;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-navy);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle span + span { margin-top: 7px; }
.mobile-menu {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid #edf0f4;
    box-shadow: var(--shadow-sm);
    padding: 18px 20px 20px;
}
.mobile-nav ul { list-style: none; }
.mobile-nav a {
    display: block;
    padding: 12px 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}
.mobile-nav a.active { color: var(--primary-orange); }
body.mobile-menu-open { overflow: hidden; }
body.mobile-menu-open .mobile-menu { display: block; }
body.mobile-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
body.mobile-menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.mobile-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* [Main Content] */
main { 
    flex: 1; 
    padding-top: 90px; /* Header Height */
    width: 100%;
    display: flex;
    flex-direction: column;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 90px - 200px); /* ?붾㈃ ?믪씠?먯꽌 ?ㅻ뜑, ?명꽣 ?쒖쇅??理쒖냼 ?믪씠 */
}

/* [Footer] */
footer {
    background-color: var(--primary-navy); color: rgba(255,255,255,0.7);
    padding: 60px 40px; text-align: center;
    margin-top: auto;
}
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.footer-logo { font-size: 24px; font-weight: 800; color: var(--white); margin-bottom: 20px; }
.footer-logo span { color: var(--primary-orange); }
.footer-links { margin-bottom: 30px; display: flex; gap: 24px; }
.footer-links a:hover { color: var(--primary-orange); }
.copyright { font-size: 14px; }

/* 諛섏쓳??紐⑤컮???ㅼ젙 */
@media (max-width: 992px) {
    header { padding: 0 20px; }
    header > nav { display: none; }
    .auth-links {
        margin-left: auto;
        margin-right: 10px;
        font-size: 13px;
    }
    .auth-links a { margin-left: 10px; }
    .auth-links .btn-signup { padding: 8px 14px; }
    .user-greeting-link {
        max-width: 110px;
        margin-right: 8px;
        font-size: 12px;
    }
    .menu-toggle { display: block; }
}

