/* SSS Sitesi - Ana Stil Dosyası */

/* CSS Reset ve Temel Ayarlar */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #f8fafc;
    --white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 24px;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Ana Arama Bölümü */
.search-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    padding: 60px 0;
    text-align: center;
}

.search-section h2 {
    color: var(--white);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.search-section .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 32px;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.search-input-wrapper input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--primary-hover);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
    display: none;
}

/* Kategoriler */
.categories-section {
    padding: 48px 0;
}

.categories-section h3 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.category-icon {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.category-card h4 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 8px;
}

.category-count {
    color: var(--text-secondary);
    font-size: 14px;
}

/* SSS Listesi */
.faq-section {
    padding: 48px 0;
    background: var(--white);
}

.faq-section h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--white);
}

.faq-question {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-color);
}

.faq-question h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    margin-right: 16px;
}

.toggle-icon {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.2s;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-meta {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.category-tag {
    background: var(--bg-color);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--text-secondary);
}

.category-tag a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Arama Sonuçları */
.search-results-header {
    padding: 32px 0;
}

.results-header {
    max-width: 800px;
    margin: 0 auto 24px;
    padding: 0 20px;
}

.results-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.results-header p {
    color: var(--text-secondary);
}

.search-results-section {
    padding: 24px 0 48px;
}

/* Sonuç Bulunamadı */
.no-results {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.no-results svg {
    color: var(--border-color);
    margin-bottom: 24px;
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* Footer */
footer {
    background: var(--text-primary);
    color: var(--text-secondary);
    padding: 24px 0;
    margin-top: auto;
    text-align: center;
}

footer p {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .search-section {
        padding: 40px 0;
    }

    .search-section h2 {
        font-size: 24px;
    }

    .search-input-wrapper {
        flex-direction: column;
    }

    .search-btn {
        padding: 12px 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    header .container {
        flex-direction: column;
        gap: 12px;
    }

    nav a {
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}