/* ========================================================================== */
/*  Reset + Temel Ayarlar                                                    */
/* ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f3f4f6;
    color: #111827;
    line-height: 1.5;
}

/* Temel blok elemanlar için margin sıfırlama */
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form elemanları */
button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

/* Linkler */
a {
    color: #2563eb; /* mavi ton */
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Klavye erişilebilirliği */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f97316;   /* turuncu odak çizgisi */
    outline-offset: 2px;
}

/* ========================================================================== */
/*  Layout: Container, Genel Yapı                                            */
/* ========================================================================== */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Sayfa iskeleti */
.site-main {
    padding: 24px 0 32px;
}

/* Başlıklar */

h1 {
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #0f172a;
}

h2 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #111827;
}

p {
    margin-bottom: 12px;
    color: #374151;
    font-size: 15px;
}

/* Küçük yardımcı sınıflar */

.text-center {
    text-align: center;
}

.text-muted {
    color: #6b7280;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }

/* ========================================================================== */
/*  Header                                                                   */
/* ========================================================================== */

.site-header {
    background: #020617; /* çok koyu lacivert / siyaha yakın */
    color: #e5e7eb;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: center;
}

.logo a {
    color: #f9fafb;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.logo a:hover {
    color: #e5e7eb;
}

/* Navigation */

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.main-nav a {
    color: #e5e7eb;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.1);
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.main-nav a:hover {
    background: rgba(37, 99, 235, 0.24);
    border-color: rgba(59, 130, 246, 0.7);
    color: #f9fafb;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Daha geniş ekranlarda header düzeni yan yana */

@media (min-width: 700px) {
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

/* ========================================================================== */
/*  Grid Yapısı                                                              */
/* ========================================================================== */

.grid {
    display: grid;
    gap: 16px;
}

.grid-1 {
    grid-template-columns: 1fr;
}

@media (min-width: 700px) {
    .grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Ana sayfadaki kartlar */
.card-grid {
    margin-top: 16px;
}

/* ========================================================================== */
/*  Kartlar                                                                  */
/* ========================================================================== */

.card {
    background: #ffffff;
    padding: 18px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
}

.card h2 {
    margin-bottom: 6px;
}

.card p {
    font-size: 14px;
    color: #4b5563;
}

.card a {
    font-size: 14px;
    font-weight: 600;
}

/* ========================================================================== */
/*  Formlar                                                                  */
/* ========================================================================== */

.form-grid {
    display: grid;
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 12px;
}

@media (min-width: 700px) {
    .form-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Label ve inputlar */

label {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #111827;
}

input[type="file"],
input[type="number"],
input[type="text"],
select,
button {
    width: 100%;
    padding: 9px 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #cbd5f5;
    background-color: #ffffff;
    color: #111827;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, transform 0.08s ease;
}

input[type="file"] {
    padding: 6px 10px;
    background-color: #f9fafb;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus,
input[type="file"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
    outline: none;
}

/* Butonlar */

button {
    background: #1f2937;
    color: #f9fafb;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

button:hover {
    background: #111827;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.28);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
}

/* Form mesajları */

[id^="result-"],
#result,
#bulk-result,
#social-result {
    margin-top: 16px;
    font-size: 14px;
    color: #111827;
    background: #eef2ff;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid #c7d2fe;
    word-wrap: break-word;
}

[id^="result-"] a,
#result a,
#bulk-result a,
#social-result a {
    font-weight: 600;
}

/* Hata mesajı için yardımcı sınıf */

.result-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* ========================================================================== */
/*  Sosyal medya preset formu                                                */
/* ========================================================================== */

#platform,
#preset,
#orientation,
#format,
#resize-social,
#bulk-format,
#bulk-resize,
#resize-webp,
#resize-png,
#resize-jpeg {
    background-color: #ffffff;
}

/* File input küçük ekranlarda daha rahat görünsün */

@media (max-width: 480px) {
    input[type="file"] {
        font-size: 13px;
    }
}

/* ========================================================================== */
/*  İçerik Sayfaları (Hakkımızda, İletişim, vb.)                             */
/* ========================================================================== */

.page-content {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.35);
    margin-top: 16px;
}

.page-content h1 {
    margin-bottom: 10px;
}

.page-content p + p {
    margin-top: 4px;
}

/* ========================================================================== */
/*  Footer                                                                   */
/* ========================================================================== */

.site-footer {
    border-top: 1px solid #d1d5db;
    padding: 14px 0;
    font-size: 13px;
    color: #6b7280;
    background: #f9fafb;
    margin-top: 12px;
}

.site-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (min-width: 700px) {
    .site-footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.site-footer a {
    color: #2563eb;
    font-weight: 600;
}

.site-footer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ========================================================================== */
/*  Küçük responsive iyileştirmeler                                          */
/* ========================================================================== */

@media (max-width: 699px) {
    .site-main {
        padding-top: 20px;
        padding-bottom: 28px;
    }

    .card {
        min-height: 0;
    }
}
