/* ============================================================
   Usta Yazılımcı — Tasarım Sistemi
   Renkler: kırık beyaz zemin, koyu lacivert metin, canlı mavi vurgu,
   ölçülü turkuaz ikincil, koyu lacivert kontrast bölümler.
   Tipografi: Manrope (başlık) + Inter (gövde).
   ============================================================ */

:root {
    --color-bg: #F6F7F9;
    --color-bg-alt: #FFFFFF;
    --color-dark: #0E1830;
    --color-dark-soft: #16223F;
    --color-navy: #101B34;
    --color-accent: #2F6FED;
    --color-accent-dark: #2457C4;
    --color-teal: #14B8A6;
    --color-border: #E3E7EE;
    --color-muted: #5B6478;
    --color-white: #FFFFFF;

    --font-display: 'Manrope', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 18px;

    --shadow-card: 0 1px 2px rgba(16, 27, 52, 0.04), 0 6px 20px rgba(16, 27, 52, 0.05);
    --shadow-card-hover: 0 2px 4px rgba(16, 27, 52, 0.06), 0 14px 30px rgba(16, 27, 52, 0.09);

    --container-w: 1180px;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-navy);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--color-navy);
    line-height: 1.2;
    margin: 0 0 0.5em;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--color-muted); max-width: 68ch; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }

/* -------------------- Header -------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(246, 247, 249, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-header__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--color-navy); }
.site-header__logo img { height: 60px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--color-navy); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--color-accent); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
    .main-nav { position: fixed; inset: 76px 0 0 0; background: var(--color-bg-alt); flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 20px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
    .main-nav.is-open { transform: translateX(0); }
    .nav-toggle { display: block; }
    .header-cta .btn-text { display: none; }
}

/* -------------------- Buttons -------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 0.95rem; font-family: var(--font-body);
    cursor: pointer; border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: 0 8px 20px rgba(47, 111, 237, 0.28); }
.btn-secondary { background: transparent; color: var(--color-navy); border-color: var(--color-border); }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-on-dark { background: #fff; color: var(--color-navy); }
.btn-on-dark:hover { background: #EDEFF3; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* -------------------- Sections -------------------- */
section { padding: 88px 0; }
.section-dark { background: #F1F3F7; color: var(--color-navy); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-dark h2, .section-dark h3 { color: var(--color-navy); }
.section-dark p { color: var(--color-muted); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.eyebrow-label { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--color-accent); margin-bottom: 10px; }

/* -------------------- Hero -------------------- */
.hero { padding: 72px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__eyebrow { font-weight: 700; color: var(--color-accent); font-size: 0.95rem; margin-bottom: 14px; }
.hero__lead { font-size: 1.15rem; max-width: 46ch; }
.hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__panel { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card-hover); background: #fff; border: 1px solid var(--color-border); }
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero { padding: 40px 0 56px; }
}

/* -------------------- Problem/solution list -------------------- */
.two-col-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.compare-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 32px; }
.compare-card.is-problem { border-top: 3px solid #D64545; }
.compare-card.is-solution { border-top: 3px solid var(--color-teal); }
.compare-card ul { padding-left: 20px; margin: 0; }
.compare-card li { color: var(--color-muted); margin-bottom: 10px; }
@media (max-width: 760px) { .two-col-compare { grid-template-columns: 1fr; } }

/* -------------------- Cards / grids -------------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
    padding: 28px; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); }
.card__icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: rgba(47,111,237,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--color-accent); }
.card__icon svg { width: 22px; height: 22px; }
.card a.card-link { font-weight: 700; font-size: 0.9rem; }

.check-list { padding-left: 0; list-style: none; margin: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--color-muted); }
.check-list li::before {
    content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
    background: var(--color-teal); border-radius: 4px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* -------------------- Process timeline -------------------- */
.timeline { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--color-border); margin-left: 10px; }
.timeline__step { position: relative; padding: 0 0 40px 32px; }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__step::before {
    content: ''; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px;
    background: var(--color-accent); border-radius: 50%; border: 3px solid var(--color-bg);
}

/* -------------------- FAQ accordion -------------------- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary { cursor: pointer; padding: 20px 0; font-weight: 700; font-family: var(--font-display); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--color-accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding-bottom: 20px; }

/* -------------------- Forms -------------------- */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.92rem; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 0.96rem; background: #fff; color: var(--color-navy);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--color-accent); }
.form-field .field-error { color: #C0392B; font-size: 0.85rem; margin-top: 6px; }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.radio-group { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; }
.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 24px; font-weight: 600; }
.form-alert.success { background: rgba(20, 184, 166, 0.12); color: #0E7A6C; }
.form-alert.error { background: rgba(214, 69, 69, 0.1); color: #B23A3A; }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; }

/* -------------------- Footer -------------------- */
.site-footer { background: #FFFFFF; color: var(--color-muted); padding: 64px 0 32px; border-top: 3px solid var(--color-accent); }
.site-footer h4 { color: var(--color-accent); font-size: 0.95rem; margin-bottom: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.82rem; }
.footer-logo { height: 56px; margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer-grid a { color: var(--color-muted); display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.92rem; font-weight: 500; transition: color 0.15s ease, transform 0.15s ease; }
.footer-grid a:hover { color: var(--color-accent); transform: translateX(2px); }
.footer-grid a svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-accent); opacity: 0.75; margin-right: 2px; }
.footer-grid a:hover svg { opacity: 1; }
.footer-contact { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.footer-contact__item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--color-muted); }
.footer-contact__icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(47,111,237,0.1); color: var(--color-accent); flex-shrink: 0; margin-top: 1px; }
.footer-contact__icon svg { width: 15px; height: 15px; }
.footer-bottom { border-top: 1px solid var(--color-border); padding-top: 24px; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--color-muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* -------------------- Yüzen aksiyon butonları (telefon + WhatsApp) -------------------- */
.floating-actions {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
    display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.float-btn {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: transform 0.15s ease;
}
.float-btn:hover { transform: scale(1.06); }
.float-btn svg { width: 26px; height: 26px; fill: #fff; }
.float-btn--call { background: var(--color-accent); }
.float-btn--whatsapp { background: #25D366; }

/* -------------------- Breadcrumb -------------------- */
.breadcrumb { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-accent); }

/* -------------------- Page header band -------------------- */
.page-hero { padding: 56px 0 48px; border-bottom: 1px solid var(--color-border); }
.page-hero .eyebrow-label { margin-bottom: 12px; }

/* -------------------- Tag / badge -------------------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: rgba(47,111,237,0.1); color: var(--color-accent); }
.badge-draft { background: rgba(214,69,69,0.1); color: #B23A3A; }

/* -------------------- Blog article -------------------- */
.article-content h2 { margin-top: 2em; }
.article-content h3 { margin-top: 1.6em; }
.article-content ul, .article-content ol { color: var(--color-muted); padding-left: 22px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.article-content th, .article-content td { border: 1px solid var(--color-border); padding: 10px 14px; text-align: left; font-size: 0.94rem; }
.article-content th { background: #EFF2F7; }
.article-content { max-width: 72ch; }

/* -------------------- Utility -------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); font-weight: 600; font-size: 0.9rem; }
.pagination .is-active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
