/* Custom Font Family Rules */
body {
    font-family: 'Inter', sans-serif;
    color: #444;
    background-color: #fcfcfd;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Outfit', sans-serif;
    color: #1a202c;
}

/* Primary Brand Colors */
:root {
    --primary-color: #0b1c3b; /* Deep Navy Blue */
    --primary-gradient: linear-gradient(135deg, #0b1c3b 0%, #17366b 100%);
    --secondary-color: #f7b731; /* Vibrant Yellow */
    --secondary-hover: #ffca28;
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { 
    background: var(--primary-gradient) !important; 
    color: #ffffff !important; 
}
.bg-dark { background-color: #08152c !important; color: #ffffff !important; }
.text-warning { color: var(--secondary-color) !important; }

/* Buttons */
.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 8px; /* Modern soft corners */
}
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: #17366b;
    border-color: #17366b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(11, 28, 59, 0.3);
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #0b1c3b !important; /* Forces dark contrast on yellow */
    font-weight: 700;
}
.btn-warning:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: #0b1c3b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 183, 49, 0.4);
}

/* Navbar */
.site-header {
    transition: all 0.3s ease;
}
.site-header.scrolled {
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
}
.site-header.scrolled .navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}
.navbar-nav .nav-link {
    color: #4a5568 !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

/* Hero Section */
.hero-wrapper {
    background: var(--primary-gradient);
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
.hero-wrapper::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Cards & Content Blocks */
.content-card {
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    height: 100%;
    overflow: hidden;
    background: #fff;
}
.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.content-card img {
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s;
}
.content-card:hover img {
    transform: scale(1.05);
}
.card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: #0b1c3b !important;
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 2;
}

/* Form Elements */
.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(247, 183, 49, 0.25);
}

/* Transitions Utilities */
.transition-hover {
    transition: all 0.3s ease;
}
.transition-hover:hover {
    transform: translateY(-5px);
    background-color: #fff !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06) !important;
}

/* Footer */
.site-footer {
    background: #08152c;
    color: rgba(255,255,255,0.8);
}
.footer-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 50px; height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
}
.footer-links a {
    transition: padding-left 0.3s, color 0.3s;
    color: rgba(255,255,255,0.7) !important;
}
.footer-links a:hover {
    padding-left: 8px;
    color: var(--secondary-color) !important;
}

/* Utilities */
.text-justify { text-align: justify; }

/* Responsive Images & Embeds */
img { max-width: 100%; height: auto; }
.map-container { position: relative; overflow: hidden; }
.map-container iframe { max-width: 100%; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (991px altı) */
@media (max-width: 991.98px) {
    .site-header .navbar-brand {
        font-size: 1.5rem !important;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-wrapper {
        padding: 60px 0;
    }
    .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .navbar-nav .nav-link.active::after {
        display: none;
    }
    .navbar-collapse {
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        margin-top: 10px;
    }
    /* Genel spacing azaltma */
    .py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    .container.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
}

/* Mobil (767px altı) */
@media (max-width: 767.98px) {
    body { font-size: 0.95rem; }

    /* Hero */
    .hero-title { font-size: 2rem; }
    .hero-wrapper p.lead { font-size: 0.95rem; }
    .hero-wrapper { padding: 35px 0 50px; }
    .hero-wrapper .d-flex.justify-content-center {
        flex-direction: column;
        gap: 10px !important;
        padding: 0 1rem;
    }
    .hero-wrapper .btn { width: 100%; padding: 0.7rem 1rem; font-size: 0.95rem; }

    /* Sayfa başlık hero'ları */
    section.py-5.bg-dark, section.py-5.bg-primary,
    section.py-4.bg-primary, section.py-4.bg-dark {
        padding: 2rem 0 !important;
        overflow: hidden;
    }
    /* Dev dekoratif ikonları mobilde gizle */
    section .position-absolute .bi,
    section .position-absolute i[style*="font-size"] {
        display: none !important;
    }
    section.py-5.bg-dark h1, section.py-5.bg-primary h1 {
        font-size: 1.6rem !important;
    }
    section.py-5.bg-dark p.lead, section.py-5.bg-primary p.lead {
        font-size: 0.9rem !important;
    }

    /* Kartlar */
    .content-card img { height: 180px; }
    .content-card .card-body { padding: 1rem !important; }
    .content-card .card-title { font-size: 1.1rem; }
    .card-badge { top: 12px; left: 12px; padding: 4px 12px; font-size: 0.75rem; }

    /* Grid spacing */
    .row.gy-5 { --bs-gutter-y: 1.5rem; }
    .row.g-5 { --bs-gutter-x: 1rem; --bs-gutter-y: 1.5rem; }

    /* İletişim sayfası */
    .map-container iframe { height: 280px !important; }

    /* SSS Accordion */
    .accordion-button { font-size: 1rem !important; padding: 1rem !important; }
    .accordion-body { padding: 1rem !important; }

    /* Footer */
    .site-footer { text-align: center; padding-top: 2rem !important; }
    .site-footer .row.gy-4 { --bs-gutter-y: 1.5rem; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .footer-links li a { padding-left: 0 !important; }
    .site-footer .pe-lg-5 { padding-right: 0 !important; }
    .site-footer h4, .site-footer h5 { font-size: 1.1rem; }

    /* Values section overlap düzeltme */
    section[style*="margin-top: -50px"] {
        margin-top: -20px !important;
    }

    /* Genel spacing */
    .p-5 { padding: 1.5rem !important; }
    .p-4 { padding: 1.25rem !important; }
    .mb-5 { margin-bottom: 2rem !important; }
    .mt-5 { margin-top: 2rem !important; }
    .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

    /* Detay sayfaları */
    .content-body { font-size: 1rem !important; line-height: 1.7 !important; }
    .content-body h2 { font-size: 1.3rem; }
    .content-body h3 { font-size: 1.15rem; }
    .content-body ul, .content-body ol { padding-left: 1.2rem; }

    /* Form */
    .form-control-lg { font-size: 1rem; padding: 0.6rem 0.8rem; }
    .form-select-lg { font-size: 1rem; padding: 0.6rem 0.8rem; }
    .btn-lg { font-size: 1rem; padding: 0.6rem 1rem; }

    /* Admin Panel */
    .sidebar {
        width: 100% !important;
        min-height: auto !important;
        position: relative !important;
        padding-bottom: 10px;
    }
    .sidebar nav { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 10px; }
    .sidebar-link {
        padding: 8px 12px !important;
        font-size: 0.85rem;
        flex: 1 1 auto;
        text-align: center;
        border-left: none !important;
        border-radius: 6px;
    }
    .sidebar-link.active { border-left: none !important; background-color: rgba(255,255,255,0.15); border-radius: 6px; }
    .sidebar .border-top { display: none; }
    .sidebar .p-4.text-center { padding: 12px !important; }
    .sidebar .p-4.text-center h5 { font-size: 1rem; margin-bottom: 0 !important; }
    .sidebar .p-4.text-center small { display: none; }
    .sidebar .mt-auto.p-3 {
        position: relative !important;
        padding: 8px 10px !important;
    }
    .sidebar .mt-auto.p-3 .btn { font-size: 0.8rem; }
    .main-content {
        margin-left: 0 !important;
        padding: 12px !important;
    }
    .topbar {
        padding: 10px 15px !important;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .topbar h4 { font-size: 1.1rem; }
    .topbar .btn { width: 100%; }

    /* Admin tablo */
    .table th, .table td { font-size: 0.85rem; padding: 0.5rem; }
    .table .ps-4 { padding-left: 0.75rem !important; }
    .table .pe-4 { padding-right: 0.75rem !important; }
}

/* Küçük Mobil (575px altı) */
@media (max-width: 575.98px) {
    .hero-title { font-size: 1.6rem; }
    h1.display-4, h1.display-5 { font-size: 1.5rem; }
    .hero-wrapper { padding: 25px 0; }
    .hero-wrapper p.lead { font-size: 0.85rem; }

    /* Kartlar daha kompakt */
    .content-card img { height: 160px; }
    .content-card .card-title { font-size: 1rem; }
    .content-card .card-text { font-size: 0.85rem; }

    /* İletişim form */
    .map-container iframe { height: 220px !important; }

    /* Accordion daha kompakt */
    .accordion-button { font-size: 0.95rem !important; padding: 0.8rem !important; }

    /* Navbar brand */
    .site-header .navbar-brand { font-size: 1.2rem !important; }
    .site-header .navbar-brand i { font-size: 1.4rem !important; }

    /* Admin sidebar mobilde tek satır */
    .sidebar-link { font-size: 0.75rem; padding: 6px 8px !important; }
    .sidebar-link i { display: none; }

    /* Detay sayfaları */
    .content-body { font-size: 0.95rem !important; }
    .content-body h2 { font-size: 1.2rem; }

    /* Badge */
    .badge { font-size: 0.7rem; }

    /* Footer newsletter */
    .site-footer .input-group { flex-direction: column; }
    .site-footer .input-group .form-control { border-radius: 6px !important; margin-bottom: 8px; }
    .site-footer .input-group .btn { border-radius: 6px !important; width: 100%; }
}
