/* ============================================================
   HaGoTools 공통 도구 레이아웃 (표준: 이미지 변환기 연두색 스타일)
   ============================================================ */
:root {
    --accent-green: #a8e063; /* Image PDF / Diary green */
    --accent-green-dark: #7ed957; /* Portal green */
    --accent-purple: #667eea;
    --accent-yellow: #ffde59;
    --text-dark: #2d3436;
    --text-gray: #666666;
    --off-white: #f5f5f5;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --radius: 16px;
}

body {
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    min-height: 100vh;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ─── Breadcrumb Header ───────────────────────────────────────────── */
.breadcrumb-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168, 224, 99, 0.3); /* a8e063 with opacity */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.breadcrumb-header .container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    max-width: 1400px;
}

/* Portal Logo Inline */
.portal-logo-inline {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.portal-logo-inline:hover {
    opacity: 0.75;
}

.portal-logo-inline span:first-child {
    color: var(--accent-green-dark);
}

.portal-logo-inline .badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    background: var(--accent-green-dark);
    border-radius: 20px;
    padding: 3px 10px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0;
}

.back-link {
    text-decoration: none;
    color: #56ab2f; /* Darker green for text readability */
    background: rgba(168, 224, 99, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    transition: background 0.3s, transform 0.2s;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.back-link:hover {
    background: rgba(168, 224, 99, 0.4);
    text-decoration: none;
}

.path {
    color: var(--text-gray);
    margin-left: 10px;
    font-size: 0.9rem;
}

.path a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.path a:hover {
    color: var(--accent-green-dark);
    text-decoration: underline;
}

/* ─── Main Content & Header ───────────────────────────────────────── */
.main-content {
    padding: 40px 0 80px;
}

.text-center {
    text-align: center;
}

.header-section {
    margin-bottom: 40px;
}

.header-section h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-dark);
    background: none;
    -webkit-text-fill-color: initial;
}

.header-section p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 600px) {
    .header-section h1 {
        font-size: 1.8rem;
    }
    .header-section p {
        font-size: 0.95rem;
    }
}

/* ─── User Nav Slot (breadcrumb 우측 로그인 버튼) ─────────────────── */
#user-nav-slot {
    margin-left: auto;
    flex-shrink: 0;
}

.user-nav-login-btn {
    display: inline-block;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    background: #ffde59;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 222, 89, 0.3);
}
.user-nav-login-btn:hover {
    background: #a8e063;
    color: #fff;
    transform: translateY(-1px);
}

.user-nav-logged { position: relative; }

.user-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    background: rgba(168, 224, 99, 0.15);
    border: 1.5px solid rgba(168, 224, 99, 0.4);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.user-nav-btn:hover {
    background: rgba(168, 224, 99, 0.28);
}

.user-nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    z-index: 999;
}
.user-nav-dropdown.open {
    display: block;
    animation: dropdownFade 0.15s ease;
}
@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}
.dropdown-item:hover {
    background: rgba(168, 224, 99, 0.12);
    color: #56ab2f;
}
.dropdown-logout {
    border-top: 1px solid rgba(0,0,0,0.06);
    color: #e74c3c;
}
.dropdown-logout:hover {
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
}
