/* Color Variables */
:root {
    --bg-color: #f5f5f7;
    --text-color: #1d1d1f;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --btn-primary: #0071e3;
    --btn-hover: #005bb5;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

body.dark-mode {
    --bg-color: #000000;
    --text-color: #f5f5f7;
    --glass-bg: rgba(28, 28, 30, 0.75);
    --glass-border: rgba(80, 80, 80, 0.5);
    --btn-primary: #2997ff;
    --btn-hover: #147ce6;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Glassmorphism Classes */
.glass-nav, .glass-panel, .glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
}

.glass-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0;
}

.glass-panel {
    border-radius: 24px;
    box-shadow: var(--box-shadow);
}

.glass-footer {
    border-top: 1px solid var(--glass-border);
    border-radius: 0;
}

/* Apple Style Buttons */
.apple-btn {
    background-color: var(--btn-primary);
    color: #fff;
    border: none;
    border-radius: 980px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}
.apple-btn:hover {
    background-color: var(--btn-hover);
    transform: scale(1.02);
    color: #fff;
}

.apple-btn-outline {
    background-color: transparent;
    color: var(--btn-primary);
    border: 1.5px solid var(--btn-primary);
    border-radius: 980px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}
.apple-btn-outline:hover {
    background-color: var(--btn-primary);
    color: #fff;
}

.btn-icon {
    background: transparent;
    color: var(--text-color);
    border: none;
    font-size: 1.2rem;
}

/* Infobox */
.apple-info-box {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.05), rgba(41, 151, 255, 0.1));
    border: 1px solid rgba(0, 113, 227, 0.2);
    border-radius: 16px;
    color: var(--text-color);
}

/* Drag & Drop Area */
.drop-zone {
    border: 2px dashed var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
}
.drop-zone:hover {
    border-color: var(--btn-primary);
    background: rgba(0, 113, 227, 0.03);
}

/* Footer Links */
.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 2.2;
}
.footer-links a:hover {
    opacity: 1;
    color: var(--btn-primary);
}

/* AdSense Overlay Screen */
#processingOverlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   Dark Mode Text Adjustments (Bootstrap Overrides)
========================================================= */
body.dark-mode .text-muted {
    color: #a1a1a6 !important; /* Apple tarzı açık ve okunaklı gri */
}

body.dark-mode .text-secondary {
    color: #98989d !important;
}

body.dark-mode .text-dark {
    color: #f5f5f7 !important;
}

/* Info Box içi metinlerin koyu modda daha net görünmesi için */
body.dark-mode .apple-info-box strong {
    color: #ffffff;
}

body.dark-mode .glass-panel h2,
body.dark-mode .glass-panel h3,
body.dark-mode .glass-panel h4,
body.dark-mode .glass-panel h5,
body.dark-mode .glass-panel h6 {
    color: #ffffff;
}


/* =========================================================
   Logo Dark Mode Uyum Ayarları
========================================================= */

/* 1. Eğer logoyu YAZI olarak kullanıyorsanız: */
body.dark-mode .navbar-brand {
    color: #ffffff !important;
}

/* 2. Eğer logo olarak bir GÖRSEL (logo.png) eklediyseniz: 
   Bu sihirli kod, siyah logoyu koyu temada otomatik olarak bembeyaz yapar! */
body.dark-mode .navbar-brand img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}


/* =========================================================
   Apple Style Range Sliders (Efekt Kaydırıcıları)
========================================================= */
.apple-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(0, 113, 227, 0.2);
    border-radius: 5px;
    outline: none;
    transition: background 0.2s;
}

.apple-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.1s;
}

.apple-slider::-webkit-slider-thumb:active {
    transform: scale(1.15);
}

/* Dark Mode Slider Uyumu */
body.dark-mode .apple-slider {
    background: rgba(255, 255, 255, 0.15);
}
body.dark-mode .apple-slider::-webkit-slider-thumb {
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}