/* Cevabı NET v2 — Minimal Stil */

:root {
    --c-red: #e8342e;
    --c-dark: #1a1a1a;
    --c-text: #3c4043;
    --c-muted: #70757a;
    --c-light: #f8f9fa;
    --c-border: #dfe1e5;
    --c-bg: #fff;
    --c-link: #1a0dab;
    --c-url: #006621;
    --radius: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== MINIBAR ===== */
.minibar {
    background: var(--c-light);
    border-bottom: 1px solid var(--c-border);
    padding: 4px 0;
}
.minibar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.minibar a {
    color: var(--c-muted);
    text-decoration: none;
    font-size: 12px;
}
.minibar a:hover { color: var(--c-dark); }
.minibar-right { display: flex; gap: 16px; }

/* Searchbar gizle */
.no-searchbar .searchbar { display: none; }

/* ===== SEARCHBAR ===== */
.searchbar {
    border-bottom: 1px solid var(--c-border);
    padding: 8px 0;
    background: var(--c-bg);
}
.searchbar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.searchbar-form {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0;
}
.searchbar-form input {
    width: 100%;
    padding: 8px 14px;
    border: 1px solid var(--c-border);
    border-radius: 50px 0 0 50px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.searchbar-form input:focus { border-color: #aaa; }
.searchbar-btn {
    background: var(--c-red);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 0 50px 50px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.searchbar-btn:hover { background: #d02d27; }

/* ===== ANA SAYFA ===== */
.home-content {
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 20px;
}
.home-slogan {
    color: var(--c-muted);
    font-size: 13px;
    margin-top: 16px;
    margin-bottom: 0;
}

/* Kategori etiketleri */
.home-tags {
    margin-top: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 20px;
}
.home-tags a {
    display: inline-block;
    padding: 6px 16px;
    background: var(--c-light);
    color: var(--c-text);
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid var(--c-border);
    transition: background 0.2s;
}
.home-tags a:hover { background: #e9ecef; }
.home-tags::-webkit-scrollbar { height: 4px; }
.home-tags::-webkit-scrollbar-track { background: var(--c-light); }
.home-tags::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }

/* ===== SONUÇ SAYFASI ===== */
.results-header {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 20px 0;
}
/* Tablar */
.search-tabs {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--c-border);
    overflow-x: auto;
}
.search-tabs a {
    display: inline-block;
    padding: 10px 16px;
    color: var(--c-muted);
    text-decoration: none;
    font-size: 13px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color 0.2s;
}
.search-tabs a:hover { color: var(--c-dark); }
.search-tabs a.active {
    color: var(--c-red);
    border-bottom-color: var(--c-red);
    font-weight: 600;
}

/* Sonuç alanı */
.results-body {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 20px;
}
.results-info {
    color: var(--c-muted);
    font-size: 12px;
    margin-bottom: 16px;
}

/* Web sonuçları */
.result-item {
    margin-bottom: 24px;
}
.result-item .result-url {
    font-size: 12px;
    color: var(--c-url);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.result-item .result-url img {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}
.result-item .result-title {
    font-size: 18px;
    color: var(--c-link);
    text-decoration: none;
    line-height: 1.3;
    display: block;
    margin-bottom: 2px;
}
.result-item .result-title:hover { text-decoration: underline; }
.result-item .result-desc {
    font-size: 13px;
    color: var(--c-text);
    line-height: 1.5;
}

/* Kart sonuçlar (haber, ürün, ilan) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.result-card {
    border: 1px solid var(--c-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--c-bg);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 280px;
}
.result-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.result-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    flex-shrink: 0;
}
.result-card .card-body {
    padding: 10px 12px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.result-card .card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 4px;
}
.result-card .card-title:hover { color: var(--c-link); }
.result-card .card-meta {
    font-size: 11px;
    color: var(--c-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.result-card .card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-red);
    margin-top: auto;
}
.result-card .card-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f4ff;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
    margin-right: 4px;
}

/* E-ticaret kartları */
.product-card-link { text-decoration: none; }
.product-card { height: 300px; }
.product-card .product-img-wrap {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-light);
    flex-shrink: 0;
    overflow: hidden;
}
.product-card .product-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Filtreler */
.product-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: var(--c-light);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    margin-bottom: 16px;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-muted);
    white-space: nowrap;
}
.filter-group select,
.filter-group input {
    padding: 5px 8px;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    font-size: 12px;
    outline: none;
    background: #fff;
}
.filter-group select:focus,
.filter-group input:focus { border-color: #aaa; }
.filter-group span { color: var(--c-muted); font-size: 12px; }
.filter-btn {
    padding: 5px 14px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: var(--c-red);
    color: #fff;
    transition: background 0.2s;
}
.filter-btn:hover { background: #d02d27; }
.filter-btn-clear {
    background: #fff;
    color: var(--c-muted);
    border: 1px solid var(--c-border);
}
.filter-btn-clear:hover { background: var(--c-light); color: var(--c-dark); }

/* ===== WIDGET ===== */
.widget-card {
    background: var(--c-light);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.widget-card h5 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }

/* Tekli döviz kuru kartı */
.exchange-single {
    background: #fff;
    color: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    border: 1.5px solid #1a73e8;
}
.exchange-single-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.exchange-single-icon { font-size: 2.4rem; }
.exchange-single-code { font-size: 20px; font-weight: 700; }
.exchange-single-name { font-size: 12px; color: #666; }
.exchange-single-change {
    margin-left: auto;
    font-size: 15px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f0f4ff;
}
.exchange-single-change.exchange-up { color: #198754; background: #e8f5e9; }
.exchange-single-change.exchange-down { color: #dc3545; background: #fdecea; }
.exchange-single-rates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #f5f7fb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}
.exchange-single-rate {
    flex: 1;
    text-align: center;
}
.exchange-single-label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.exchange-single-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
}
.exchange-single-divider {
    width: 1px;
    height: 40px;
    background: #dde4f0;
    margin: 0 16px;
}
.exchange-single-footer {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 11px;
}

/* Hesaplama aracı */
.exchange-calc {
    margin-top: 16px;
    background: #f0f4ff;
    border-radius: 10px;
    padding: 14px 16px;
}
.exchange-calc-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.exchange-calc-field {
    flex: 1;
}
.exchange-calc-field label {
    display: block;
    font-size: 11px;
    color: #1a73e8;
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.exchange-calc-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #c8d6e5;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
}
.exchange-calc-field input:focus {
    border-color: #1a73e8;
    background: #fff;
}
.exchange-calc-arrow {
    font-size: 18px;
    color: #1a73e8;
    margin-top: 18px;
    background: none;
    border: 1.5px solid #1a73e8;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.exchange-calc-arrow:hover {
    background: #1a73e8;
    color: #fff;
    transform: rotate(180deg);
}

/* Döviz tablosu */
.exchange-table { width: 100%; font-size: 13px; }
.exchange-table td { padding: 4px 8px; }
.exchange-table .up { color: #198754; }
.exchange-table .down { color: #dc3545; }
.exchange-table tbody tr {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.exchange-table tbody tr:hover {
    transform: scale(1.01);
    background: #dbe8ff;
    box-shadow: 0 2px 8px rgba(26,115,232,0.1);
}

.weather-widget .temp { font-size: 2.2rem; font-weight: 700; }
.weather-widget .condition { font-size: 13px; color: var(--c-muted); }
.weather-forecast { display: flex; gap: 12px; margin-top: 8px; }
.weather-forecast .day { text-align: center; font-size: 12px; }

.prayer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.prayer-item { text-align: center; padding: 6px; background: #fff; border-radius: 6px; }
.prayer-item .name { font-size: 11px; color: var(--c-muted); }
.prayer-item .time { font-size: 14px; font-weight: 600; }

/* AI cevap */
#aiArea .card { border-left: 3px solid var(--c-red); border-radius: 10px; }

/* Sonuç yok */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--c-muted);
}
.no-results h3 { font-size: 16px; color: var(--c-dark); margin-bottom: 8px; }

/* Footer — sticky bottom */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
}
footer {
    text-align: center;
    padding: 16px;
    color: var(--c-muted);
    font-size: 12px;
    border-top: 1px solid var(--c-border);
    margin-top: auto;
}

/* ===== PANEL ===== */
.panel-header {
    background: var(--c-dark);
    padding: 0;
}
.panel-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.panel-logo {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 0;
}
.panel-logo span {
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    font-size: 13px;
    margin-left: 4px;
}
.panel-nav {
    display: flex;
    gap: 0;
}
.panel-nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    padding: 12px 14px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.panel-nav a:hover { color: #fff; }
.panel-nav a.active {
    color: #fff;
    border-bottom-color: var(--c-red);
}

/* ===== İLETİŞİM ===== */
.contact-wrapper {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 20px;
}
.contact-wrapper h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 4px;
}
.contact-desc {
    color: var(--c-muted);
    font-size: 13px;
    margin-bottom: 24px;
}
.contact-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}
.contact-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.contact-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.contact-form .form-group {
    margin-bottom: 16px;
}
.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-dark);
    margin-bottom: 4px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: #aaa; }
.contact-form textarea { resize: vertical; }
.contact-btn {
    background: var(--c-red);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-btn:hover { background: #d02d27; }

/* Kırık resim */
img[src=""], img:not([src]) { display: none; }

/* Truncate */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .minibar-inner { justify-content: center; gap: 16px; }
    .searchbar-inner { flex-wrap: wrap; gap: 8px; }
    .searchbar-form { width: 100%; }
    .searchbar-btn { font-size: 12px; padding: 8px 12px; }
    .searchbar-form input { font-size: 13px; }
    .search-tabs a { padding: 8px 10px; font-size: 12px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .result-item .result-title { font-size: 16px; }
    .weather-forecast { flex-wrap: wrap; }
    .prayer-grid { grid-template-columns: repeat(2, 1fr); }
}
