:root {
    --primary-color: #ffffff;
    /* Açık arka plan */
    --primary-light: #f5f5f5;
    --primary-dark: #333333;
    /* Siyah vurgu */
    --secondary-color: #f5f5f5;
    --text-light: #333333;
    /* Siyah metin */
    --text-dark: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother transition */
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative; /* Body'i referans alması için */
    min-height: 100vh; /* Minimum yükseklik */
}

/* Material Icons */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.site-header {
    background-color: #ffcf3f;
    color: #000000;
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box; /* Padding'i genişliğe dahil et */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* max-width: 1200px; */
    margin: 0 auto;
    width: 100%;
    flex-wrap: wrap;
}

/* Logo Container */
.logo-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    padding: 0.2rem 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    -webkit-text-fill-color: var(--text-light);
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Desktop Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    gap: 1.5rem;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    font-weight: 700;  
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition), transform 0.2s ease;
    opacity: 1;  
    white-space: nowrap;
}


.nav-link:hover {
    opacity: 1;
    background-color: #FAFAD2;
    /* LightGoldenRodYellow */
    border-radius: 20px;
    transform: scale(1.05);
    /* Subtle scale effect */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    /* Lowered underline */
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-light);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active::after {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    /* Enhanced shadow */
}

.nav-link.active {
    opacity: 1;
    font-weight: 600;
    background-color: var(--primary-dark);
    color: #ffffff;
    border-radius: 20px;
}

/* User Actions */
.user-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    gap: 0.5rem;
}

.notifications {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.notifications:hover {
    transform: scale(1.1);
    /* Subtle hover effect */
}

.notification ICONS-icon {
    color: var(--text-light);
    font-size: 24px;
}

.login-btn {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}

.login-btn:hover {
    background-color: #555555;
    transform: translateY(-2px);
}

.profile-dropdown {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: var(--transition);
    font-weight: 500;
    white-space: nowrap;
}

.profile-btn:hover {
    background-color: #FAFAD2;
    transform: scale(1.05);
    /* Subtle hover effect */
}

.profile-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-icon {
    font-size: 28px;
    color: var(--text-light);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    z-index: 1001;
    overflow: hidden;
    transform-origin: top right;
    animation: fadeIn 0.2s ease-out forwards;
    top: 100%; /* Butonun hemen altında */
    margin-top: 5px;
}

.profile-dropdown.active .dropdown-content {
    display: block;
}

.dropdown-item {
    color: var(--text-dark);
    padding: 0.8rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    transform: translateX(5px);
    /* Subtle slide effect */
}

.dropdown-item .material-icons {
    font-size: 20px;
    color: var(--primary-dark);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
    z-index: 1002;
    position: relative;
    width: 32px;
    height: 32px;
    transition: var(--transition);
}

.mobile-menu-btn span {
    display: block;
    position: absolute;
    width: 24px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    left: 4px;
    transition: var(--transition);
}

.mobile-menu-btn span:nth-child(1) {
    top: 7px;
}

.mobile-menu-btn span:nth-child(2) {
    top: 14px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 21px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: #000000;
    /* Changed to match desktop text color */
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: #000000;
    /* Changed to match desktop text color */
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    background-color: #ffcf3f;
    z-index: 1001;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    will-change: transform;
    height: 100%; /* Tam yükseklik */
}

.mobile-menu.active {
    transform: translateX(0);
    right: 0;
}

.mobile-menu-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-sizing: border-box;
    min-height: 100%;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-link {
    color: #000000;
    /* Changed to match desktop nav-link */
    text-decoration: none;
    padding: 1rem;
    padding-left: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    border-radius: 8px;
    transition: var(--transition), transform 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: #FAFAD2;
    /* Match desktop nav-link hover */
    transform: scale(1.02);
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 10px;
    width: 0;
    height: 2px;
    background-color: var(--text-light);
    /* Match desktop nav-link underline */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-link.active::after,
.mobile-nav-link:hover::after {
    width: calc(100% - 20px);
}

.mobile-nav-link.active::after {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    /* Match desktop shadow */
}

.mobile-nav-link.active {
    font-weight: 600;
    background-color: var(--primary-dark);
    /* Match desktop active nav-link */
    color: #ffffff;
}

.mobile-nav-link .material-icons {
    font-size: 1.5rem;
    color: #ffffff;
    /* Match desktop icon color */
}

/* Style for the Giriş (Login) link in the mobile menu */
.mobile-nav-link[href="login.php"] {
    background-color: var(--primary-dark);
    /* Match desktop login button */
    color: #ffffff;
}

.mobile-nav-link[href="login.php"] .material-icons {
    color: #ffffff;
    /* Match desktop login button icon */
}

.mobile-nav-link[href="login.php"]:hover {
    background-color: #555555;
    /* Match desktop login button hover */
}

.mobile-nav-link[href="login.php"].active::after {
    background-color: #ffffff;
    /* Match desktop active underline */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet and Mobile CSS */
@media (max-width: 768px) {
    .site-header {
        padding: 0.8rem 1rem;
        /* Fixed typo: 'alternating' to '1rem' */
        position: sticky;
        background-color: #ffcf3f;
        /* Match desktop header */
        color: #000000;
    }

    .header-container {
        flex-wrap: nowrap;
        gap: 0.5rem;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    .logo-container {
        justify-content: flex-start;
        flex-grow: 1;
        text-align: left;
    }

    .logo {
        font-size: 1.8rem;
        max-width: none;
        white-space: nowrap;
        color: var(--text-light);
        /* Match desktop */
    }

    .main-nav {
        display: none !important;
    }

    .user-actions {
        gap: 0.5rem;
        position: absolute;
        right: 1rem;
        align-items: center;
    }

    .login-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        order: 2;
        padding: 0.3rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .mobile-menu-btn span {
        background-color: var(--text-light);
        /* Match desktop text color */
    }

    .mobile-menu-btn.active span:nth-child(1),
    .mobile-menu-btn.active span:nth-child(3) {
        background-color: #000000;
        /* Match desktop text color */
    }

    .profile-dropdown {
        display: none !important;
    }

    .mobile-menu {
        width: 75%;
        right: -100%;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 60px;
        background-color: #ffcf3f;
        /* Match desktop header */
    }

    .mobile-menu.active {
        transform: translateX(0);
        right: 0;
    }

    .mobile-nav-link {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        color: #000000;
        /* Match desktop nav-link */
    }

    .mobile-menu-overlay {
        transition: opacity 0.3s ease;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 85%;
        background-color: #ffcf3f;
        /* Match desktop header */
    }

    .logo {
        font-size: 1.6rem;
        max-width: none;
        white-space: nowrap;
        color: var(--text-light);
        /* Match desktop */
    }

    .mobile-menu-btn {
        margin-right: 0.3rem;
    }
}