/* =================================================_
   1. Genel Sıfırlama ve Temel Ayarlar
   ================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background-color: #f0f4f8;
    color: #2d3748;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* =================================================_
   2. Header & Şık Modern Hamburger Menü Tasarımı
   ================================================= */
.site-header {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.logo h1 {
    font-size: 22px;
    color: #1a365d;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #1a365d, #3182ce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Masaüstü Navigasyon */
.main-nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    color: #4a5568;
    font-size: 15px;
    position: relative;
    padding: 6px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #3182ce, #63b3ed);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: #3182ce;
}

/* Kullanıcı Butonları */
.user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-giris, .btn-kayit, .btn-panel, .btn-cikis {
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-giris {
    color: #3182ce;
    border: 2px solid #3182ce;
    background: transparent;
}

.btn-giris:hover {
    background-color: rgba(49, 130, 206, 0.08);
    transform: translateY(-2px);
}

.btn-kayit, .btn-panel {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    color: #fff;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.btn-kayit:hover, .btn-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

.btn-cikis {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.btn-cikis:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

/* Hamburger Butonu (Masaüstünde Gizli) */
.menu-toggle {
    display: none;
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    z-index: 1001; /* Tıklanabilirliği garanti altına alır */
}

.menu-toggle .bar {
    display: block;
    width: 20px;
    height: 2.5px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    pointer-events: none; /* Çizgilerin tıklamayı engellemesini kesin olarak önler */
}

/* =================================================_
   3. Hero / Arama Alanı (Daktilo Yazı Efekti Dahil)
   ================================================= */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
    min-height: 45px;
}

.typing-title, .typing-desc {
    display: inline-block;
    border-right: 2px solid #60a5fa;
    white-space: pre-wrap;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #60a5fa; }
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-search-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 820px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.12);
    padding: 12px;
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-control {
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    flex: 1;
    min-width: 220px;
    background: #fff;
    color: #2d3748;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #dd6b20, #c05621);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(221, 107, 32, 0.4);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 107, 32, 0.6);
}

/* =================================================_
   4. Kategoriler Alanı
   ================================================= */
.categories-section {
    margin: 50px auto;
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: #1a365d;
    border-left: 5px solid #3182ce;
    padding-left: 12px;
    font-weight: 800;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px;
}

.category-card {
    background: #fff;
    padding: 24px 15px;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #4a5568;
    border: 1px solid rgba(0,0,0,0.04);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(49, 130, 206, 0.12);
    color: #3182ce;
    border-color: rgba(49, 130, 206, 0.3);
}

.category-card i {
    color: #3182ce;
    font-size: 28px;
    transition: transform 0.3s ease;
}

.category-card:hover i {
    transform: scale(1.15);
}

/* =================================================_
   5. Son İlanlar Alanı
   ================================================= */
.latest-ads-section {
    margin: 50px auto 70px;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-all-link {
    color: #3182ce;
    font-weight: 700;
    transition: opacity 0.2s;
}

.view-all-link:hover {
    opacity: 0.8;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 22px;
    margin-top: 22px;
}

.ad-card {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.07);
}

.ad-badge {
    display: inline-block;
    background: rgba(49, 130, 206, 0.1);
    color: #3182ce;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.ad-card h4 a {
    color: #1a365d;
    font-size: 18px;
    font-weight: 700;
    transition: color 0.2s;
}

.ad-card h4 a:hover {
    color: #3182ce;
}

.ad-location, .ad-budget, .ad-date {
    font-size: 14px;
    color: #718096;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ad-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
}

.btn-sm {
    background: linear-gradient(135deg, #38a169, #2f855a);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(56, 161, 105, 0.4);
}

/* =================================================_
   6. Footer Alanı
   ================================================= */
.site-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 18px;
    border-bottom: 2px solid #3182ce;
    padding-bottom: 6px;
    display: inline-block;
    font-weight: 700;
    color: #fff;
}

.footer-col p, .footer-col ul li {
    font-size: 14px;
    margin-bottom: 10px;
    color: #94a3b8;
}

.footer-col ul li a:hover {
    color: #60a5fa;
    padding-left: 4px;
}

.footer-col form input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    outline: none;
}

.footer-col form input::placeholder {
    color: #64748b;
}

.footer-col form button {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    color: #fff;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-col form button:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 25px;
    font-size: 13px;
    color: #64748b;
}

/* =================================================_
   7. WhatsApp Canlı Destek Butonu
   ================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =================================================_
   8. Mobil Uyumluluk & Akordeon Hamburger Menü
   ================================================= */
@media (max-width: 991px) {
    .site-header {
        padding: 5px 0;
    }

    .header-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .logo h1 {
        font-size: 16px;
        font-weight: 800;
    }

    .menu-toggle {
        display: flex;
    }

    /* Mobilde Akordeon Açılır Menü */
    .main-nav {
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.08);
        padding: 0 15px;
    }

    .main-nav.active {
        max-height: 400px;
        padding: 18px 15px;
        margin-top: 10px;
        border: 1px solid #e2e8f0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 8px;
    }

    .main-nav li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .main-nav a {
        font-size: 15px;
        width: 100%;
    }

    /* Hamburger İkonunun Çarpıya (X) Dönüşmesi */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .user-actions {
        gap: 6px;
    }

    .btn-giris, .btn-kayit, .btn-panel, .btn-cikis {
        padding: 7px 12px;
        font-size: 12px;
        border-radius: 8px;
    }

    .hero-section {
        padding: 50px 0;
    }

    .hero-content h2 {
        font-size: 20px !important;
        min-height: 50px;
    }
    
    .hero-content p {
        font-size: 13px !important;
        min-height: 40px;
        margin-bottom: 20px;
    }

    .hero-search-form {
        flex-direction: column;
        background: rgba(255, 255, 255, 0.15);
        box-shadow: none;
        padding: 10px;
        gap: 8px;
    }

    .form-control, .btn-primary {
        width: 100%;
        border-radius: 8px;
    }

    .ads-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* iOS Safari form zoom koruması */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .form-control {
        font-size: 16px;
    }
}
/* =================================================_
   Mobil Alt Gezinti Çubuğu (Bottom Navigation Bar)
   ================================================= */
.mobile-bottom-nav {
    display: none; /* Varsayılan olarak masaüstünde gizli */
}

@media (max-width: 991px) {
    /* İçeriklerin alt barın altında kalmasını önlemek için alt boşluk */
    body {
        padding-bottom: 75px; 
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.08);
        z-index: 999;
        justify-content: space-around;
        align-items: center;
        border-top: 1px solid rgba(226, 232, 240, 0.8);
        padding: 0 10px;
    }

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #718096;
        font-size: 11px;
        font-weight: 600;
        text-decoration: none;
        flex: 1;
        transition: color 0.3s ease;
        gap: 3px;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 19px;
    }

    .mobile-bottom-nav .nav-item.active,
    .mobile-bottom-nav .nav-item:hover {
        color: #3182ce;
    }

    /* Ortadaki Yüzen Eylem Düğmesi (FAB) */
    .nav-center-item {
        position: relative;
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .fab-btn {
        position: absolute;
        top: -26px;
        width: 52px;
        height: 52px;
        background: linear-gradient(135deg, #dd6b20, #c05621);
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        box-shadow: 0 6px 20px rgba(221, 107, 32, 0.4);
        border: 4px solid #f0f4f8;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
    }

    .fab-btn:hover {
        transform: scale(1.1) translateY(-2px);
    }

    /* WhatsApp butonunun mobil alt barın arkasında kalmaması için yukarı kaydırılması */
    .whatsapp-float {
        bottom: 85px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 24px !important;
    }
}