/* ============================================================
   TURQODE TOOLBOX — Açık & Modern Tema
   Palet: #FAFAFC zemin, #FFFFFF yüzey, #5B21B6 (mor) ana vurgu,
          #F59E0B (amber) ikincil vurgu, #0F172A metin, #64748B ikincil metin
   Tipografi: Display -> "Outfit", Gövde -> "Inter", Kod/Sonuç -> "JetBrains Mono"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg: #FAFAFC;
    --surface: #FFFFFF;
    --surface-2: #F4F2FB;
    --border: #E7E5F3;
    --text: #171426;
    --text-muted: #6B6580;
    --primary: #5B21B6;
    --primary-dark: #4C1D95;
    --primary-light: #EDE6FB;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --success: #16A34A;
    --danger: #DC2626;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(23,20,38,.06);
    --shadow-md: 0 8px 24px rgba(23,20,38,.08);
    --shadow-lg: 0 20px 50px rgba(91,33,182,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    background-image: radial-gradient(circle at 1px 1px, #E9E5F7 1.4px, transparent 0);
    background-size: 26px 26px;
    color: var(--text);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .display {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 .5em;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ===== NAVBAR ===== */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; max-width: 1180px; margin: 0 auto; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Outfit'; font-weight: 800; font-size: 20px; color: var(--text); flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--accent)); display:flex; align-items:center; justify-content:center; color:#fff; font-size:17px; box-shadow: var(--shadow-sm);}
.nav-collapse { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--text); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display:flex; gap:10px; align-items:center; }
.mobile-toggle {
    display: none; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
    width: 42px; height: 42px; font-size: 20px; cursor: pointer; flex-shrink: 0; align-items:center; justify-content:center;
}

.btn-primary, .tform-submit, button.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border: none; padding: 11px 22px; border-radius: 10px;
    font-weight: 700; font-size: 14.5px; cursor: pointer; box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease; display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color:#fff; }
.btn-outline {
    background: #fff; color: var(--primary); border: 1.5px solid var(--primary);
    padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 14.5px; display:inline-block;
}
.btn-outline:hover { background: var(--primary-light); }

/* ===== HERO ===== */
.hero { padding: 76px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero-badge {
    display:inline-flex; align-items:center; gap:8px; background: var(--primary-light); color: var(--primary-dark);
    padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; margin-bottom: 22px;
}
.hero h1 { font-size: 46px; max-width: 820px; margin: 0 auto 18px; line-height: 1.15; }
.hero h1 .accent-word { color: var(--primary); position: relative; }
.hero p.lead { font-size: 18px; color: var(--text-muted); max-width: 620px; margin: 0 auto 34px; }
.hero-actions { display:flex; gap:14px; justify-content:center; flex-wrap: wrap; }
.hero-stats { display:flex; justify-content:center; gap: 54px; margin-top: 56px; flex-wrap: wrap; }
.hero-stat .num { font-family:'Outfit'; font-size: 34px; font-weight: 800; color: var(--primary); }
.hero-stat .label { color: var(--text-muted); font-size: 14px; font-weight: 600; }

/* ===== SECTION ===== */
.section { padding: 60px 0; }
.section-head { text-align:center; max-width: 640px; margin: 0 auto 40px; }
.eyebrow { color: var(--accent-dark); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12.5px; }

/* ===== CATEGORY / TOOL GRID ===== */
.category-block { margin-bottom: 46px; }
.category-title { display:flex; align-items:center; gap:10px; font-size: 21px; margin-bottom: 18px; }
.category-count { background: var(--surface-2); color: var(--primary); font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }
.tool-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display:flex; flex-direction:column; gap: 10px;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.tool-icon { font-size: 26px; width:48px; height:48px; display:flex; align-items:center; justify-content:center; background: var(--primary-light); border-radius: 12px; }
.tool-card h4 { font-size: 16px; margin: 0; }
.tool-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; flex-grow: 1; }
.tool-card .tool-link { font-weight: 700; font-size: 13.5px; color: var(--primary); }

/* ===== TOOL DETAIL PAGE ===== */
.tool-header { background: linear-gradient(135deg, var(--primary-light), #fff); border-radius: var(--radius); padding: 34px; margin-bottom: 28px; border:1px solid var(--border); }
.tool-header .tool-icon { font-size: 34px; width:64px; height:64px; margin-bottom:14px; }
.tool-detail-desc { color: var(--text-muted); font-size: 15px; max-width: 760px; }
.tool-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.tool-form { display: flex; flex-direction: column; gap: 16px; max-width: 620px; }
.tfield { display: flex; flex-direction: column; gap: 6px; }
.tfield label { font-weight: 700; font-size: 13.5px; color: var(--text); }
.tfield input[type=text], .tfield input[type=number], .tfield input[type=email],
.tfield input[type=date], .tfield input[type=password], .tfield input[type=file], .tfield select, .tfield textarea {
    padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14.5px;
    font-family: inherit; background: #fff; color: var(--text); width: 100%; max-width: 100%;
}
.tfield textarea { font-family: 'JetBrains Mono', monospace; font-size: 13.5px; resize: vertical; }
.tfield input:focus, .tfield select:focus, .tfield textarea:focus { border-color: var(--primary); }
.tresult { margin-top: 26px; background: var(--surface-2); border: 1.5px dashed var(--primary); border-radius: var(--radius); padding: 22px; overflow-x: auto; max-width: 100%; }
.tresult h3 { display:flex; justify-content:space-between; align-items:center; font-size: 15px; margin-bottom: 12px; }
.tresult-code { font-family: 'JetBrains Mono', monospace; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; background: #fff; padding: 16px; border-radius: 10px; border: 1px solid var(--border); }
.btn-copy { background: #fff; border: 1px solid var(--border); padding: 5px 12px; border-radius: 8px; font-size: 12.5px; cursor: pointer; font-weight: 700; }
.tinfo { color: var(--text-muted); font-size: 13.5px; margin-top: 14px; background: #FFF7ED; border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 8px; }
.invoice-box, .invoice-table { width: 100%; }
.invoice-table { border-collapse: collapse; }
.invoice-table td, .invoice-table th { border: 1px solid var(--border); padding: 10px 12px; text-align: left; font-size: 14px; }
.invoice-table .total-row td { font-weight: 800; background: var(--primary-light); }
.feature-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.feature-list li { background: var(--surface-2); padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.pricing-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap:16px; }
.pricing-card { border:1px solid var(--border); border-radius: var(--radius); padding:20px; text-align:center; }
.pricing-card .price { font-size: 28px; font-weight: 800; color: var(--primary); margin: 10px 0; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { border: 1px solid var(--border); padding: 10px; font-size: 14px; }

/* ===== CARDS / GENERIC ===== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .hero h1 { font-size: 32px; } }

/* ===== FORMS (auth, contact) ===== */
.auth-wrap { max-width: 420px; margin: 60px auto; }
.form-group { margin-bottom: 16px; }
.form-group label { display:block; font-weight:700; font-size:13.5px; margin-bottom:6px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size:14.5px; font-family: inherit;
    box-sizing: border-box;
}

/* ===== BLOG ===== */
.blog-card { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; }
.blog-card img { width:100%; height: 170px; object-fit: cover; }
.blog-card .blog-card-body { padding: 18px; }
.blog-meta { color: var(--text-muted); font-size: 12.5px; margin-bottom: 8px; }

/* ===== FOOTER ===== */
footer { background: var(--text); color: #D9D6E8; padding: 50px 0 26px; margin-top: 60px; }
footer a { color: #fff; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 26px; margin-bottom: 30px; }
.footer-brand { font-family:'Outfit'; font-weight:800; font-size:20px; color:#fff; }
.footer-col h5 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-col a { display:block; color: #B9B4CC; font-size: 13.5px; margin-bottom: 8px; }
.newsletter-form { display:flex; gap:8px; margin-top:10px; }
.newsletter-form input { flex:1; padding: 10px 12px; border-radius: 8px; border: none; font-size: 13.5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; text-align:center; color:#8A84A3; font-size: 13px; }

/* ===== ADMIN LAYOUT ===== */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: var(--text); color:#fff; padding: 22px 16px; flex-shrink:0; }
.admin-sidebar .brand { color: #fff; margin-bottom: 26px; }
.admin-sidebar a { display:block; color:#C9C4DD; padding: 10px 14px; border-radius: 9px; font-weight:600; font-size: 14px; margin-bottom:4px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.08); color:#fff; }
.admin-main { flex: 1; padding: 30px; background: var(--bg); }
.admin-topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom: 26px; }
.stat-cards { display:grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 18px; margin-bottom: 30px; }
.stat-card { background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-card .num { font-family:'Outfit'; font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-card .label { color: var(--text-muted); font-size: 13px; font-weight:600; }
table.admin-table { width:100%; border-collapse: collapse; background:#fff; border-radius: var(--radius); overflow:hidden; }
table.admin-table th, table.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align:left; font-size: 14px; }
table.admin-table th { background: var(--surface-2); font-weight: 700; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-green { background:#DCFCE7; color:#166534; }
.badge-red { background:#FEE2E2; color:#991B1B; }
.badge-gray { background:#F1F5F9; color:#475569; }
.flash-success { background:#DCFCE7; color:#166534; padding:12px 16px; border-radius:10px; margin-bottom:20px; font-weight:600; }
.flash-error { background:#FEE2E2; color:#991B1B; padding:12px 16px; border-radius:10px; margin-bottom:20px; font-weight:600; }

/* ===================================================================
   RESPONSIVE — MOBİL & TABLET (masaüstü stilleri yukarıda varsayılan)
   =================================================================== */

/* Genel taşma koruması */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, table { max-width: 100%; }
.container { width: 100%; }

.admin-mobile-toggle { display: none; }

@media (max-width: 1024px) {
    .container { padding: 0 18px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    /* --- Genel site: hamburger menü devreye girer --- */
    .mobile-toggle { display: flex; z-index: 120; position: relative; }
    .nav-collapse {
        display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
        border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch;
        gap: 0; margin-left: 0; box-shadow: var(--shadow-md); z-index: 110; max-height: 80vh; overflow-y: auto;
    }
    .nav-collapse.open { display: flex; }
    .nav-links { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 22px; }
    .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .nav-cta { flex-direction: column; align-items: stretch; padding: 14px 22px 20px; gap: 10px; }
    .nav-cta .btn-outline, .nav-cta .btn-primary { text-align: center; width: 100%; }
    .navbar { position: sticky; }
    .navbar-inner { position: relative; }

    /* --- Admin panel: kenar çubuğu kapanır kayan menüye dönüşür --- */
    .admin-mobile-toggle {
        display: block; width: 100%; text-align: left; background: var(--text); color: #fff; border: none;
        padding: 14px 20px; font-size: 15px; font-weight: 700; cursor: pointer; position: sticky; top: 0; z-index: 250;
    }
    .admin-shell { flex-direction: column; position: relative; }
    .admin-sidebar {
        display: none; position: fixed; top: 0; left: 0; bottom: 0; z-index: 300; width: 78vw; max-width: 300px;
        overflow-y: auto; box-shadow: 0 0 40px rgba(0,0,0,.35);
    }
    .admin-sidebar.open { display: block; }
    .admin-backdrop {
        display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 280;
    }
    .admin-backdrop.open { display: block; }
    .admin-main { padding: 20px 16px; width: 100%; }
}

@media (max-width: 780px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero { padding: 44px 0 40px; }
    .hero h1 { font-size: 28px; }
    .hero p.lead { font-size: 15.5px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn-primary, .hero-actions .btn-outline { text-align: center; }
    .hero-stats { gap: 28px; }
    .hero-stat .num { font-size: 26px; }
    .section { padding: 40px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .tools-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .tool-header { padding: 22px; }
    .tool-body { padding: 20px; }
    .invoice-table, .compare-table, table.admin-table { font-size: 12.5px; }
    .invoice-table td, .invoice-table th, .compare-table td, .compare-table th { padding: 7px 8px; }
    .auth-wrap { margin: 30px auto; padding: 0 4px; }
}

@media (max-width: 520px) {
    .tools-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr; }
    .hero-badge { font-size: 12px; padding: 6px 12px; }
    .hero h1 { font-size: 23px; }
    .brand { font-size: 17px; }
    .brand-mark { width: 30px; height: 30px; font-size: 15px; }
    .btn-primary, .btn-outline { padding: 10px 16px; font-size: 13.5px; }
    .card { padding: 18px; }
    .tresult { padding: 16px; }
    .tresult-code { font-size: 12.5px; padding: 12px; }
    table.admin-table th, table.admin-table td { font-size: 12px; padding: 8px; }
    .admin-topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Dokunmatik cihazlarda tıklama alanlarını büyüt */
@media (pointer: coarse) {
    .btn-primary, .btn-outline, .tsubmit, button { min-height: 44px; }
    .nav-links a, .admin-sidebar a { min-height: 44px; display: flex; align-items: center; }
}

