@font-face {
    font-family: 'IranianSans';
    src: url('/main/fonts/IranianSans.ttf') format('truetype');
}

:root {
    --primary-green: #00726F;
    --light-green: #33A19E;
    --dark-green: #005452;
    --text-white: #FFFFFF;
    --text-light: #E0E0E0;
    --bg-dark: #121212;
    --bg-darker: #1C1C1C;
    --border-light: rgba(255, 255, 255, 0.15);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.gh-header {
    padding: 12px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.5s ease-in-out;
    background: var(--bg-dark);
    box-shadow: var(--shadow);
}

.gh-header.blurred {
    backdrop-filter: blur(12px);
    background: rgba(18, 18, 18, 0.65);
}

.gh-header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 72px;
}

.gh-logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gh-logo {
    font-family: 'IranianSans', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.5s ease-in-out, color 0.5s ease-in-out;
}

.gh-logo:hover {
    color: var(--primary-green);
    transform: scale(1.05);
}

.gh-logo-img {
    max-height: 48px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.5s ease-in-out;
}

.gh-logo:hover .gh-logo-img {
    transform: scale(1.1);
}

.gh-btn-profile-mobile {
    display: none;
    color: var(--text-white);
    font-size: 20px;
    text-decoration: none;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.5s ease-in-out;
}

.gh-btn-profile-mobile.logged-in {
    background: linear-gradient(45deg, var(--primary-green), var(--light-green));
    box-shadow: 0 2px 10px rgba(0, 114, 111, 0.4);
}

.gh-btn-profile-mobile.logged-out {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.gh-btn-profile-mobile:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 14px rgba(0, 114, 111, 0.6);
}

.gh-hamburger {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 28px;
    cursor: pointer;
    display: none;
    transition: transform 0.5s ease-in-out;
}

.gh-hamburger:hover {
    transform: rotate(180deg);
}

.gh-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.gh-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.gh-nav-list li {
    position: relative;
}

.gh-nav-link {
    font-family: 'IranianSans', sans-serif;
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.5s ease-in-out;
}

.gh-nav-link:hover {
    color: var(--text-white);
    background: linear-gradient(45deg, rgba(0, 114, 111, 0.25), rgba(51, 161, 158, 0.25));
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 114, 111, 0.3);
}

.gh-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--dark-green);
    transition: width 0.5s ease-in-out, left 0.5s ease-in-out;
}

.gh-nav-link:hover::after {
    width: 100%;
    left: 0;
}

.gh-nav-dropdown {
    position: relative;
}

.gh-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gh-dropdown-menu {
    display: none;
    list-style: none;
    padding: 14px 0;
    margin: 0;
    background: var(--bg-darker);
    border-radius: 10px;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 240px;
    box-shadow: var(--shadow);
    z-index: 1001;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.gh-nav-dropdown.open .gh-dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.gh-dropdown-link {
    font-family: 'IranianSans', sans-serif;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    transition: all 0.5s ease-in-out;
}

.gh-dropdown-link:hover {
    color: var(--text-white);
    background: linear-gradient(45deg, rgba(0, 114, 111, 0.35), rgba(51, 161, 158, 0.35));
    transform: translateX(5px);
}

.gh-auth-buttons {
    display: flex;
    flex-direction: row;
    gap: 14px;
    padding: 0 24px;
}

.gh-btn-login, .gh-btn-register, .gh-btn-profile, .gh-btn-logout {
    font-family: 'IranianSans', sans-serif;
    color: var(--text-white);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, rgba(0, 114, 111, 0.15), rgba(51, 161, 158, 0.15));
    transition: all 0.5s ease-in-out;
}

.gh-btn-login:hover, .gh-btn-register:hover, .gh-btn-profile:hover, .gh-btn-logout:hover {
    background: linear-gradient(45deg, var(--primary-green), var(--light-green));
    border-color: var(--dark-green);
    box-shadow: 0 4px 14px rgba(0, 114, 111, 0.6);
    transform: translateY(-2px);
}

.gh-modal-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    z-index: 2000;
}

.gh-modal {
    background: rgba(18, 18, 18, 0.95);
    color: var(--text-white);
    padding: 14px 22px;
    border-radius: 12px;
    font-family: 'IranianSans', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    animation: slideIn 0.5s ease-in-out;
}

.gh-modal i {
    font-size: 20px;
    color: #FF5252;
    transition: transform 0.5s ease-in-out;
}

.gh-modal i:hover {
    transform: scale(1.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@media (max-width: 991px) {
    .gh-header-container {
        padding: 0 16px;
    }
    .gh-logo-container {
        justify-content: flex-end;
    }
    .gh-logo {
        font-size: 26px;
    }
    .gh-logo-img {
        max-height: 44px;
        max-width: 130px;
    }
    .gh-btn-profile-mobile {
        display: flex;
        align-items: center;
    }
    .gh-hamburger {
        display: block;
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
    }
    .gh-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(18, 18, 18, 0.95);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: right 0.5s ease-in-out;
        box-shadow: -4px 0 14px rgba(0, 0, 0, 0.5);
    }
    .gh-nav.open {
        right: 0;
    }
    .gh-nav-list {
        display: flex;
        flex-direction: column;
        margin: 80px 0 20px;
        padding: 24px;
        gap: 12px;
    }
    .gh-nav-list li {
        margin: 12px 0;
    }
    .gh-nav-link {
        padding: 14px 22px;
        font-size: 16px;
    }
    .gh-nav-link::after {
        display: none;
    }
    .gh-nav-dropdown .gh-dropdown-menu {
        display: none;
        margin: 12px 24px;
        background: linear-gradient(45deg, rgba(0, 114, 111, 0.25), rgba(51, 161, 158, 0.25));
        position: static;
        box-shadow: none;
        opacity: 1;
        transform: translateY(0);
    }
    .gh-nav-dropdown.open .gh-dropdown-menu {
        display: block;
    }
    .gh-auth-buttons {
        flex-direction: column;
        padding: 24px;
        border-top: 1px solid var(--border-light);
        gap: 16px;
    }
    .gh-btn-login, .gh-btn-register, .gh-btn-profile, .gh-btn-logout {
        justify-content: center;
        width: 100%;
        text-align: center;
        padding: 12px 24px;
    }
    .gh-modal-container {
        max-width: 85%;
    }
}