/*
Theme Name: Palgobulgo
Theme URI: https://palgobulgo.com
Author: Devhypnos
Author URI: https://devhypnos.com
Description: 팔고벌고(Palgobulgo) 커스텀 개발을 위한 순수 미니멀 스타터 테마.
Version: 1.0.1
Text Domain: palgobulgo
*/

/* Reset & Defaults */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #111827;
    background-color: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Site Top Bar */
.site-topbar {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    color: #475569;
    padding: 7px 0;
}

.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 16px;
}

.topbar-nav li {
    display: flex;
    align-items: center;
}

.topbar-nav a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.topbar-nav a:hover {
    color: #0f172a;
}

/* 좌측 서브도메인 네비게이션 구분선 */
.topbar-subdomains-nav li + li::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 10px;
    background-color: #cbd5e1;
    margin-right: 16px;
}

.topbar-subdomains-nav a {
    font-weight: 500;
}

/* 우측 인증 네비게이션 */
.topbar-user-greeting {
    color: #334155;
    margin-right: 4px;
}

.topbar-user-greeting strong {
    color: #0f172a;
}

/* 우측 인증 메뉴 구분선 (좌측 서브도메인과 동일한 구분선) */
.topbar-auth-nav li + li::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 10px;
    background-color: #cbd5e1;
    margin-right: 16px;
}

.topbar-auth-nav a {
    font-weight: 500;
}

/* 회원가입 링크: 배경 없이 다른 링크들과 완전히 동일한 단정한 텍스트 링크 */
.topbar-register-link,
.topbar-register-link a,
a.topbar-register-link {
    display: inline !important;
    padding: 0 !important;
    background: none !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    color: #64748b !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: color 0.15s ease-in-out;
}

.topbar-register-link:hover,
.topbar-register-link a:hover,
a.topbar-register-link:hover {
    background: none !important;
    background-color: transparent !important;
    color: #0f172a !important;
}

.topbar-logout-link {
    color: #94a3b8 !important;
}

.topbar-logout-link:hover {
    color: #dc2626 !important;
}

/* 반응형 배려 (모바일) */
@media (max-width: 640px) {
    .site-topbar {
        font-size: 12px;
        padding: 6px 0;
    }

    .topbar-container {
        justify-content: center;
        gap: 6px 16px;
    }

    .topbar-nav ul {
        gap: 12px;
    }

    .topbar-subdomains-nav li + li::before,
    .topbar-auth-nav li + li::before {
        margin-right: 12px;
    }
}

/* Site Header */
.site-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
}

.site-header .site-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 20px;
    font-weight: 700;
}

.site-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

/* Site Main */
.site-main {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}

/* Site Footer */
.site-footer {
    border-top: 1px solid #e5e7eb;
    padding: 20px 0;
    font-size: 14px;
    color: #6b7280;
}

.site-footer .site-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
