/* ===================
   V3 Header
   =================== */

/* Top Bar */
#v3-header .v3-topbar {
    padding: 12px 0;
    background-color: rgba(4, 195, 141, 0.05);
    border-bottom: 1px solid rgba(4, 195, 141, 0.1);
}

#v3-header .v3-topbar .v3-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#v3-header .v3-topbar__slogan {
    position: relative;
    padding-left: 15px;
    font-family: var(--v3-font);
    font-size: 14px;
    font-weight: 400;
    color: var(--v3-text-body);
}

#v3-header .v3-topbar__slogan::before {
    position: absolute;
    content: '';
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50px;
    background-color: var(--v3-primary);
}

#v3-header .v3-topbar__util {
    display: flex;
    align-items: center;
    gap: 0;
}

#v3-header .v3-topbar__util a,
#v3-header .v3-topbar__util button {
    font-family: var(--v3-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--v3-text-body);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

#v3-header .v3-topbar__util > *:not(:first-child)::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 0 14px;
    vertical-align: middle;
}

#v3-header .v3-topbar__util a:hover,
#v3-header .v3-topbar__util button:hover {
    color: var(--v3-primary);
}

#v3-header .v3-topbar__logout-form {
    display: inline;
}

/* Main Header */
#v3-header .v3-header-main {
    position: relative;
    z-index: 50;
    background-color: #fff;
    transition: all 0.3s;
}

#v3-header .v3-header-main .v3-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Logo */
.v3-logo a {
    display: inline-block;
}

.v3-logo img {
    max-height: 30px;
}

/* GNB */
.v3-gnb__list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.v3-gnb__list > li {
    position: relative;
}

.v3-gnb__list > li > a,
.v3-gnb__dropdown-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 22px;
    font-family: var(--v3-font);
    font-size: 17px;
    font-weight: 700;
    color: var(--v3-text);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.v3-gnb__list > li > a:hover,
.v3-gnb__dropdown-btn:hover {
    color: var(--v3-primary);
}

/* Dropdown */
.v3-gnb__sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 150px;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid var(--v3-border);
    border-radius: 15px;
    box-shadow: var(--v3-shadow);
    list-style: none;
    z-index: 10;
}

.v3-gnb__dropdown:hover .v3-gnb__sub {
    display: block;
}

.v3-gnb__sub li a {
    display: block;
    padding: 6px 10px;
    font-family: var(--v3-font-body);
    font-size: 15px;
    font-weight: 400;
    color: var(--v3-text-light);
    text-decoration: none;
    text-align: center;
    transition: color 0.2s;
    line-height: 1.8;
}

.v3-gnb__sub li a:hover {
    color: var(--v3-primary);
    font-weight: 600;
}

/* Mobile Menu Button */
.v3-menu-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 7px;
    padding: 0;
}

.v3-menu-btn__line {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--v3-primary);
    transition: all 0.2s;
}

.v3-menu-btn__line:last-child {
    width: 18px;
    margin-left: auto;
}

/* ===================
   Mobile Menu Overlay
   =================== */
.v3-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.v3-mobile-menu.active {
    display: block;
}

.v3-mobile-menu__inner {
    position: absolute;
    right: 0;
    top: 0;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background-color: #fff;
    padding: 30px 25px;
    overflow-y: auto;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.v3-mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--v3-text);
    cursor: pointer;
    padding: 5px;
}

.v3-mobile-menu__user {
    padding: 20px 0 30px;
    border-bottom: 1px solid var(--v3-border);
    margin-bottom: 20px;
}

.v3-mobile-menu__greeting {
    font-family: var(--v3-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--v3-text);
    line-height: 1.3;
}

.v3-mobile-menu__greeting .name {
    color: var(--v3-primary);
}

.v3-mobile-menu__welcome {
    font-family: var(--v3-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--v3-text);
    margin-bottom: 20px;
}

.v3-mobile-menu__util {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.v3-mobile-menu__util li a,
.v3-mobile-menu__util li button {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: var(--v3-radius-pill);
    font-family: var(--v3-font);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: var(--v3-bg-section);
    color: var(--v3-text);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.v3-mobile-menu__util li a:hover,
.v3-mobile-menu__util li button:hover {
    background: var(--v3-primary);
    color: #fff;
}

/* Mobile Nav Links */
.v3-mobile-menu__nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.v3-mobile-menu__nav > li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.v3-mobile-menu__nav > li > a,
.v3-mobile-menu__nav > li > button {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-family: var(--v3-font);
    font-size: 17px;
    font-weight: 600;
    color: var(--v3-text);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}

.v3-mobile-menu__nav > li > a:hover,
.v3-mobile-menu__nav > li > button:hover {
    color: var(--v3-primary);
}

.v3-mobile-menu__parent ul {
    display: none;
    list-style: none;
    padding: 0 0 10px 15px;
    margin: 0;
}

.v3-mobile-menu__parent.open ul {
    display: block;
}

.v3-mobile-menu__parent ul li a {
    display: block;
    padding: 8px 0;
    font-family: var(--v3-font-body);
    font-size: 15px;
    font-weight: 400;
    color: var(--v3-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.v3-mobile-menu__parent ul li a:hover {
    color: var(--v3-primary);
}

/* Sticky Header */
#v3-header.sticky .v3-header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

#v3-header.sticky .v3-topbar {
    display: none;
}

/* ===================
   Responsive
   =================== */
@media (max-width: 1024px) {
    .v3-gnb__list > li > a,
    .v3-gnb__dropdown-btn {
        padding: 14px 14px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    #v3-header .v3-topbar {
        display: none;
    }

    #v3-header .v3-header-main .v3-inner {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .v3-logo img {
        max-height: 32px;
    }
}
