﻿/* =========================================================
   Afilta — Minimal & Classic Theme (SEO-friendly)
   (Fixed header, mobile paddings tuned, table safe on mobile)
   ========================================================= */

/* Palette */
:root {
    --accent: #1e3a8a; /* koyu mavi - ana tema rengi */
    --accent-dark: #1e40af; /* daha koyu mavi */
    --accent-light: #3b82f6; /* açık mavi */
    --text: #1f2937; /* gövde metin */
    --heading: #0f172a; /* başlıklar - çok koyu mavi */
    --muted: #4b5563; /* ikincil metin */
    --bg: #fff; /* arka plan */
    --panel: #f8fafc; /* kart/panel bg - çok açık mavi */
    --border: #cbd5e1; /* sınırlar - açık mavi */
    --table-zebra: #f1f5f9; /* zebra satır - açık mavi */
    --success: #059669; /* yeşil */
    --warning: #d97706; /* turuncu */
    --danger: #dc2626; /* kırmızı */
    --info: #0284c7; /* mavi bilgi */
    --shadow-sm: 0 1px 2px rgba(30, 58, 138, 0.1);
    --radius: 12px;
    --header-height: 64px;
    --btn-navy: #0f172a; /* lacivert */
    --btn-navy-hover: #1e293b; /* bir ton açık */
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Global headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .75rem
}

h1 {
    font-size: 1.85rem;
    margin-top:2rem;
    text-align:center
}

h2 {
    font-size: 1.75rem;
    margin-top: 2rem
}

h3 {
    font-size: 1.375rem;
    margin-top: 1.5rem
}

h4 {
    font-size: 1.125rem
}

h5 {
    font-size: 1rem;
    font-weight: 600
}

h6 {
    font-size: .875rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .3px
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none
}

    a:hover {
        text-decoration: underline;
        color: var(--accent-dark)
    }

/* ===== Header (fixed) ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.navbar {
    padding: .6rem 0
}

.navbar-brand {
    font-weight: 800;
    color: var(--heading) !important
}

.navbar-nav .nav-link {
    color: var(--text) !important;
    padding: .5rem .75rem !important;
    border-radius: 8px
}

    .navbar-nav .nav-link:hover {
        background: #f6f7f9;
        color: var(--heading) !important
    }

.navbar-toggler {
    border: 1px solid var(--border) !important;
    padding: 6px 10px !important
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23111827' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main */
.main-content {
    flex: 1;
    padding: 2rem 0;
    background: #fff;
    padding-top: calc(var(--header-height) + 8px)
}

.container {
    max-width: 1200px
}

.btn-custom {
    display: inline-block;
    border: 1px solid var(--btn-navy);
    background: var(--btn-navy);
    color: #fff;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 12px;
    transition: background .2s, border-color .2s, transform .1s;
}

    .btn-custom:hover {
        background: var(--btn-navy-hover);
        border-color: var(--btn-navy-hover);
        color: #fff; /* düzeltildi */
        text-decoration: none;
    }

    .btn-custom:active {
        transform: translateY(1px);
    }

    .btn-custom:focus {
        outline: 2px solid #93c5fd; /* erişilebilir odak halkası */
        outline-offset: 2px;
    }

.btn-outline-custom {
    display: inline-block;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
    transition: .2s
}

    .btn-outline-custom:hover {
        background: var(--accent);
        color: #fff
    }

/* Product cards */
.product-cards {
    margin: 2rem 0
}

.product-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    transition: transform .15s ease
}

    .product-card:hover {
        transform: translateY(-2px)
    }

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-bottom: 1px solid var(--border)
}

.product-info {
    padding: 1rem
}

    .product-info h3 {
        font-size: 1.15rem;
        margin: .25rem 0 .5rem;
        font-weight: 700
    }

.product-desc {
    color: var(--muted);
    font-size: .92rem
}

.product-price {
    color: var(--heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin: .5rem 0
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: .25rem
}

.feature {
    font-size: .87rem;
    color: var(--success);
    font-weight: 600
}

/* Tables (desktop) */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.25rem 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    table-layout: auto
}

    .table thead th {
        background: #111827;
        color: #fff;
        font-weight: 800;
        padding: 12px;
        border-bottom: 1px solid #0b1220
    }

    .table tbody td {
        padding: 12px;
        border-bottom: 1px solid var(--border);
        vertical-align: middle;
        word-break: break-word
    }

    .table tbody tr:nth-child(odd) {
        background: var(--table-zebra)
    }

    .table tbody tr:hover {
        background: #eef2ff
    }

    .table tbody tr:last-child td {
        border-bottom: 0
    }

.price-highlight {
    font-weight: 800;
    color: #111827
}

/* Alerts */
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 1rem 0;
    border: 1px solid var(--border)
}

.alert-info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #0b3d91
}

.alert-warning {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #7a4a00
}

.alert-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #7c1010
}

.alert-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #0f5132
}

/* =======================
   Footer (temiz & sade)
   ======================= */
.footer {
    background: #1e1e1e;
    color: #cbd5e1;
    padding: 40px 0 20px;
    font-size: 15px;
    line-height: 1.6
}

    .footer h5, .footer h6 {
        color: #fff;
        font-weight: 700;
        margin-bottom: 12px;
        font-size: 16px
    }

    .footer p {
        margin-bottom: 10px;
        color: #d1d5db
    }

    .footer .contact-item {
        margin-bottom: 6px
    }

        .footer .contact-item strong {
            color:#fff;
            font-weight: 800
        }
    /* nötr mavi etiket */
    .footer a {
        color: #cbd5e1;
        transition: .2s
    }

        .footer a:hover {
            color: #ffffff;
            text-decoration: underline
        }

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0
}

    .footer-links li {
        margin-bottom: 6px
    }

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.social-link {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #333;
    border-radius: 4px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all .2s
}

    .social-link:hover {
        background: #333;
        color: #fff
    }

.footer-divider {
    border: 0;
    height: 1px;
    margin: 20px 0;
    background: #333
}

.copyright {
    margin: 0;
    color: #94a3b8;
    font-size: 14px
}

.footer-policy {
    display: flex;
    gap: 12px
}

/* -------------- ARTICLE AREA (.icerik) -------------- */
.icerik {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    font-size: 18px;
    line-height: 1.9
}

    .icerik > * {
        margin-block: 1rem
    }

    .icerik > h1 {
        margin-block: 2rem 1.25rem
    }

    .icerik > h2 {
        margin-block: 2rem .9rem
    }

    .icerik > h3 {
        margin-block: 1.5rem .6rem
    }

    .icerik h1, .icerik h2, .icerik h3, .icerik h4, .icerik h5, .icerik h6 {
        color: #000 !important
    }

    .icerik h1 {
        font-size: clamp(1.9rem,2.2vw + 1rem,2.4rem);
        font-weight: 800;
        border-bottom: 2px solid var(--border);
        padding-bottom: .6rem
    }

    .icerik h2 {
        font-size: clamp(1.35rem,1.1vw + 1rem,1.75rem);
        font-weight: 800;
        border-bottom: 1px solid var(--border);
        padding-bottom: .5rem
    }

    .icerik h3 {
        font-size: 1.2rem;
        font-weight: 800;
        border-bottom: 1px dashed var(--border);
        padding-bottom: .4rem
    }

    .icerik p {
        color: var(--text)
    }

    .icerik strong {
        color: #111827;
        font-weight: 800
    }

    .icerik em {
        color: var(--muted)
    }

    .icerik hr {
        border: 0;
        height: 1px;
        background: var(--border);
        margin-block: 1.75rem
    }

    .icerik ul, .icerik ol {
        margin: .75rem 0 1rem 1.25rem
    }

    .icerik li {
        margin: .35rem 0
    }

    .icerik ul li::marker {
        color: #6b7280
    }

    .icerik img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 1rem auto;
        border-radius: 10px;
        border: 1px solid var(--border);
        box-shadow: var(--shadow-sm)
    }
    /* içerik içi tablolar */
    .icerik table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        table-layout: auto
    }

    .icerik thead th {
        background: #111827;
        color: #fff;
        padding: 12px;
        font-weight: 800
    }

    .icerik tbody td {
        padding: 12px;
        border-bottom: 1px solid var(--border);
        word-break: break-word
    }

    .icerik tbody tr:nth-child(odd) {
        background: var(--table-zebra)
    }

    .icerik tbody tr:hover {
        background: #eef2ff
    }

    .icerik td:last-child, .icerik th:last-child {
        text-align: right
    }

    .icerik td:first-child, .icerik th:first-child {
        text-align: left
    }

    .icerik p > strong:first-child {
        margin-right: .4rem;
        color: #111827
    }

    .icerik p:has(> strong:first-child) {
        background: #f8fafc;
        border: 1px solid var(--border);
        padding: .75rem 1rem;
        border-radius: 10px
    }

    .icerik blockquote {
        margin: 1rem 0;
        padding: 1rem 1.25rem;
        border-left: 4px solid var(--accent);
        background: #f8fafc;
        border-radius: 8px
    }

    .icerik .info {
        border: 1px solid #bfdbfe;
        background: #eff6ff;
        color: #0b3d91;
        padding: .75rem 1rem;
        border-radius: 10px
    }

    .icerik .warn {
        border: 1px solid #fcd34d;
        background: #fffbeb;
        color: #7a4a00;
        padding: .75rem 1rem;
        border-radius: 10px
    }

    .icerik .danger {
        border: 1px solid #fecaca;
        background: #fef2f2;
        color: #7c1010;
        padding: .75rem 1rem;
        border-radius: 10px
    }

/* ===================== Responsive ===================== */

/* Tablet ve altı: header daha kısa, container ve içerik kenar boşlukları küçülsün */
@media (max-width:768px) {
    :root {
        --header-height: 56px
    }

    .container {
        padding: 0 12px
    }

    .icerik {
        padding: 0 12px;
        font-size: 17.5px
    }
        /* tablolar: yatay kaydırma + daha küçük paddings */
        .table, .icerik table {
            display: block;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch
        }

            .table thead th, .icerik thead th {
                white-space: nowrap
            }

            .table tbody td, .icerik tbody td {
                padding: 10px;
                font-size: 15px
            }
    /* footer mobilde sol hizalı kalsın */
    .footer {
        text-align: left
    }

    .social-links {
        justify-content: flex-start
    }

    .footer-policy {
        justify-content: flex-start;
        margin-top: 8px
    }
}

/* Küçük telefonlar */
@media (max-width:480px) {
    .table tbody td, .icerik tbody td {
        padding: 8px;
        font-size: 14.5px
    }

    .navbar {
        padding: .5rem 0
    }
}

/* Print */
@media print {
    .header, .footer {
        display: none
    }

    body {
        background: #fff;
        color: #000
    }

    a {
        color: #000;
        text-decoration: underline
    }
}

/* ===================== Error Pages ===================== */

.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.error-content {
    padding: 2rem;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.error-icon {
    opacity: 0.8;
}

.error-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.error-subtitle {
    font-size: 1.5rem;
    color: var(--heading);
    font-weight: 600;
}

.error-description {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
}

.error-actions {
    margin: 2rem 0;
}

.error-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.error-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

.error-help h5 {
    color: var(--heading);
    margin-bottom: 1rem;
    font-weight: 600;
}

.error-help a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.error-help a:hover {
    background: var(--accent);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Error page responsive */
@media (max-width: 768px) {
    .error-title {
        font-size: 3rem;
    }
    
    .error-subtitle {
        font-size: 1.25rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .error-actions .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .error-help .row {
        text-align: center;
    }
    
    .error-help .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* ===================== Page Styles ===================== */

/* Page Headers */
.page-header {
    margin-bottom: 3rem;
}

.page-title {
    color: var(--heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* About Page */
.about-page .about-section {
    margin-bottom: 3rem;
}

.about-page .value-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.about-page .value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.about-page .feature-item {
    margin-bottom: 1.5rem;
}

.about-page .feature-icon {
    color: var(--success);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

/* Contact Page */
.contact-page .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-page .contact-icon {
    margin-right: 1rem;
    margin-top: 0.2rem;
    font-size: 1.2rem;
}

.contact-page .contact-details h6 {
    margin-bottom: 0.5rem;
    color: var(--heading);
}

.contact-page .contact-details p {
    margin-bottom: 0.25rem;
}

.contact-page .contact-details small {
    font-size: 0.875rem;
}

.contact-page .map-container {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 300px;
}

.contact-page .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.contact-page .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-page .social-link:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Service Page */
.service-page .service-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.service-page .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-page .service-contact {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.service-page .process-step {
    margin-bottom: 1rem;
}

.service-page .process-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 600;
}

.service-page .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.service-page .accordion-button {
    background: var(--panel);
    border: none;
    color: var(--heading);
    font-weight: 500;
}

.service-page .accordion-button:not(.collapsed) {
    background: var(--accent);
    color: white;
}

.service-page .accordion-button:focus {
    box-shadow: none;
    border-color: var(--accent);
}

.service-page .accordion-collapse {
    border-top: 1px solid var(--border);
}

.service-page .accordion-body {
    padding: 1rem 1.25rem;
    background: var(--panel);
    color: var(--text);
    line-height: 1.6;
}

/* Accordion show/hide states */
.service-page .accordion-collapse.show {
    display: block;
}

.service-page .accordion-collapse:not(.show) {
    display: none;
}

/* Accordion animations */
.service-page .accordion-collapse {
    transition: all 0.3s ease;
}

.service-page .accordion-button {
    cursor: pointer;
}

.service-page .accordion-button:hover {
    background: var(--accent);
    color: white;
}

/* Responsive accordion */
@media (max-width: 768px) {
    .service-page .accordion-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .service-page .accordion-body {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* KVKK Page */
.kvkk-page .kvkk-section {
    margin-bottom: 2.5rem;
}

.kvkk-page .kvkk-section h3 {
    color: var(--heading);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.kvkk-page .kvkk-list {
    list-style: none;
    padding-left: 0;
}

.kvkk-page .kvkk-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 1.5rem;
}

.kvkk-page .kvkk-list li:before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.kvkk-page .kvkk-sublist {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.kvkk-page .kvkk-sublist li {
    padding: 0.25rem 0;
    border-bottom: none;
    font-size: 0.9rem;
    color: var(--muted);
}

.kvkk-page .kvkk-sublist li:before {
    content: "◦";
    color: var(--muted);
}

.kvkk-page .contact-method {
    background: var(--panel);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Contract Page */
.contract-page .contract-section {
    margin-bottom: 2.5rem;
}

.contract-page .contract-section h3 {
    color: var(--heading);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.contract-page .contract-list {
    list-style: none;
    padding-left: 0;
}

.contract-page .contract-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 1.5rem;
}

.contract-page .contract-list li:before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.contract-page .contract-list li:last-child {
    border-bottom: none;
}

.contract-page .product-info,
.contract-page .payment-info,
.contract-page .delivery-info,
.contract-page .return-info,
.contract-page .warranty-info {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contract-page .contract-acceptance .alert {
    border: 2px solid var(--success);
    background: rgba(22, 163, 74, 0.1);
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .contact-page .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-page .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .contact-page .social-links {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .service-page .process-step {
        margin-bottom: 2rem;
    }
    
    .kvkk-page .kvkk-section h3,
    .contract-page .contract-section h3 {
        font-size: 1.25rem;
    }
    
    .contract-page .product-info .row,
    .contract-page .payment-info .row,
    .contract-page .delivery-info .row,
    .contract-page .return-info .row,
    .contract-page .warranty-info .row {
        text-align: center;
    }
    
    .contract-page .col-md-6 {
        margin-bottom: 1rem;
    }
}
