/* PLACEHOLDER: Temel Değişkenler */
:root {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --primary-color: #6c5ce7;
    --accent-color: #a29bfe;
    --navbar-bg: #ffffff;
    --border-color: #e0e0e0;
}

/* PLACEHOLDER: Karanlık Mod Değişkenleri */
body.dark-mode {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f1f5f9;
    --navbar-bg: #1e293b;
    --border-color: #334155;
}

* { box-sizing: border-box; transition: all 0.3s ease; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container { max-width: 800px; margin: 0 auto; padding: 20px; }

/* Navbar Stil */
.navbar {
    background-color: var(--navbar-bg);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.nav-logo { font-weight: 700; font-size: 1.5rem; color: var(--primary-color); cursor: pointer; }
.nav-right { display: flex; gap: 15px; align-items: center; }

/* Hero Bölümü */
.hero { text-align: center; padding: 100px 20px; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.btn-main {
    background: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

/* Uygulama Alanı */
.section { display: none; }
.section.active { display: block; }

.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    background: var(--card-bg);
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-area i { font-size: 3rem; color: var(--primary-color); margin-bottom: 10px; }

.file-list { list-style: none; padding: 0; }
.file-item {
    background: var(--card-bg);
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
}

.file-actions button { background: none; border: none; cursor: pointer; color: var(--primary-color); padding: 5px; }

.btn-merge {
    width: 100%;
    padding: 15px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
}

.btn-merge:disabled { background: #bdc3c7; cursor: not-allowed; }

/* Footer */
footer { text-align: center; padding: 40px 20px; border-top: 1px solid var(--border-color); margin-top: 50px; }
.footer-links { margin-bottom: 20px; }
.footer-links a { margin: 0 10px; color: var(--primary-color); text-decoration: none; font-weight: 600; }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.ad-placeholder {
    background: #eee;
    height: 200px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #888;
    border-radius: 10px;
}

.btn-download {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.btn-download:disabled { opacity: 0.5; cursor: not-allowed; }

/* Mobil Uyumluluk */
@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .nav-logo { font-size: 1.2rem; }
}

/* PLACEHOLDER: Temizle Butonu Stili */
.btn-clear {
    width: 100%;
    padding: 12px;
    margin-top: 10px; /* Birleştir butonu ile arasında boşluk bırakır */
    background: transparent;
    color: #e74c3c; /* Kırmızımsı bir renk */
    border: 2px solid #e74c3c;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-clear:hover {
    background: #e74c3c;
    color: white;
}

/* PLACEHOLDER: Ses Önizleme Buton Stilleri */
.btn-preview {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.1rem;
    margin-right: 10px;
    padding: 5px;
    transition: transform 0.2s;
}

.btn-preview:hover {
    transform: scale(1.2);
    color: #27ae60;
}

.btn-preview.playing {
    color: #e74c3c;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
/* PLACEHOLDER: Dosya Bilgileri (Süre ve Boyut) Stili */
.file-info {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
    display: flex;
    gap: 10px;
}

.file-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}
/* --- ANIMASYONLAR --- */

/* Sayfa giriş animasyonu */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dosya listesi eklenme animasyonu */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sürükle-bırak alanı nabız efekti */
@keyframes pulse-border {
    0% { border-color: var(--primary-color); box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4); }
    70% { border-color: #27ae60; box-shadow: 0 0 0 10px rgba(108, 92, 231, 0); }
    100% { border-color: var(--primary-color); box-shadow: 0 0 0 0 rgba(108, 92, 231, 0); }
}

/* Aktif olan bölüme animasyon uygula */
.section.active {
    animation: fadeInUp 0.5s ease forwards;
}

/* Yeni eklenen dosya satırına animasyon uygula */
.file-item {
    animation: slideIn 0.3s ease forwards;
}

/* Sürükleme sırasında drop-zone efekti */
.upload-area.drag-over {
    animation: pulse-border 1.5s infinite;
    background: rgba(108, 92, 231, 0.05);
    transform: scale(1.02);
}

/* Butonlara hafif hover efekti */
.btn-main, .btn-merge, .btn-clear {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
}

.btn-main:hover, .btn-merge:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* PLACEHOLDER: İlerleme Çubuğu Stilleri */
.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #00d2ff);
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* Tanıtım Alanı Yeni Düzeni */
.info-content {
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: 30px;
    margin: 40px auto;
    max-width: 1000px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sub-item {
    padding: 20px;
    background: var(--bg-color);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.sub-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.sub-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* MODERN NAVBAR ELEMANLARI */

/* Dil Değiştirici Stili */
.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--border-color);
    padding: 4px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.lang-option {
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.lang-option.active {
    background: var(--card-bg);
    color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lang-divider {
    width: 1px;
    height: 12px;
    background: rgba(0,0,0,0.1);
    margin: 0 4px;
}

/* Tema Switcher (Toggle) Stili */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.theme-switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #334155;
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    z-index: 2;
}

input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(28px); }

.icon-sun { color: #f1c40f; font-size: 14px; }
.icon-moon { color: #f1f5f9; font-size: 14px; }

/* Karanlık modda dil bölücüsünü düzelt */
body.dark-mode .lang-divider { background: rgba(255,255,255,0.1); }

/* MODAL İÇERİK DÜZENLEMELERİ */
.modal-text {
    text-align: left;
    margin-top: 20px;
    line-height: 1.8;
    color: var(--text-color);
}

.modal-text p { margin-bottom: 15px; }

.contact-box {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    border: 1px dashed var(--primary-color);
}

/* YENİ VE BÜYÜK KAPATMA BUTONU */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px; /* Boyutu büyütüldü */
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Modalların mobil ekranlarda daha iyi sığması için */
.modal-content {
    max-height: 85vh; /* Çok uzun içeriklerde taşmayı önler */
    overflow-y: auto;
    padding-top: 50px; /* Kapatma butonuyla metin çakışmasın */
}

/* İletişim Kutusu Link Düzenlemesi */
.contact-box a {
    color: var(--primary-color); /* Sitenin ana mor rengini kullanır */
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.contact-box a:hover {
    color: var(--accent-color); /* Üzerine gelince biraz daha açık bir renk olur */
    border-bottom: 1px solid var(--accent-color);
}

/* Karanlık Mod İçin Özel Renk (Eğer ana renk çok koyu kalırsa) */
body.dark-mode .contact-box a {
    color: #a29bfe; /* Karanlık modda daha parlak, okunabilir bir lila/mor */
}

body.dark-mode .contact-box a:hover {
    color: #ffffff;
}

/* E-posta ikonunun rengini de netleştirelim */
.contact-box i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* AdSense Uyumlu Reklam Alanı Stilleri */
.ad-wrapper {
    margin: 20px 0;
    text-align: center;
}

.ad-label {
    display: block;
    font-size: 10px;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: bold;
}

.ad-slot-placeholder {
    width: 100%;
    min-height: 250px; /* Sabit yükseklik: Zıplamayı önler (CLS) */
    background: rgba(255, 255, 255, 0.05); /* Koyu modda hafif belli olur */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Buton ile Reklam Arasındaki Kritik Boşluk */
.download-btn-margin {
    margin-top: 30px !important; /* Yanlışlıkla tıklamayı önleyen 30px boşluk */
    width: 100%;
}

/* Aydınlık modda reklam kutusunun arka planı */
body.light-mode .ad-slot-placeholder {
    background: #f9f9f9;
}
/* style.css: PWA Yükleme Butonu */
.btn-pwa {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.2);
}

.btn-pwa:hover {
    transform: translateY(-2px);
    background-color: var(--accent-color);
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.3);
}

/* Mobilde sadece ikon görünsün istersen */
@media (max-width: 480px) {
    .btn-pwa span { display: none; }
    .btn-pwa { padding: 8px 12px; }
}