/* ==========================================================================
   HEADER & NAVIGATION STYLES
   ========================================================================== */

/* Announcement Bar */
.announcement-bar {
    background: #2563eb;
    color: white;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.announcement-bar a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
}

.announcement-bar a:hover {
    text-decoration: underline;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #2A9D94 0%, #1A8CAB 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: white;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
}

.top-bar a:hover {
    color: white;
    transform: translateY(-1px);
}

.top-bar-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: white;
    transform: translateY(-1px);
}

.contact-link i {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    backdrop-filter: blur(4px);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-1px) scale(1.05);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 1rem;
}

.lang-item {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    font-size: inherit;
    font-weight: inherit;
}

.lang-item:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.lang-item.active,
.lang-item:disabled {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    cursor: default;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.5);
    user-select: none;
}

/* Main Header */
.main-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    min-height: 80px;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
}

.header-logo img,
.site-logo img {
    max-height: 65px;
    width: auto;
    transition: all 0.2s ease;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
}

/* Logo Responsive Breakpoints - Popüler Çözünürlükler */

/* 4K ve Ultra Wide (2560px+) */
@media (min-width: 2560px) {
    .header-logo img,
    .site-logo img {
        max-height: 70px;
    }
}

/* Desktop Large (1920px - 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .header-logo img,
    .site-logo img {
        max-height: 68px;
    }
}

/* Desktop Standard (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .header-logo img,
    .site-logo img {
        max-height: 65px;
    }
}

/* Desktop Small (1366px - 1439px) */
@media (min-width: 1366px) and (max-width: 1439px) {
    .header-logo img,
    .site-logo img {
        max-height: 63px;
    }
}

/* Laptop (1280px - 1365px) */
@media (min-width: 1280px) and (max-width: 1365px) {
    .header-logo img,
    .site-logo img {
        max-height: 60px;
    }
}

/* Laptop Small (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .header-logo img,
    .site-logo img {
        max-height: 58px;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .header-content {
        padding: 0.625rem 0;
    }
    
    .main-menu {
        gap: 0.625rem;
    }
    
    .main-menu a {
        padding: 0.5rem 0;
        font-size: 0.9rem;
        letter-spacing: -0.015em;
    }
    
    .header-logo img,
    .site-logo img {
        max-height: 42px;
    }
    
    /* Container padding */
    header .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Hamburger menu için */
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-menu {
        display: flex;
    }
}

/* Tablet Portrait (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
    .header-content {
        padding: 0.5rem 0;
    }
    
    .main-menu {
        gap: 0.5rem;
    }
    
    .main-menu a {
        padding: 0.45rem 0;
        font-size: 0.85rem;
        letter-spacing: -0.02em;
    }
    
    .header-logo img,
    .site-logo img {
        max-height: 38px;
    }
    
    /* Container padding */
    header .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Menu responsive */
    .main-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.375rem;
    }
}

/* Large Mobile Landscape (480px - 639px) */
@media (min-width: 480px) and (max-width: 639px) {
    .header-content {
        padding: 0.375rem 0;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .header-logo img,
    .site-logo img {
        max-height: 34px;
    }
    
    .main-menu {
        gap: 0.375rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-menu a {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
        letter-spacing: -0.025em;
        border-radius: 0.25rem;
        background: rgba(13, 148, 136, 0.05);
        transition: all 0.2s ease;
    }
    
    .main-menu a:hover {
        background: rgba(13, 148, 136, 0.1);
        transform: translateY(-1px);
    }
    
    /* Container padding */
    header .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Mobile Portrait (320px - 479px) */
@media (min-width: 320px) and (max-width: 479px) {
    .header-content {
        padding: 0.25rem 0;
        flex-direction: column;
        gap: 0.375rem;
        text-align: center;
    }
    
    .header-logo img,
    .site-logo img {
        max-height: 30px;
    }
    
    .main-menu {
        gap: 0.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-menu a {
        padding: 0.25rem 0.375rem;
        font-size: 0.75rem;
        letter-spacing: -0.025em;
        border-radius: 0.25rem;
        background: rgba(13, 148, 136, 0.05);
        transition: all 0.2s ease;
        min-width: 60px;
        text-align: center;
    }
    
    .main-menu a:hover {
        background: rgba(13, 148, 136, 0.1);
        transform: translateY(-1px);
    }
    
    /* Container padding */
    header .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Çok küçük ekranlar (max 319px) */
@media (max-width: 319px) {
    .header-content {
        padding: 0.25rem 0;
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .header-logo img,
    .site-logo img {
        max-height: 28px;
    }
    
    .main-menu {
        gap: 0.125rem;
        flex-direction: column;
        align-items: center;
    }
    
    .main-menu a {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        letter-spacing: -0.025em;
        border-radius: 0.25rem;
        background: rgba(13, 148, 136, 0.05);
        transition: all 0.2s ease;
        min-width: 80px;
        text-align: center;
        margin-bottom: 0.125rem;
    }
    
    .main-menu a:hover {
        background: rgba(13, 148, 136, 0.1);
    }
    
    /* Container padding */
    header .container {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
    }
}

/* Landscape orientation optimizasyonları */
@media (max-height: 500px) and (orientation: landscape) {
    .header-content {
        padding: 0.25rem 0;
    }
    
    .header-logo img,
    .site-logo img {
        max-height: 32px;
    }
    
    .main-menu a {
        padding: 0.25rem 0.375rem;
        font-size: 0.8rem;
    }
}

/* High DPI ekranlar için optimizasyon */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .header-logo img,
    .site-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch device optimizasyonları */
@media (hover: none) and (pointer: coarse) {
    .main-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.75rem;
    }
    
    .main-menu a:hover {
        transform: none;
        background: rgba(13, 148, 136, 0.1);
    }
}

/* Main Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.75rem;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: block;
    padding: 0.75rem 0;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.main-menu a:hover,
.main-menu .current-menu-item > a,
.main-menu .current-menu-parent > a {
    color: #3f85b6;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3f85b6;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.main-menu a:hover::after,
.main-menu .current-menu-item > a::after,
.main-menu .current-menu-parent > a::after {
    width: 100%;
}

/* Submenu Styles - DÜZELTME */
.main-menu .sub-menu,
.main-menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0.5rem;
    min-width: 200px;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    border: 1px solid #e5e7eb;
    
    /* Başlangıçta gizli */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

/* Submenu wrapper için */
.submenu-wrapper .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0.5rem;
    min-width: 240px;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
    border: 1px solid #e5e7eb;
    
    /* Başlangıçta gizli - hidden class'ını override et */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.2s ease !important;
    display: block !important; /* hidden class'ını override et */
}

/* Hover durumunda göster */
.main-menu li:hover > .sub-menu,
.main-menu li:hover > .submenu,
.submenu-wrapper:hover .submenu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Group hover için de */
.group:hover .group-hover\:block {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.main-menu .sub-menu a,
.main-menu .submenu a,
.submenu-wrapper .submenu a {
    padding: 0.75rem 1rem;
    color: #64748b;
    border-bottom: none;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.main-menu .sub-menu a:hover,
.main-menu .submenu a:hover,
.submenu-wrapper .submenu a:hover {
    background: #f8fafc;
    color: #2A9D94;
}

.main-menu .sub-menu a::after,
.main-menu .submenu a::after {
    display: none;
}

/* User Area */
.header-user-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* User Dropdown - Fixed */
.user-dropdown {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 0.5rem;
    transition: background 0.2s ease;
}

.user-toggle:hover {
    background: #f1f5f9;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
    color: #374151;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-toggle i {
    color: #9ca3af;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.user-dropdown.active .user-toggle i {
    transform: rotate(180deg);
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    z-index: 1000;
    border: 1px solid #e5e7eb;
    
    /* Başlangıçta gizli */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

/* Show state - sadece .show class'ı ile görünür */
.user-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hidden state - .hidden class'ı ile gizli */
.user-menu.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: background 0.2s ease;
}

.user-menu-item:hover {
    background: #f8fafc;
    color: #0d9488;
}

.user-menu-item i {
    color: #9ca3af;
    width: 16px;
    text-align: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: #374151;
    transition: all 0.2s ease;
    margin: 2px 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-content {
    padding: 2rem 1rem;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-item > a {
    display: block;
    padding: 1rem 0;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mobile-menu-item > a:hover {
    color: #3f85b6;
}

.mobile-submenu {
    display: none;
    padding-left: 1rem;
}

.mobile-submenu.show {
    display: block;
}

.mobile-submenu a {
    display: block;
    padding: 0.5rem 0;
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.mobile-submenu a:hover {
    color: #3f85b6;
}

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal.show {
    opacity: 1;
    visibility: visible;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.login-modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.login-modal.show .login-modal-content {
    transform: scale(1);
}

.login-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.login-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.login-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.login-modal-body {
    padding: 1.5rem;
}

.login-modal-body p {
    margin-bottom: 1.5rem;
    color: #6b7280;
    line-height: 1.6;
}

.login-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .user-name {
        display: none;
    }

    .top-bar-left,
    .top-bar-right {
        gap: 0.75rem;
    }

    .contact-link span {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .auth-buttons {
        justify-content: center;
    }

    .top-bar {
        padding: 0.375rem 0;
        font-size: 0.75rem;
    }

    .language-switcher {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-links a {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .top-bar-left {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .login-modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .login-modal-header {
        padding: 1rem;
    }

    .login-modal-body {
        padding: 1rem;
    }
}

/* Quick Access Section */
.quick-access-section {
    background: linear-gradient(135deg, rgba(42, 157, 148, 0.05) 0%, rgba(26, 140, 171, 0.1) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.quick-access-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(42, 157, 148, 0.3) 0%, rgba(26, 140, 171, 0.1) 70%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    z-index: 1;
}

.quick-access-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(26, 140, 171, 0.3) 0%, rgba(42, 157, 148, 0.1) 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    z-index: 1;
}

.quick-access-section h2,
.quick-access-section .container h2 {
    position: relative;
    z-index: 2;
}

.quick-access-section .text-teal-600 {
    background: linear-gradient(90deg, #2A9D94, #1A8CAB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quick-access-section a {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.quick-access-section a:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.quick-access-section .icon-container {
    width: 4rem;
    height: 4rem;
    background: rgba(42, 157, 148, 0.1);
    color: #0d9488;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.quick-access-section a:hover .icon-container {
    background: #0d9488;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.2);
}

.quick-access-section .grid {
    position: relative;
    z-index: 2;
}

.quick-access-section .bg-white {
    border-radius: 1rem;
    border: 1px solid rgba(42, 157, 148, 0.1);
}

.quick-access-section a:hover .bg-white {
    border-color: rgba(42, 157, 148, 0.3);
    background: rgba(42, 157, 148, 0.03);
}

.quick-access-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.quick-access-section p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   FOOTER STYLES - ESKİ YEŞİL GRADIENT RENKLERİ İLE
   ========================================================================== */

/* Modern Footer - Butonlarla Uyumlu Renk */
.modern-footer {
    background: linear-gradient(135deg, #2A9D94 0%, #1A8CAB 100%);
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.modern-footer > * {
    position: relative;
    z-index: 2;
}

.footer-heading {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.7));
    border-radius: 1px;
}

.modern-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modern-footer ul li {
    margin-bottom: 0.75rem;
}

.modern-footer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-footer-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.modern-footer-link::before {
    content: '→';
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}

.modern-footer-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Social Links */
.modern-footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modern-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255,255,255,0.8);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modern-footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Footer Contact Info */
.modern-footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.8);
}

.modern-footer-contact i {
    color: #ffffff;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.modern-footer-contact span {
    line-height: 1.5;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: white;
}

/* Back to Top Button - Yeşil Tema */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
    background: linear-gradient(135deg, #0f766e, #0d9488);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .modern-footer > .container {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .footer-bottom {
        margin-top: 1rem;
    }
    
    .footer-bottom .flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .modern-footer-social {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Responsive Design - Laptop Optimizasyonu */
@media (max-width: 1600px) {
    .header-content {
        padding: 0.5rem 0;
    }
    
    .main-menu {
        gap: 0.5rem;
    }
    
    .main-menu a {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
}

@media (max-width: 1400px) {
    .main-menu {
        gap: 0.375rem;
    }
    
    .main-menu a {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
    
    .header-logo img,
    .site-logo img {
        max-height: 45px;
    }
}

@media (max-width: 1280px) {
    .main-menu {
        gap: 0.25rem;
    }
    
    .main-menu a {
        font-size: 0.8rem;
        padding: 0.375rem 0;
    }
    
    .header-logo img,
    .site-logo img {
        max-height: 40px;
    }
    
    .header-content {
        padding: 0.375rem 0;
        min-height: 60px;
    }
}

/* MacBook özel optimizasyonu */
@media (min-width: 1024px) and (max-width: 1600px) {
    .main-menu a {
        font-weight: 500;
        letter-spacing: -0.025em;
        transition: all 0.15s ease;
    }
    
    .main-menu a:hover::after,
    .main-menu .current-menu-item > a::after,
    .main-menu .current-menu-parent > a::after {
        width: 80%;
    }
}

/* =============================================================================
   Ana site header — logo ölçüsü, menü sıkılığı, hizalama (Medwork primary bar)
   ============================================================================= */

.medwork-site-header .medwork-header-inner {
    min-height: 3.75rem;
}

/* Mobil (<lg): tek satır — logo solda, orta menü gizli, sağda hesap + hamburger ikonları */
@media (max-width: 1023px) {
    .medwork-site-header .medwork-header-inner {
        justify-content: space-between;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
        min-height: 3.75rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .medwork-site-header .medwork-header-nav-wrap {
        display: none !important;
    }

    .medwork-site-header .medwork-header-logo-row {
        flex: 1 1 auto;
        min-width: 0;
    }

    .medwork-site-header .medwork-header-actions {
        flex: 0 0 auto;
        gap: 0.35rem;
    }

    .medwork-site-header .site-logo img.custom-logo,
    .medwork-site-header .site-logo img {
        max-height: clamp(48px, 13vw, 58px);
        min-height: 0;
    }
}

/* Telefon (≤768): bar ferah + ikon kutuları eşit (tablet 769–1023 ayrı) */
@media (max-width: 768px) {
    .medwork-site-header .medwork-header-inner {
        min-height: 5.125rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    /* Hesap + hamburger — logo ile hafif kontrast (ikon biraz daha küçük) */
    .medwork-site-header .medwork-header-actions .medwork-header-icon-btn {
        width: 3.375rem !important;
        height: 3.375rem !important;
        min-width: 3.375rem !important;
        min-height: 3.375rem !important;
        box-sizing: border-box;
    }

    .medwork-site-header .medwork-header-account-avatar {
        width: 30px;
        height: 30px;
    }

    /* 54px kutu — hamburger çizgileri ortalı */
    .medwork-site-header #mobile-menu-toggle .bar1 {
        top: 16px;
        left: 14px;
    }

    .medwork-site-header #mobile-menu-toggle .bar2 {
        top: 26px;
        left: 14px;
    }

    .medwork-site-header #mobile-menu-toggle .bar3 {
        top: 36px;
        left: 14px;
    }

    /* Logo — bir tık daha büyük optik boy */
    .medwork-site-header .site-logo img.custom-logo,
    .medwork-site-header .site-logo img {
        max-height: clamp(72px, 22vw, 92px);
    }

    .medwork-site-header .site-logo .custom-logo-link {
        max-width: min(415px, 63vw);
    }

    /* X animasyonu */
    .medwork-site-header #mobile-menu-toggle.active .bar1,
    body.mobile-menu-open .medwork-site-header #mobile-menu-toggle .bar1 {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .medwork-site-header #mobile-menu-toggle.active .bar3,
    body.mobile-menu-open .medwork-site-header #mobile-menu-toggle .bar3 {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

@media (min-width: 1024px) {
    .medwork-site-header .medwork-header-inner {
        min-height: 4rem;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .medwork-site-header .medwork-header-logo-row {
        flex: 0 0 auto;
        width: auto;
        display: block;
    }

    .medwork-site-header .medwork-header-nav-wrap {
        display: flex !important;
    }

    .medwork-site-header .medwork-header-actions {
        flex: 0 0 auto;
        width: auto;
        margin-left: auto;
    }
}

/* Mobil header ikon düğmeleri (hesap + hamburger) — aynı kutu ölçüsü */
.medwork-site-header .medwork-header-icon-btn {
    box-sizing: border-box;
    position: relative;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0.5rem;
    background: rgba(63, 133, 182, 0.1);
    color: #3f85b6;
    cursor: pointer;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.medwork-site-header .medwork-header-icon-btn:hover {
    background: rgba(63, 133, 182, 0.18);
}

.medwork-site-header .medwork-header-icon-btn:focus-visible {
    outline: 2px solid #3f85b6;
    outline-offset: 2px;
}

.medwork-site-header .medwork-header-account-avatar {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
}

.medwork-site-header .medwork-mobile-account-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 1300;
    min-width: 11.75rem;
    padding: 0.35rem 0;
    margin: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow:
        0 12px 32px rgba(15, 23, 42, 0.12),
        0 4px 12px rgba(15, 23, 42, 0.06);
}

.medwork-site-header .medwork-mobile-account-dropdown__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.medwork-site-header .medwork-mobile-account-dropdown__link:hover {
    background: rgb(42 157 148 / 0.09);
    color: #0f766e;
}

.medwork-site-header .medwork-mobile-account.is-open > .medwork-header-icon-btn--account {
    background: rgba(63, 133, 182, 0.18);
}

.medwork-site-header .site-logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.medwork-site-header .site-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: min(300px, 46vw);
}

.medwork-site-header .site-logo img.custom-logo,
.medwork-site-header .site-logo img {
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (min-width: 1024px) {
    .medwork-site-header .site-logo img.custom-logo,
    .medwork-site-header .site-logo img {
        max-height: clamp(44px, 5.35vw, 60px);
        min-height: 42px;
    }
}

@media (min-width: 1280px) {
    .medwork-site-header .site-logo img.custom-logo,
    .medwork-site-header .site-logo img {
        max-height: 60px;
    }
}

/* Ana menü linkleri — düşük gap + kompakt padding (walker .nav-link) */
.medwork-site-header nav .main-navigation {
    gap: 0.125rem !important;
    align-items: center;
    flex-wrap: nowrap;
}

@media (min-width: 1024px) {
    .medwork-site-header .main-navigation > .nav-item > .nav-link {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.9375rem !important;
        font-weight: 600 !important;
        letter-spacing: -0.02em !important;
        line-height: 1.25 !important;
        color: #334155 !important;
        border-radius: 0.375rem;
        white-space: nowrap;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .medwork-site-header .main-navigation > .nav-item > .nav-link:hover,
    .medwork-site-header .main-navigation > .nav-item > .nav-link:focus-visible {
        color: #0f766e !important;
        background-color: rgb(42 157 148 / 0.09);
        outline: none;
    }

    .medwork-site-header .main-navigation > .nav-item > .nav-link.current {
        color: #0f766e !important;
        background-color: rgb(42 157 148 / 0.1);
    }

    .medwork-site-header .main-navigation .nav-link.has-submenu::after {
        margin-left: 0.28rem !important;
        font-size: 0.68rem !important;
    }

    /* Alt menü paneli — ana satır ile aynı teal vurgu ve sıkı tipografi */
    .medwork-site-header .main-navigation > .nav-item > .submenu {
        margin-top: 0.3rem !important;
        padding: 0.3rem 0 !important;
        min-width: 11.75rem !important;
        border-radius: 0.625rem !important;
        border: 1px solid rgb(226 232 240 / 0.95) !important;
        box-shadow:
            0 12px 32px rgb(15 23 42 / 0.09),
            0 4px 12px rgb(42 157 148 / 0.07) !important;
        background: #fff !important;
        overflow: hidden !important;
    }

    .medwork-site-header .main-navigation .submenu .submenu-item {
        margin: 0 !important;
        padding: 0 !important;
    }

    .medwork-site-header .main-navigation .submenu .submenu-link {
        padding: 0.42rem 0.62rem 0.42rem 0.72rem !important;
        margin: 0.125rem 0.3rem !important;
        border-radius: 0.375rem !important;
        border-left: none !important;
        font-size: 0.9375rem !important;
        font-weight: 600 !important;
        letter-spacing: -0.02em !important;
        line-height: 1.28 !important;
        color: #334155 !important;
        transform: none !important;
        transition:
            background-color 0.15s ease,
            color 0.15s ease !important;
    }

    .medwork-site-header .main-navigation .submenu .submenu-link:hover,
    .medwork-site-header .main-navigation .submenu .submenu-link:focus-visible {
        background-color: rgb(42 157 148 / 0.09) !important;
        color: #0f766e !important;
        transform: none !important;
        outline: none !important;
    }

    .medwork-site-header .main-navigation .submenu .submenu-link.active {
        background-color: rgb(42 157 148 / 0.11) !important;
        color: #0f766e !important;
        transform: none !important;
    }
}

/* Sağ blok: tutarlı boşluk, gereksiz ml yok */
.medwork-site-header .medwork-header-actions .btn-primary,
.medwork-site-header .medwork-header-actions .btn-secondary {
    min-width: 0;
}

/* =============================================================================
   Misafir — mobil hesap: ortalanmış modal (Giriş / Kayıt)
   ============================================================================= */

.medwork-mobile-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-bottom, 0px));
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    padding-top: max(1rem, env(safe-area-inset-top, 0px));
    box-sizing: border-box;
}

.medwork-mobile-auth-modal.is-open {
    display: flex;
}

.medwork-mobile-auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.medwork-mobile-auth-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 22rem;
    margin: auto;
    padding: 1.85rem 1.5rem 1.5rem;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 52%, #f1f5f9 100%);
    border: 1px solid rgb(226 232 240 / 0.96);
    border-radius: 1.25rem;
    box-shadow:
        0 24px 52px rgb(15 23 42 / 0.14),
        0 10px 26px rgb(13 148 136 / 0.09);
    animation: medworkMobileAuthModalIn 0.28s ease-out;
}

@keyframes medworkMobileAuthModalIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .medwork-mobile-auth-modal__dialog {
        animation: none;
    }
}

.medwork-mobile-auth-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 9999px;
    background: rgb(241 245 249 / 0.95);
    color: #64748b;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.medwork-mobile-auth-modal__close:hover {
    background: #e2e8f0;
    color: #334155;
}

.medwork-mobile-auth-modal__icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgb(42 157 148 / 0.14), rgb(62 189 180 / 0.18));
    color: #0f766e;
    font-size: 1.65rem;
}

.medwork-mobile-auth-modal__title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: #0f172a;
    text-align: center;
}

.medwork-mobile-auth-modal__lead {
    margin: 0 0 1.35rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #475569;
    text-align: center;
}

.medwork-mobile-auth-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* Intro ile uyumlu petrol birincil / çerçeveli ikincil */
.medwork-mobile-auth-modal .medwork-mobile-auth-modal__cta.btn-primary {
    background: linear-gradient(135deg, var(--primary, #2a9d94) 0%, var(--primary-dark, #1a8cab) 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 22px rgba(22, 112, 128, 0.35) !important;
    text-decoration: none !important;
}

.medwork-mobile-auth-modal .medwork-mobile-auth-modal__cta.btn-primary:hover {
    background: linear-gradient(135deg, #238f87 0%, #157896 100%) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(22, 112, 128, 0.38) !important;
}

.medwork-mobile-auth-modal .medwork-mobile-auth-modal__cta.btn-secondary {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #0f766e !important;
    border: 2px solid rgba(15, 118, 110, 0.38) !important;
    box-shadow: 0 2px 14px rgba(15, 118, 110, 0.12) !important;
    text-decoration: none !important;
}

.medwork-mobile-auth-modal .medwork-mobile-auth-modal__cta.btn-secondary:hover {
    background: #fff !important;
    color: #0d6960 !important;
    border-color: #0f766e !important;
}