

/* 1. DEĞİŞKENLER & RENKLER */
:root {
    --primary: #4F46E5;
    --insta-grad: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    
    /* Light Mode */
    --bg-light: #FAFAFA; --surface-light: #FFFFFF; --text-light: #262626; --text-muted-light: #6B7280; --border-light: #E5E7EB;
    
    /* Dark Mode */
    --bg-dark: #0F172A; --surface-dark: #1E293B; --text-dark: #F3F4F6; --text-muted-dark: #9CA3AF; --border-dark: #334155;

    /* Varsayılan Atama */
    --bg: var(--bg-light);
    --surface: var(--surface-light);
    --text: var(--text-light);
    --text-muted: var(--text-muted-light);
    --border: var(--border-light);
    --input-bg: var(--bg-light);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --bg: var(--bg-dark);
    --surface: var(--surface-dark);
    --text: var(--text-dark);
    --text-muted: var(--text-muted-dark);
    --border: var(--border-dark);
    --input-bg: #1E1E1E;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* 2. GENEL AYARLAR */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0; padding: 0;
    transition: background 0.3s, color 0.3s;
    line-height: 1.6;
}

a { text-decoration: none; }

/* 3. ORTAK BİLEŞENLER */
.container {
    width: 100%; max-width: 800px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

/* Header Stilleri */
.header { padding: 40px 20px; text-align: center; color: white; position: relative; }
.header-home { background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%); }
.header-insta { background: var(--insta-grad); }

.header h1 { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -1px; }
.header p { opacity: 0.9; margin-top: 10px; }

/* Dark Mode Butonu */
.theme-toggle {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255,255,255,0.2); border: none; color: white;
    width: 36px; height: 36px; border-radius: 50%;
    cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.theme-toggle:hover { background: rgba(255,255,255,0.3); }

/* Geri Dön Linki */
.back-link {
    position: absolute; top: 20px; left: 20px;
    color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 600;
    background: rgba(0,0,0,0.1); padding: 5px 10px; border-radius: 6px;
    transition: 0.2s;
}
.back-link:hover { background: rgba(0,0,0,0.2); }

/* Form Elemanları */
.content { padding: 25px; }
.form-group { margin-bottom: 25px; }

label {
    display: block; font-weight: 700; font-size: 13px; margin-bottom: 8px;
    text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.5px;
}

input, select, textarea {
    width: 100%; padding: 14px; border: 1px solid var(--border);
    border-radius: 10px; font-size: 15px; box-sizing: border-box;
    background: var(--input-bg); color: var(--text); font-family: inherit;
    transition: border 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }

/* Gridler */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

/* Radio Butonlar */
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-btn {
    flex: 1; padding: 12px; border: 1px solid var(--border);
    border-radius: 8px; text-align: center; cursor: pointer;
    font-size: 14px; font-weight: 600; background: var(--surface); color: var(--text);
    transition: all 0.2s; min-width: 100px;
}
.radio-btn:hover { border-color: #999; }
.radio-btn.active {
    background: #FEF2F2; border-color: #dc2743; color: #dc2743; box-shadow: 0 0 0 1px #dc2743;
}
body.dark-mode .radio-btn.active {
    background: #2D1A1E; border-color: #E1306C; color: #E1306C; box-shadow: 0 0 0 1px #E1306C;
}

/* Butonlar */
.btn-main {
    width: 100%; color: white; padding: 16px; border: none;
    border-radius: 12px; font-weight: 700; font-size: 16px; cursor: pointer;
    transition: transform 0.1s, opacity 0.2s; margin-top: 10px;
}
.btn-insta { background: var(--insta-grad); box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3); }
.btn-main:hover { opacity: 0.95; transform: translateY(-1px); }
.btn-main:active { transform: scale(0.98); }

/* Sonuç Kutusu */
.result-box {
    background: #1e1e1e; color: #E0E0E0; border-radius: 12px; margin-top: 30px; display: none; overflow: hidden;
}
.result-header {
    background: #2d2d2d; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333;
}
.prompt-text { padding: 20px; font-family: 'Courier New', monospace; line-height: 1.6; white-space: pre-wrap; font-size: 14px; }
.copy-btn {
    background: rgba(255,255,255,0.1); color: white; border: none;
    padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 600;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); }

/* Loader */
.loader {
    border: 3px solid rgba(255,255,255,0.3); border-top: 3px solid #fff;
    border-radius: 50%; width: 20px; height: 20px;
    animation: spin 1s linear infinite; display: none; margin: 0 auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- HOME PAGE ÖZEL STİLLERİ --- */
.hero { padding: 80px 20px 100px 20px; clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); margin-bottom: -60px; text-align: center; color:white; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; position: relative; z-index: 10; padding: 0 20px; max-width: 1100px; margin: 0 auto; }
.tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px; text-align: center; box-shadow: var(--shadow); transition: transform 0.3s; display: flex; flex-direction: column; }
.tool-card:hover { transform: translateY(-5px); }
.icon-box { width: 70px; height: 70px; border-radius: 16px; margin: 0 auto 20px auto; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.btn-link { display: block; padding: 12px; border-radius: 10px; font-weight: 600; margin-top: auto; }

/* Kart Renk Temaları */
.insta-theme .icon-box { background: #FEF2F2; color: #E1306C; }
.insta-theme .btn-link { background: #E1306C; color: white; }
body.dark-mode .insta-theme .icon-box { background: #381018; }
.badge-soon { background: #F3F4F6; color: #6B7280; font-size: 12px; padding: 4px 8px; border-radius: 6px; float:right; }

/* SEO Section */
.seo-section { max-width: 800px; margin: 50px auto; padding: 0 20px; text-align: center; }
.seo-section h2 { font-size: 1.75rem; margin-bottom: 20px; color: var(--text); }
.footer { text-align: center; padding: 40px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.9rem; margin-top: 50px; }
/* Footer Linkleri */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Filtre Butonları */
/* Filtre Butonları Kutusu */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 10px;
    
    /* --- EKLENEN KISIM BAŞLANGIÇ --- */
    position: relative; /* z-index'in çalışması için zorunlu */
    z-index: 50;        /* Header'ın ve arka planın üzerine çıkması için yüksek sayı */
    margin-top: 60px;    /* Negatif margin etkisini dengelemek istersen burayı artırabilirsin (Örn: 20px) */
    margin-bottom: 30px;
    /* --- EKLENEN KISIM BİTİŞ --- */
}

.filter-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Animasyonlu Geçiş */
.tool-card {
    animation: fadeIn 0.4s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}