/* Paylaşılan Stiller: Renkler, Fontlar, Navbar, Footer vb. */

/* Renk ve Font Değişkenleri */
:root {
    /* Light Tema Renkleri */
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --background-color: #f0f2f5; /* Görseldeki daha açık arka plan */
    --surface-color: #ffffff; /* Görseldeki kartlar için beyaz */
    --text-color: #333333; /* Daha yumuşak koyu metin */
    --text-secondary-color: #666666; /* Daha yumuşak ikincil metin */
    --border-color: #e0e0e0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --focus-ring-color: #2575fc80;

    /* Font ve Köşe Yuvarlaklığı */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
}

/* Dark Tema Renkleri */
[data-theme="dark"] {
    --primary-color: #9E7FFF;
    --secondary-color: #38bdf8;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --text-secondary-color: #a3a3a3;
    --border-color: #2f2f2f;
    --focus-ring-color: #38bdf880;
}

/* Genel Sıfırlama ve Body Stilleri */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 60px; /* Reklam (90px) + Navbar (60px) yüksekliği kadar boşluk */
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Reklam Alanları 
.ad-banner {
    width: 100%;
    min-height: 90px;
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    text-align: center;
}
.header-ad {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}
.footer-ad {
    border-top: 1px solid var(--border-color);
    border-bottom: none;
}*/

/* Navbar */
.main-header {
    position: fixed;
    top: 0px; /* Reklam alanı yüksekliği */
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: background-color 0.3s ease;
}
[data-theme="dark"] .main-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-image {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Tema Değiştirme Butonu */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle-btn:hover {
    background-color: var(--border-color);
}
.theme-toggle-btn svg {
    width: 24px;
    height: 24px;
}
.moon-icon { display: none; }
.sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: block; }
[data-theme="dark"] .sun-icon { display: none; }


/* Hamburger Menü */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
}

/* Footer */
.main-footer {
    background-color: var(--surface-color);
    margin-top: 3rem;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary-color);
}
.footer-content a {
    color: var(--text-secondary-color);
    text-decoration: none;
}
.footer-content a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Genel Bileşenler: Butonlar, Form Elemanları */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-secondary {
    background-color: var(--surface-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* Form Elemanları */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--focus-ring-color);
}

/* Erişilebilirlik Odak Stilleri */
*:focus-visible {
    outline: 3px solid var(--focus-ring-color);
    outline-offset: 2px;
}

/* Nasıl Kullanılır Bölümü */
.how-to-use-section {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-top: 3rem;
}
.how-to-use-section h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.how-to-use-section ul {
    list-style-position: inside;
    padding-left: 1rem;
}
.how-to-use-section li {
    margin-bottom: 0.5rem;
}

/* Sonuç ve CTA Bölümü */
.result-container {
    margin-top: 2rem;
    padding: 2rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    text-align: center;
    animation: fadeIn 0.5s ease;
}
.result-container h3 {
    margin-bottom: 1rem;
}
.result-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobil Cihazlar İçin */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Reklam + Navbar */
    }
    .main-header {
        top: 0px;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px; /* Reklam + Navbar yüksekliği */
        flex-direction: column;
        background-color: var(--surface-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-link::after {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
