/* ATF Antalya - Layout Styles - Always Light Theme */

/* Force Light Theme */
html, body {
    background-color: #fff !important;
    color: #212529 !important;
}

/* Navbar and Logo Styling - ATF Kırmızı Teması */
.navbar-custom {
    background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 25px rgba(237, 28, 36, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0;
    margin-right: 30px;
}

.navbar-brand img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* ===== PROFESYONEL MOBİL NAVBAR TASARIMI ===== */
@media (max-width: 991.98px) {
    .navbar-custom {
        background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 50%, #8b1520 100%) !important;
        backdrop-filter: blur(25px);
        box-shadow: 
            0 10px 40px rgba(237, 28, 36, 0.4),
            0 4px 15px rgba(237, 28, 36, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        padding: 12px 0;
        position: relative;
        overflow: hidden;
        /* Mobile Performance */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
        contain: layout style paint;
        transition: all 0.1s ease-out;
    }
    
    .navbar-custom::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, 
            rgba(255, 255, 255, 0.05) 0%, 
            transparent 50%, 
            rgba(255, 255, 255, 0.05) 100%);
        pointer-events: none;
    }
    
    .navbar-brand {
        position: relative;
        z-index: 2;
    }
    
    .navbar-brand img {
        width: 55px;
        height: 55px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    }
    
    .brand-title {
        font-size: 1.3rem;
        font-weight: 800;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
        letter-spacing: 0.5px;
    }

    .navbar-toggler {
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 10px;
        padding: 8px 12px;
        position: relative;
        z-index: 2;
        transition: all 0.1s ease-out;
        /* Mobile Performance */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform, background-color;
        contain: layout style paint;
    }
    
    .navbar-toggler:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.05) translateZ(0);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        box-shadow: 
            0 20px 60px rgba(237, 28, 36, 0.3),
            0 8px 25px rgba(237, 28, 36, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
        margin-top: 20px;
        padding: 30px 25px;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.2);
        position: relative;
        z-index: 2;
    }
    
    .navbar-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 15px;
        align-items: center;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 14px 18px;
        border-radius: 12px;
        transition: all 0.1s ease-out;
        /* Mobile Performance */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform, background-color;
        contain: layout style paint;
        font-size: 0.95rem;
        font-weight: 600;
        text-align: center;
        display: block;
        background: linear-gradient(135deg, rgba(237, 28, 36, 0.08) 0%, rgba(196, 30, 58, 0.08) 100%);
        border: 2px solid rgba(237, 28, 36, 0.15);
        color: #ed1c24 !important;
        position: relative;
        overflow: hidden;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-nav .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }
    
    .navbar-nav .nav-link:hover::before {
        left: 100%;
    }
    
    .navbar-nav .nav-link:hover {
        background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
        color: white !important;
        transform: translateY(-3px);
        box-shadow: 
            0 8px 25px rgba(42, 82, 152, 0.4),
            0 4px 15px rgba(196, 30, 58, 0.3);
        border-color: transparent;
    }
    
    .navbar-nav .nav-link.active {
        background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
        color: white !important;
        box-shadow: 
            0 6px 20px rgba(237, 28, 36, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        border-color: transparent;
    }
    
    /* MOBILE İÇİN DROPDOWN VE ÇIKIŞ BUTONU DÜZENLEMESİ */
    .navbar-nav .nav-item.dropdown {
        grid-column: span 2;
        margin-top: 8px;
    }
    
    .navbar-nav .nav-item.dropdown .nav-link {
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
        border-color: rgba(220, 53, 69, 0.2);
        color: #dc3545 !important;
        font-weight: 700;
    }
    
    .navbar-nav .nav-item.dropdown .nav-link:hover {
        background: linear-gradient(135deg, #dc3545 0%, #ffc107 100%);
        color: white !important;
    }
    
    .navbar-nav .nav-item:last-child {
        grid-column: span 2;
        margin-top: 12px;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        background: linear-gradient(135deg, rgba(108, 117, 125, 0.1) 0%, rgba(73, 80, 87, 0.1) 100%);
        border-color: rgba(108, 117, 125, 0.2);
        color: #6c757d !important;
        max-width: 180px;
        margin: 0 auto;
    }
    
    .navbar-nav .nav-item:last-child .nav-link:hover {
        background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
        color: white !important;
    }
    
    /* Dropdown menü için özel stil */
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(42, 82, 152, 0.2);
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        margin-top: 10px;
    }
    
    .dropdown-item {
        padding: 12px 20px;
        border-radius: 8px;
        margin: 4px 8px;
        transition: all 0.3s ease;
        color: #ed1c24;
        font-weight: 500;
    }
    
    .dropdown-item:hover {
        background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
        color: white;
        transform: translateX(5px);
    }
}

/* ===== TABLET BOYUTU İÇİN İKİ SÜTUNLU LAYOUT ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .navbar-custom {
        background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%) !important;
        backdrop-filter: blur(25px);
        box-shadow: 
            0 10px 40px rgba(237, 28, 36, 0.4),
            0 4px 15px rgba(237, 28, 36, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        padding: 15px 0;
        position: relative;
        overflow: hidden;
    }
    
    .navbar-custom::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, 
            rgba(255, 255, 255, 0.05) 0%, 
            transparent 50%, 
            rgba(255, 255, 255, 0.05) 100%);
        pointer-events: none;
    }
    
    .navbar-brand {
        position: relative;
        z-index: 2;
    }
    
    .navbar-brand img {
        width: 60px;
        height: 60px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    }
    
    .brand-title {
        font-size: 1.4rem;
        font-weight: 800;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
        letter-spacing: 0.5px;
    }
    
    .navbar-toggler {
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 10px;
        padding: 10px 14px;
        position: relative;
        z-index: 2;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.05);
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        box-shadow: 
            0 20px 60px rgba(237, 28, 36, 0.3),
            0 8px 25px rgba(237, 28, 36, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
        margin-top: 20px;
        padding: 30px 25px;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.2);
        position: relative;
        z-index: 2;
    }
    
    /* TABLET İÇİN İKİ SÜTUNLU NAVIGASYON */
    .navbar-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px 20px;
        align-items: center;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 16px 20px;
        border-radius: 15px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
        display: block;
        background: linear-gradient(135deg, rgba(237, 28, 36, 0.08) 0%, rgba(196, 30, 58, 0.08) 100%);
        border: 2px solid rgba(237, 28, 36, 0.15);
        color: #ed1c24 !important;
        position: relative;
        overflow: hidden;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* GİRİŞ YAPILDIĞINDA TABLET LAYOUT DÜZELTMESİ */
    .navbar-nav .nav-item.dropdown {
        grid-column: span 2; /* Dropdown'u tam genişlikte göster */
        margin-top: 10px;
    }
    
    .navbar-nav .nav-item.dropdown .nav-link {
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
        border-color: rgba(220, 53, 69, 0.2);
        color: #dc3545 !important;
        font-weight: 700;
    }
    
    .navbar-nav .nav-item.dropdown .nav-link:hover {
        background: linear-gradient(135deg, #dc3545 0%, #ffc107 100%);
        color: white !important;
    }
    
    /* Çıkış butonu için özel tablet positioning */
    .navbar-nav .nav-item:last-child {
        grid-column: span 2;
        margin-top: 15px;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        background: linear-gradient(135deg, rgba(108, 117, 125, 0.1) 0%, rgba(73, 80, 87, 0.1) 100%);
        border-color: rgba(108, 117, 125, 0.2);
        color: #6c757d !important;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .navbar-nav .nav-item:last-child .nav-link:hover {
        background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
        color: white !important;
    }
    
    .navbar-nav .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }
    
    .navbar-nav .nav-link:hover::before {
        left: 100%;
    }
    
    .navbar-nav .nav-link:hover {
        background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
        color: white !important;
        transform: translateY(-3px);
        box-shadow: 
            0 8px 25px rgba(42, 82, 152, 0.4),
            0 4px 15px rgba(196, 30, 58, 0.3);
        border-color: transparent;
    }
    
    .navbar-nav .nav-link.active {
        background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
        color: white !important;
        box-shadow: 
            0 6px 20px rgba(237, 28, 36, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        border-color: transparent;
    }
    
    /* Dropdown menü için tablet optimizasyonu */
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(42, 82, 152, 0.2);
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        margin-top: 10px;
        min-width: 200px;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .dropdown-menu.show {
        display: block;
        position: static;
        transform: none;
        border: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
    }
    
    .dropdown-item {
        padding: 12px 20px;
        border-radius: 8px;
        margin: 4px 8px;
        transition: all 0.3s ease;
        color: #ed1c24;
        font-weight: 500;
        text-align: center;
    }
    
    .dropdown-item:hover {
        background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
        color: white;
        transform: translateX(5px);
    }
    
    /* Dropdown toggle için tablet styling */
    .dropdown-toggle::after {
        margin-left: 8px;
    }
}

/* ===== TABLET BOYUTU İÇİN CONTENT OPTİMİZASYONU ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Ana sayfa hero section için tablet optimizasyonu */
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .hero-section p {
        font-size: 1.2rem;
        max-width: 600px;
        margin: 0 auto 30px;
    }
    
    /* Card'lar için tablet grid layout */
    .card-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin: 40px 0;
    }
    
    .card-grid .card {
        margin-bottom: 0;
    }
    
    /* Container padding optimizasyonu */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Section spacing */
    section {
        padding: 50px 0;
    }
    
    /* Button groups için tablet layout */
    .btn-group-tablet {
        display: flex;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-group-tablet .btn {
        min-width: 150px;
        padding: 12px 20px;
    }
}

/* Sticky Footer */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding-bottom: 0;
}

footer {
    margin-top: auto;
    position: relative;
    bottom: 0;
}

/* Footer Styling */
.footer {
    background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
    color: white;
    padding: 30px 0;
    border-top: 3px solid #8b1520;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links a {
    color: white !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    transform: translateY(-1px);
}

/* Küçük ekranlar için ek optimizasyonlar */
@media (max-width: 576px) {
    .navbar-custom {
        padding: 10px 0;
    }
    
    .navbar-brand img {
        width: 45px;
        height: 45px;
    }
    
    .brand-title {
        font-size: 1.1rem;
    }
    
    .navbar-collapse {
        margin-top: 15px;
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .navbar-nav {
        gap: 10px 12px;
        max-width: 400px;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px;
        font-size: 0.9rem;
        border-radius: 10px;
        min-height: 45px;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        max-width: 160px;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-logo {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-logo img {
        width: 80px;
        height: 80px;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* Right to left user menu styling */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.user-menu .dropdown-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white !important;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-menu .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-menu .btn-outline-primary {
    color: #ed1c24;
    border-color: #ed1c24;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-menu .btn-outline-primary:hover {
    background-color: #ed1c24;
    border-color: #ed1c24;
    transform: translateY(-1px);
}

/* Cookie notification styling */
.cookie-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(237, 28, 36, 0.95);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(237, 28, 36, 0.3);
    z-index: 9999;
    backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
    .cookie-notification {
        left: auto;
        max-width: 400px;
    }
}