/* ============================================
   Satış Rehberi - Genel İyileştirmeler
   ============================================ */

/* 1️⃣ Layout Düzeni */
.container {
    max-width: 1200px !important;
}

.sidebar {
    max-width: 280px !important;
}

/* Header Sticky */
.header,
.navbar {
    position: sticky !important;
    top: 0 !important;
    backdrop-filter: blur(10px) !important;
    z-index: 1050 !important;
}

/* 2️⃣ Menü ve Navigasyon */
.navbar-nav .nav-link {
    transition: all 0.15s ease !important;
    position: relative;
}

.navbar-nav .nav-link:hover {
    transition-delay: 0s !important;
}

.navbar-nav .nav-link.active {
    border-bottom: 2px solid var(--primary, #007AFF) !important;
    padding-bottom: calc(0.75rem - 2px) !important;
}

/* Dropdown hover gecikmesi */
.navbar-nav .dropdown {
    position: relative;
}

.navbar-nav .dropdown-menu {
    transition: opacity 0.15s ease, transform 0.15s ease !important;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    display: block !important;
}

.navbar-nav .dropdown:hover .dropdown-menu,
.navbar-nav .dropdown.show .dropdown-menu {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

/* Alt menüler için pointer-delay */
.navbar-nav .dropdown-menu .dropdown-submenu {
    position: relative;
}

.navbar-nav .dropdown-menu .dropdown-submenu > .dropdown-menu {
    left: 100%;
    top: 0;
    margin-left: 0.25rem;
}

/* Focus out olunca kapanma */
.navbar-nav .dropdown:not(:hover):not(.show) .dropdown-menu {
    opacity: 0;
    pointer-events: none;
}

/* 3️⃣ İçerik Sunumu - Grid Sistemleri */
.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 24px !important;
}

.jobs-grid {
    display: block !important;
    width: 100% !important;
}

.jobs-grid .job-item,
.job-item {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3) !important;
    transition: background-color 0.2s ease;
}

.jobs-grid .job-item:hover,
.job-item:hover {
    background-color: rgba(99, 102, 241, 0.05) !important;
}

.jobs-grid .job-item:last-child,
.job-item:last-child {
    border-bottom: none !important;
}

/* Fiyat Gösterimi - Alt Satıra Geçmesini Önle */
.budget-amount {
    white-space: nowrap !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    word-break: keep-all !important;
}

.job-item .d-flex {
    flex-wrap: nowrap !important;
    gap: 1rem !important;
}

.job-item .text-end {
    flex-shrink: 0 !important;
    min-width: fit-content !important;
    text-align: right !important;
}

.job-item .flex-grow-1 {
    min-width: 0 !important;
    overflow: hidden !important;
}

/* Mobilde Fiyat Gösterimi */
@media (max-width: 768px) {
    .job-item .d-flex {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .job-item .text-end {
        text-align: left !important;
        width: 100% !important;
    }
    
    .budget-amount {
        font-size: 0.9rem !important;
        white-space: normal !important;
    }
    
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .jobs-grid {
        display: block !important;
        width: 100% !important;
    }
}

/* 4️⃣ Görsel Hiyerarşi */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, var(--primary, #007AFF), transparent);
    margin: 2rem 0;
    border-radius: 2px;
}

.color-block {
    background: linear-gradient(135deg, var(--primary, #007AFF), #0051D5);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* CTA Butonları */
.btn-cta,
.cta-button {
    background: #007AFF !important;
    color: white !important;
    border: none !important;
    transition: background-color 0.2s ease !important;
    min-height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cta:hover,
.cta-button:hover {
    background: #0051D5 !important;
    color: white !important;
}

/* 5️⃣ Hamburger Menü */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    min-width: 48px;
    min-height: 48px;
}

/* Scroll kilitleme - JavaScript ile yapılacak */
body.menu-open {
    overflow: hidden !important;
}

/* Alt menüler accordion */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.submenu.open {
    max-height: 500px;
}

.navbar-nav .dropdown-menu .submenu-toggle {
    cursor: pointer;
    user-select: none;
}

.navbar-nav .dropdown-menu .submenu-toggle::after {
    content: '▼';
    float: right;
    transition: transform 0.3s ease;
}

.navbar-nav .dropdown-menu .submenu-toggle.open::after {
    transform: rotate(180deg);
}

/* 6️⃣ Görsel ve Yazı Alanları */
img {
    max-width: 100%;
    height: auto;
}

h1 {
    font-size: 1.5rem;
    line-height: 1.6;
}

body {
    font-size: 1rem;
    line-height: 1.6;
}

/* Butonlar - dokunmatik alan standardı */
button,
.btn,
a.btn {
    min-height: 48px;
    min-width: 48px;
    padding: 0.75rem 1.5rem;
}

/* 7️⃣ CTA Sabit Bar - Dark Theme & Modern */
.cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.1) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px 16px !important;
    z-index: 1040;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-bar.show {
    transform: translateY(0);
}

/* Modern CTA Butonları */
.cta-bar .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    min-height: 44px;
    flex: 1;
    max-width: 160px;
}

.cta-bar .btn-cta-primary {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.cta-bar .btn-cta-primary:hover {
    background: linear-gradient(135deg, #0051D5 0%, #003D99 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
    color: #ffffff !important;
}

.cta-bar .btn-cta-secondary {
    background: rgba(148, 163, 184, 0.1) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.cta-bar .btn-cta-secondary:hover {
    background: rgba(148, 163, 184, 0.2) !important;
    color: #ffffff !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
    transform: translateY(-2px);
}

.cta-bar .btn-cta-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.cta-bar .btn-cta-text {
    font-weight: 600;
    letter-spacing: 0.3px;
}

@media (min-width: 992px) {
    .cta-bar {
        display: none !important;
    }
}

/* Mobilde body padding ekle */
@media (max-width: 991.98px) {
    body:has(.cta-bar.show) {
        padding-bottom: 64px;
    }
}

/* 8️⃣ Breadcrumb */
.breadcrumb-nav {
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
    color: var(--primary, #007AFF);
}

.breadcrumb-nav .separator {
    margin: 0 0.5rem;
    color: var(--text-muted, #94a3b8);
}

/* 9️⃣ Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 1.25rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    body {
        font-size: 0.95rem;
    }
}

/* 🔟 Performance Optimizations */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* ============================================
   Responsive İyileştirmeler
   ============================================ */
@media (max-width: 991.98px) {
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .sidebar {
        max-width: 100%;
    }
}

/* ============================================
   📱 Mobil Kompakt Arayüz - Tüm Sayfalar İçin
   ============================================ */
@media (max-width: 768px) {
    /* Genel Spacing Azaltma */
    .container,
    .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Typography - Daha Küçük */
    h1 {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }
    
    h2 {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }
    
    h3 {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.4rem !important;
    }
    
    h4, h5, h6 {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.4rem !important;
    }
    
    body {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }
    
    p {
        margin-bottom: 0.5rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Card Optimizasyonu */
    .card {
        margin-bottom: 0.75rem !important;
        padding: 0.75rem !important;
        border-radius: 8px !important;
    }
    
    .card-body {
        padding: 0.75rem !important;
    }
    
    .card-header {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem !important;
    }
    
    .card-footer {
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Grid Gap Azaltma */
    .blog-grid,
    .jobs-grid,
    .row {
        gap: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .blog-grid,
    .jobs-grid {
        gap: 0.75rem !important;
    }
    
    /* Section Spacing */
    section,
    .section {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .section-divider {
        margin: 1rem 0 !important;
        height: 2px !important;
    }
    
    .color-block {
        padding: 0.75rem !important;
        margin: 1rem 0 !important;
    }
    
    /* Butonlar - Kompakt ama Dokunmatik */
    button,
    .btn,
    a.btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
        min-height: 40px !important;
        min-width: 40px !important;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.8rem !important;
        min-height: 36px !important;
    }
    
    .btn-lg {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
    }
    
    /* Header/Navbar Kompakt */
    .navbar {
        padding: 0.5rem 0.75rem !important;
        min-height: 56px !important;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
        padding: 0.25rem 0 !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
    }
    
    .navbar-toggler {
        padding: 0.375rem !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    /* Footer Kompakt */
    footer {
        padding: 1rem 0.75rem !important;
    }
    
    footer .container {
        padding: 0.5rem 0.75rem !important;
    }
    
    /* List Spacing */
    ul, ol {
        margin-bottom: 0.5rem !important;
        padding-left: 1.25rem !important;
    }
    
    li {
        margin-bottom: 0.25rem !important;
    }
    
    /* Table Kompakt */
    table {
        font-size: 0.8rem !important;
    }
    
    th, td {
        padding: 0.5rem !important;
    }
    
    /* Form Elements */
    .form-control,
    .form-select,
    input,
    textarea,
    select {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
        min-height: 40px !important;
    }
    
    .form-label {
        font-size: 0.875rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .form-group,
    .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    .mb-4 {
        margin-bottom: 0.75rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1rem !important;
    }
    
    /* Alert/Notification */
    .alert {
        padding: 0.75rem !important;
        font-size: 0.875rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Badge/Pill */
    .badge {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        padding: 0.5rem 0 !important;
        font-size: 0.8rem !important;
    }
    
    .breadcrumb {
        margin-bottom: 0.5rem !important;
        padding: 0.5rem 0 !important;
    }
    
    /* Spacing Utilities Override */
    .mt-3 { margin-top: 0.5rem !important; }
    .mt-4 { margin-top: 0.75rem !important; }
    .mt-5 { margin-top: 1rem !important; }
    .mb-3 { margin-bottom: 0.5rem !important; }
    .mb-4 { margin-bottom: 0.75rem !important; }
    .mb-5 { margin-bottom: 1rem !important; }
    .pt-3 { padding-top: 0.5rem !important; }
    .pt-4 { padding-top: 0.75rem !important; }
    .pt-5 { padding-top: 1rem !important; }
    .pb-3 { padding-bottom: 0.5rem !important; }
    .pb-4 { padding-bottom: 0.75rem !important; }
    .pb-5 { padding-bottom: 1rem !important; }
    .py-3 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
    .py-4 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
    .py-5 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .px-3 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
    .px-4 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .px-5 { padding-left: 1rem !important; padding-right: 1rem !important; }
    
    /* Grid Columns */
    .col-md-6,
    .col-lg-4,
    .col-lg-6 {
        margin-bottom: 0.75rem !important;
    }
    
    /* Image Optimizasyon */
    img {
        margin-bottom: 0.5rem !important;
    }
    
    /* Modal Kompakt */
    .modal-header {
        padding: 0.75rem !important;
    }
    
    .modal-body {
        padding: 0.75rem !important;
    }
    
    .modal-footer {
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Dropdown Kompakt */
    .dropdown-menu {
        font-size: 0.875rem !important;
        padding: 0.5rem 0 !important;
    }
    
    .dropdown-item {
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Nav Tabs Kompakt */
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Pagination Kompakt */
    .pagination {
        margin-bottom: 0.75rem !important;
    }
    
    .page-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
    }
    
    /* CTA Bar Zaten Kompakt */
    .cta-bar {
        padding: 8px 12px !important;
    }
    
    .cta-bar .btn-cta {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
        min-height: 40px !important;
    }
}

/* ============================================
   🎯 Ana Sayfa Feature Butonları - Tıklanabilir
   ============================================ */
.hero-features .feature-item,
.hero-features a.feature-item {
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: block !important;
    color: inherit !important;
    position: relative !important;
    z-index: 10 !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1) !important;
    user-select: none !important;
}

.hero-features .feature-item:hover,
.hero-features a.feature-item:hover {
    transform: translateY(-2px) !important;
    opacity: 0.9 !important;
}

.hero-features .feature-item:active,
.hero-features a.feature-item:active {
    transform: translateY(0) !important;
    opacity: 0.8 !important;
}

.hero-features .feature-item:focus,
.hero-features a.feature-item:focus {
    outline: 2px solid rgba(255, 255, 255, 0.3) !important;
    outline-offset: 2px !important;
}

/* Span içeriğini tıklanabilir yap */
.hero-features .feature-item span,
.hero-features a.feature-item span {
    pointer-events: none !important;
}

/* Mobilde dokunmatik feedback */
@media (max-width: 768px) {
    .hero-features .feature-item,
    .hero-features a.feature-item {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.15) !important;
        tap-highlight-color: rgba(255, 255, 255, 0.15) !important;
        touch-action: manipulation !important;
    }
    
    .hero-features .feature-item:active,
    .hero-features a.feature-item:active {
        background-color: rgba(255, 255, 255, 0.08) !important;
        transform: scale(0.98) !important;
    }
}

