/* PC Header */
.pc-header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #fff;
    border-bottom: 1px solid rgba(9, 30, 66, .14);
    z-index: 1000;
}

.pc-header .pc-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.pc-header .pc-header-logo a {
    font-size: 24px;
    font-weight: bold;
    color: #7C3AED;
    text-decoration: none;
}

.pc-header .pc-header-nav {
    flex: 1;
    margin-left: 40px;
}

.pc-header .pc-header-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

.pc-header .pc-header-menu-item {
    position: relative;
}

.pc-header .pc-header-menu-link {
    display: block;
    padding: 20px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pc-header .pc-header-menu-link:hover {
    color: #7C3AED;
}

/* PC Language Selector */
.pc-header .pc-header-language-selector {
    position: relative;
}

.pc-header .pc-header-language-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Paperlogy', sans-serif;
    transition: all 0.3s ease;
}

.pc-header .pc-header-language-button:hover {
    border-color: #7C3AED;
    color: #7C3AED;
}

.pc-header .pc-header-language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.pc-header .pc-header-language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pc-header .pc-header-language-option {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.pc-header .pc-header-language-option:last-child {
    border-bottom: none;
}

.pc-header .pc-header-language-option:hover {
    background-color: #f5f5f5;
    color: #7C3AED;
}

/* PC Auth */
.pc-header .pc-header-auth {
    display: flex;
    align-items: center;
}

.pc-header .pc-header-login-btn {
    display: block;
    padding: 12px 24px;
    background-color: #7C3AED;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.pc-header .pc-header-login-btn:hover {
    background-color: #6D28D9;
}

/* PC Profile Menu */
.pc-header .pc-header-profile-menu {
    position: relative;
}

.pc-header .pc-header-profile-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #7C3AED;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s;
}

.pc-header .pc-header-profile-button:hover {
    background-color: #6D28D9;
}

.pc-header .pc-header-profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.pc-header .pc-header-profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pc-header .pc-header-profile-option {
    display: block;
    padding: 14px 18px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.pc-header .pc-header-profile-option:last-child {
    border-bottom: none;
}

.pc-header .pc-header-profile-option:hover {
    background-color: #f5f5f5;
    color: #7C3AED;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid rgba(9, 30, 66, .14);
    z-index: 1000;
}

.mobile-header .mobile-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.mobile-header .mobile-header-logo a {
    font-size: 20px;
    font-weight: bold;
    color: #7C3AED;
    text-decoration: none;
}

/* Mobile Hamburger */
.mobile-header .mobile-header-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-header .mobile-header-hamburger-line {
    width: 24px;
    height: 3px;
    background-color: #333;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-header .mobile-header-hamburger.active .mobile-header-hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-header .mobile-header-hamburger.active .mobile-header-hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-header .mobile-header-hamburger.active .mobile-header-hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Sidebar */
.mobile-header .mobile-header-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-header .mobile-header-sidebar.show {
    transform: translateX(0);
}

/* Mobile Sidebar Header */
.mobile-header .mobile-header-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(9, 30, 66, .14);
    background: #fff;
}

.mobile-header .mobile-header-sidebar-logo a {
    font-size: 20px;
    font-weight: bold;
    color: #7C3AED;
    text-decoration: none;
}

.mobile-header .mobile-header-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-header .mobile-header-sidebar-close:hover {
    background-color: #f5f5f5;
    color: #7C3AED;
}

.mobile-header .mobile-header-sidebar-content {
    padding: 24px;
}

.mobile-header .mobile-header-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #7C3AED;
}

/* Mobile Language Section */
.mobile-header .mobile-header-language-section {
    margin-bottom: 32px;
}

.mobile-header .mobile-header-language-selector {
    position: relative;
}

.mobile-header .mobile-header-language-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Paperlogy', sans-serif;
    transition: all 0.3s ease;
}

.mobile-header .mobile-header-language-button:hover {
    border-color: #7C3AED;
    background: #f5f3ff;
}

.mobile-header .mobile-header-language-button .fas.fa-chevron-down {
    transition: transform 0.3s ease;
}

.mobile-header .mobile-header-language-button.active .fas.fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-header .mobile-header-language-dropdown {
    margin-top: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-header .mobile-header-language-dropdown.show {
    max-height: 400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    opacity: 1;
}

.mobile-header .mobile-header-language-option {
    display: block;
    padding: 14px 16px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.mobile-header .mobile-header-language-option:last-child {
    border-bottom: none;
}

.mobile-header .mobile-header-language-option:hover {
    background-color: #f5f5f5;
    color: #7C3AED;
}

/* Mobile Menu Section */
.mobile-header .mobile-header-menu-section {
    margin-bottom: 32px;
}

.mobile-header .mobile-header-menu-list {
    list-style: none;
}

.mobile-header .mobile-header-menu-item {
    margin-bottom: 8px;
}

.mobile-header .mobile-header-menu-link {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.mobile-header .mobile-header-menu-link:hover {
    color: #7C3AED;
}

/* Mobile Account Section */
.mobile-header .mobile-header-account-section {
    margin-bottom: 32px;
}

.mobile-header .mobile-header-login-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: #7C3AED;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.mobile-header .mobile-header-login-btn:hover {
    background-color: #6D28D9;
}

.mobile-header .mobile-header-account-list {
    list-style: none;
}

.mobile-header .mobile-header-account-item {
    margin-bottom: 8px;
}

.mobile-header .mobile-header-account-link {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.mobile-header .mobile-header-account-link:hover {
    color: #7C3AED;
}

/* Mobile Overlay */
.mobile-header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-header-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 960px) {
    .pc-header {
        display: none;
    }

    .mobile-header {
        display: block;
    }
}

@media (min-width: 961px) {
    .pc-header {
        display: block;
    }

    .mobile-header {
        display: none;
    }
}

/* Body padding for fixed header */
body {
    padding-top: 80px;
}

@media (max-width: 960px) {
    body {
        padding-top: 60px;
    }
}

/* Body scroll lock when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}