/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a56db;
    --primary-light: #3b82f6;
    --primary-bg: #eff6ff;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --success: #16a34a;
    --success-light: #f0fdf4;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 50%, #2563eb 100%);
    color: white;
    padding: 32px 0 28px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.logo-icon {
    font-size: 36px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.year-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-subtitle {
    font-size: 16px;
    opacity: 0.85;
    font-weight: 300;
}

/* Search */
.search-section {
    margin-top: -24px;
    position: relative;
    z-index: 10;
    padding-bottom: 8px;
}

.search-box {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
}

.search-icon {
    width: 22px;
    height: 22px;
    color: var(--gray-400);
    flex-shrink: 0;
}

#searchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 17px;
    font-family: inherit;
    color: var(--gray-800);
    background: transparent;
}

#searchInput::placeholder {
    color: var(--gray-400);
}

.clear-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.clear-btn:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.search-stats {
    padding: 8px 16px 6px;
    font-size: 13px;
    color: var(--gray-500);
    min-height: 28px;
}

/* SEO Info Cards */
.seo-info-section {
    padding: 20px 0 4px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.info-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: all 0.2s;
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.info-card-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.info-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.info-card p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
}

.info-card p strong {
    color: var(--gray-700);
}

/* Category Filters */
.filter-section {
    padding: 12px 0 8px;
}

.category-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--gray-200);
    background: white;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: var(--gray-600);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--primary-bg);
}

.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.category-btn .cat-count {
    background: rgba(0,0,0,0.08);
    padding: 1px 7px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.category-btn.active .cat-count {
    background: rgba(255,255,255,0.25);
}

/* Results */
.results-section {
    padding: 16px 0 60px;
}

.results-grid {
    display: grid;
    gap: 12px;
}

/* Card */
.ceza-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.2s;
}

.ceza-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px 0;
    gap: 16px;
}

.card-madde {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-bg);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.card-category-tag {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.card-body {
    padding: 12px 20px 16px;
}

.card-baslik {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.card-konu {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 12px;
}

.card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
}

.detail-ceza {
    background: var(--danger-light);
    color: var(--danger);
    font-weight: 700;
    font-size: 15px;
}

.detail-indirimli {
    background: var(--success-light);
    color: var(--success);
    font-weight: 600;
}

.detail-puan {
    background: var(--warning-light);
    color: var(--warning);
}

.detail-kime {
    background: var(--gray-100);
    color: var(--gray-600);
}

.detail-label {
    font-weight: 400;
    font-size: 12px;
    opacity: 0.8;
}

/* No results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-400);
}

.no-results svg {
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.no-results p {
    font-size: 15px;
}

/* e-Devlet Banner */
.edevlet-banner {
    padding: 24px 0;
}

.edevlet-link {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 20px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
}

.edevlet-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.edevlet-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.edevlet-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.edevlet-text {
    flex: 1;
}

.edevlet-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.edevlet-text span {
    font-size: 13px;
    opacity: 0.85;
}

.edevlet-arrow {
    flex-shrink: 0;
    opacity: 0.7;
}

/* FAQ Section */
.faq-section {
    padding: 0 0 48px;
}

.faq-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.faq-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
}

.faq-item[open] {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    list-style: none;
    gap: 12px;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
    color: var(--gray-400);
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: var(--gray-400);
    padding: 32px 0;
    text-align: center;
    font-size: 14px;
}

.footer strong {
    color: var(--gray-300);
}

.footer-note {
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.7;
}

/* Highlight */
mark {
    background: #fef08a;
    color: inherit;
    padding: 1px 2px;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 24px 0 20px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .logo-icon {
        font-size: 28px;
    }

    .header-subtitle {
        font-size: 14px;
    }

    #searchInput {
        font-size: 16px;
    }

    .info-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .info-card {
        padding: 14px 16px;
    }

    .info-card-icon {
        font-size: 24px;
    }

    .card-top {
        padding: 12px 16px 0;
    }

    .card-body {
        padding: 10px 16px 14px;
    }

    .card-konu {
        font-size: 14px;
    }

    .card-details {
        gap: 8px;
    }

    .detail-ceza {
        font-size: 14px;
    }

    .detail-item {
        padding: 5px 10px;
        font-size: 12px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .edevlet-link {
        padding: 16px 18px;
    }

    .edevlet-text strong {
        font-size: 14px;
    }

    .edevlet-text span {
        font-size: 12px;
    }

    .faq-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .card-details {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    z-index: 100;
}

.scroll-top:hover {
    transform: translateY(-2px);
    background: var(--primary-light);
}

.scroll-top.visible {
    display: flex;
}
