/* ========== CSS Variables (Light/Dark) ========== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fb;
    --bg-table-header: #1b2e4a;
    --bg-table-row: #ffffff;
    --bg-table-row-alt: #f4f6f9;
    --bg-table-hover: #edf2f7;
    --bg-nav: #ffffff;
    --bg-footer: #0f172a;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-table-header: #ffffff;
    --border-color: #e2e8f0;
    --border-table: #e8ecf1;
    --accent-gold: #d4a017;
    --accent-gold-light: #fef3c7;
    --green: #16a34a;
    --green-bg: #f0fdf4;
    --red: #dc2626;
    --red-bg: #fef2f2;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --ad-bg: #f0f4f8;
    --ad-border: #d1d9e6;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-table-header: #1e293b;
    --bg-table-row: #0f172a;
    --bg-table-row-alt: #1a2332;
    --bg-table-hover: #263348;
    --bg-nav: #0f172a;
    --bg-footer: #020617;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-table-header: #f1f5f9;
    --border-color: #334155;
    --border-table: #2d3a4d;
    --accent-gold: #f59e0b;
    --accent-gold-light: #451a03;
    --green: #4ade80;
    --green-bg: #052e16;
    --red: #f87171;
    --red-bg: #450a0a;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
    --ad-bg: #1e293b;
    --ad-border: #334155;
}

/* Global form element dark theme */
select, input, textarea {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}
a { color: var(--accent-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-primary); }

.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.navbar { background: var(--bg-nav); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 60px; max-width: 1200px; }
.ticker-bar .container { max-width: 1200px; }
.footer .container { max-width: 1200px; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--text-primary); text-decoration: none; }
.navbar-brand img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { display: block; padding: 8px 14px; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); border-radius: var(--radius-sm); transition: all 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-gold); background: var(--accent-gold-light); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.theme-toggle { background: none; border: 1px solid var(--border-color); border-radius: 50%; width: 38px; height: 38px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.2s; }
.theme-toggle:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s; }

.ticker-bar { background: var(--bg-secondary); color: var(--text-primary); border-bottom: 1px solid var(--border-color); padding: 10px 0; overflow: hidden; font-size: 0.85rem; font-weight: 500; }
[data-theme="dark"] .ticker-bar { background: var(--bg-table-header); color: #fff; border-bottom: none; }
.ticker-content { display: flex; animation: ticker 40s linear infinite; white-space: nowrap; gap: 40px; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ticker-item .label { opacity: 0.7; }
.ticker-item .value { font-weight: 700; }
.ticker-item .up { color: #16a34a; }
.ticker-item .down { color: #dc2626; }
[data-theme="dark"] .ticker-item .up { color: #4ade80; }
[data-theme="dark"] .ticker-item .down { color: #f87171; }
[data-theme="dark"] .ticker-item .label { color: rgba(255,255,255,0.7); }
.ticker-sep { opacity: 0.3; flex-shrink: 0; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.section-header { text-align: center; margin-bottom: 24px; }
.section-header h1, .section-header h2 { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.section-header h1 { font-size: 1.75rem; }
.section-header p { font-size: 0.9rem; color: var(--text-muted); max-width: 680px; margin: 0 auto; }
.section-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-gold-light); color: var(--accent-gold); font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.main-content { padding: 10px 0 24px; }
.content-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }

.ad-slot { background: var(--ad-bg); border: 1px dashed var(--ad-border); border-radius: var(--radius); padding: 10px; text-align: center; min-height: 90px; display: flex; align-items: center; justify-content: center; margin: 12px 0; overflow: hidden; }
.ad-slot-horizontal { min-height: 90px; }
.ad-slot-rectangle { min-height: 250px; }
.ad-slot-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.ad-slot-sidebar { min-height: 600px; }
.ad-slot-infeed { min-height: 120px; }

.table-wrapper { background: var(--bg-primary); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; border: 1px solid var(--border-color); margin-bottom: 8px; }
.table-title-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.table-title-bar h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.table-title-bar .icon-gold { width: 20px; height: 20px; color: var(--accent-gold); }
.update-time { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.update-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.price-table { width: 100%; border-collapse: collapse; }
.price-table thead th { background: var(--bg-table-header); color: var(--text-table-header); padding: 12px 16px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; text-align: right; white-space: nowrap; }
.price-table thead th:first-child { text-align: left; }
.price-table tbody tr { border-bottom: 1px solid var(--border-table); transition: background 0.15s; }
.price-table tbody tr:nth-child(even) { background: var(--bg-table-row-alt); }
.price-table tbody tr:hover { background: var(--bg-table-hover); }
.price-table tbody td { padding: 14px 16px; font-size: 0.9rem; text-align: right; white-space: nowrap; }
.price-table tbody td:first-child { text-align: left; font-weight: 600; }
.price-table .name-cell { display: flex; align-items: center; gap: 10px; }
.gold-icon-sm { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-gold-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gold-icon-sm svg { width: 14px; height: 14px; color: var(--accent-gold); }
.name-text .sub { display: block; font-size: 0.7rem; font-weight: 400; color: var(--text-muted); }
.price-buy { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.price-sell { color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
.change-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 0.78rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.change-badge.up { background: var(--green-bg); color: var(--green); }
.change-badge.down { background: var(--red-bg); color: var(--red); }
.calc-link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; font-weight: 600; color: var(--accent-gold); padding: 5px 10px; border: 1px solid var(--accent-gold); border-radius: 6px; transition: all 0.2s; white-space: nowrap; }
.calc-link:hover { background: var(--accent-gold); color: #fff; }

.quick-calc { background: var(--bg-primary); border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); padding: 20px; }
.quick-calc h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.calc-form { display: flex; gap: 8px; }
.calc-form select, .calc-form input { flex: 1; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 0.9rem; background: var(--bg-secondary); color: var(--text-primary); outline: none; transition: border 0.2s; }
.calc-form select:focus, .calc-form input:focus { border-color: var(--accent-gold); }
.calc-form button { padding: 10px 20px; background: var(--accent-gold); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s; white-space: nowrap; }
.calc-form button:hover { opacity: 0.9; }

.breadcrumb { padding: 12px 0; font-size: 0.8rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.breadcrumb li::after { content: '›'; margin-left: 6px; color: var(--text-muted); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-gold); }
.breadcrumb li:last-child { color: var(--text-primary); font-weight: 500; }

.disclaimer { background: var(--accent-gold-light); border-left: 4px solid var(--accent-gold); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.82rem; color: var(--text-secondary); margin: 20px 0; line-height: 1.7; }

.faq-section { background: var(--bg-primary); border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-item:last-child { border-bottom: none; }
.faq-question { width: 100%; background: none; border: none; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; font-size: 0.95rem; font-weight: 600; color: var(--text-primary); cursor: pointer; text-align: left; transition: background 0.2s; }
.faq-question:hover { background: var(--bg-table-hover); }
.faq-question svg { width: 18px; height: 18px; color: var(--text-muted); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 20px 18px; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { background: var(--bg-primary); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card-body { padding: 16px; }
.blog-card-body h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-card-body h4 a { color: var(--text-primary); }
.blog-card-body h4 a:hover { color: var(--accent-gold); }
.blog-card-body .blog-date { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.blog-card-body p { font-size: 0.84rem; color: var(--text-secondary); margin-bottom: 12px; }
.blog-card-body .read-more { font-size: 0.82rem; font-weight: 600; color: var(--accent-gold); }

.footer { background: var(--bg-footer); color: #94a3b8; padding: 48px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.footer h4 { color: #f1f5f9; font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.footer p { font-size: 0.84rem; line-height: 1.7; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #94a3b8; font-size: 0.84rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-gold); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.78rem; }

.internal-links { background: var(--bg-primary); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); padding: 20px; }
.internal-links h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { display: inline-block; padding: 6px 14px; font-size: 0.8rem; font-weight: 500; border: 1px solid var(--border-color); border-radius: 20px; color: var(--text-secondary); transition: all 0.2s; }
.tag-cloud a:hover { border-color: var(--accent-gold); color: var(--accent-gold); background: var(--accent-gold-light); }

/* Hesaplama sayfası özel */
.calc-card { background: var(--bg-primary); border-radius: var(--radius); padding: 28px; color: var(--text-primary); border: 1px solid var(--border-color); box-shadow: var(--shadow-md); }
.calc-card h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }
.calc-card label { font-size: 0.82rem; font-weight: 500; margin-bottom: 6px; display: block; opacity: 0.85; }
.calc-card input, .calc-card select { width: 100%; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-secondary); color: var(--text-primary); font-size: 0.9rem; outline: none; margin-bottom: 14px; }
.calc-card button { width: 100%; padding: 12px; background: var(--accent-gold); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 700; cursor: pointer; }
[data-theme="dark"] .calc-card { background: var(--bg-table-header); color: #fff; border-color: var(--border-color); }
[data-theme="dark"] .calc-card input, [data-theme="dark"] .calc-card select { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: #fff; }

/* İllere göre */
.city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.city-card { display: block; padding: 12px 16px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); transition: all 0.2s; text-decoration: none; color: var(--text-primary); font-size: 0.88rem; font-weight: 500; }
.city-card:hover { border-color: var(--accent-gold); background: var(--accent-gold-light); color: var(--accent-gold); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* Bilgi bankası */
.category-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.category-pill { padding: 8px 20px; border-radius: 24px; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--border-color); background: var(--bg-primary); color: var(--text-secondary); cursor: pointer; transition: all 0.2s; text-decoration: none; }
.category-pill:hover, .category-pill.active { background: var(--accent-gold); color: #fff; border-color: var(--accent-gold); }
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 28px; }
.page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-primary); color: var(--text-secondary); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.page-btn:hover, .page-btn.active { background: var(--accent-gold); color: #fff; border-color: var(--accent-gold); }

/* Blog detay */
.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
.article-content { line-height: 1.8; color: var(--text-secondary); font-size: 0.95rem; }
.article-content h2 { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin: 28px 0 14px; }
.article-content h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin: 22px 0 10px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { padding-left: 20px; margin-bottom: 16px; }
.article-content li { margin-bottom: 8px; }
.sidebar-card { background: var(--bg-primary); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); padding: 20px; margin-bottom: 20px; }
.sidebar-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-gold); }
.sidebar-card .footer-links a { color: var(--text-secondary); }
.sidebar-card .footer-links a:hover { color: var(--accent-gold); }

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .city-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 968px) {
    .blog-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-nav); border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-md); padding: 8px 16px; z-index: 999; }
    .nav-links.open a { padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
    .navbar .container { position: relative; }
    .price-table thead th:nth-child(4), .price-table tbody td:nth-child(4) { display: none; }
    .price-table thead th { padding: 10px 10px; font-size: 0.7rem; }
    .price-table tbody td { padding: 12px 10px; font-size: 0.82rem; }
    .gold-icon-sm { width: 24px; height: 24px; }
    .gold-icon-sm svg { width: 12px; height: 12px; }
    .name-text .sub { display: none; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .calc-form { flex-direction: column; }
    .section-header h2 { font-size: 1.25rem; }
    .table-title-bar { padding: 12px 14px; }
    .city-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .price-table thead th:nth-child(5), .price-table tbody td:nth-child(5) { display: none; }
    .ticker-bar { font-size: 0.78rem; }
    .container { padding: 0 12px; }
    .city-grid { grid-template-columns: 1fr; }
}

/* Floating Chat Widget */
.floating-chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }
.chat-toggle-btn { background: linear-gradient(135deg, var(--accent-gold), #b8860b); border-radius: 30px; display: flex; align-items: center; gap: 8px; padding: 12px 18px; color: #fff; cursor: pointer; font-size: 0.9rem; font-weight: 600; box-shadow: 0 4px 20px rgba(212,160,23,0.35); transition: transform 0.2s; border: none; }
.chat-toggle-btn:hover { transform: scale(1.05); }
.chat-label { white-space: nowrap; }
.chat-modal { position: absolute; bottom: 65px; right: 0; width: 370px; max-height: 550px; background: var(--bg-primary); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); display: none; flex-direction: column; overflow: hidden; animation: chatSlideUp 0.3s ease-out; }
.chat-modal.show { display: flex; }
@keyframes chatSlideUp { from { opacity:0; transform: translateY(15px); } to { opacity:1; transform: translateY(0); } }
.chat-header-widget { background: linear-gradient(135deg, var(--accent-gold), #b8860b); color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.chat-header-widget strong { font-size: 0.95rem; }
.chat-subtitle { display: block; font-size: 0.7rem; opacity: 0.8; }
.chat-controls { display: flex; align-items: center; gap: 6px; }
.chat-timer-badge { font-size: 0.7rem; background: rgba(255,255,255,0.2); padding: 3px 8px; border-radius: 12px; }
.chat-ctrl-btn { background: none; border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; }
.chat-ctrl-btn:hover { background: rgba(255,255,255,0.2); }
.chat-body { flex: 1; max-height: 340px; overflow-y: auto; padding: 12px; background: var(--bg-secondary); }
.chat-body::-webkit-scrollbar { width: 5px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
.chat-msg { background: var(--bg-primary); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; border-left: 3px solid var(--accent-gold); transition: transform 0.15s; }
.chat-msg:hover { transform: translateX(2px); }
.chat-msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 0.8rem; }
.chat-msg-head strong { color: var(--text-primary); }
.chat-msg-tag { background: var(--accent-gold); color: #fff; padding: 1px 6px; border-radius: 10px; font-size: 0.65rem; font-weight: 600; }
.chat-msg-time { color: var(--text-muted); font-size: 0.7rem; margin-left: auto; }
.chat-msg p { font-size: 0.82rem; color: var(--text-secondary); margin: 0 0 6px; line-height: 1.5; }
.chat-like-btn { background: none; border: none; color: var(--text-muted); font-size: 0.78rem; cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: color 0.2s; }
.chat-like-btn:hover, .chat-like-btn.liked { color: var(--red); }
.chat-footer-widget { padding: 14px 16px; border-top: 1px solid var(--border-color); background: var(--bg-primary); }
.chat-add-btn { width: 100%; padding: 8px; border: 1px dashed var(--border-color); border-radius: var(--radius-sm); background: none; color: var(--accent-gold); font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.chat-add-btn:hover { background: var(--accent-gold-light); border-color: var(--accent-gold); }
.chat-input-select { width: 100%; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-secondary); color: var(--text-primary); font-size: 0.85rem; margin-bottom: 8px; outline: none; }
.chat-input-area { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-secondary); color: var(--text-primary); font-size: 0.85rem; resize: vertical; outline: none; font-family: inherit; }
.chat-input-area:focus, .chat-input-select:focus { border-color: var(--accent-gold); }
.chat-send-btn { padding: 6px 16px; background: var(--accent-gold); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.chat-send-btn:hover { opacity: 0.9; }
@media (max-width: 480px) {
    .chat-modal { width: calc(100vw - 20px); right: -10px; bottom: 70px; max-height: 75vh; }
    .floating-chat-widget { bottom: 14px; right: 14px; }
    .chat-toggle-btn { padding: 10px 14px; font-size: 0.82rem; }
}

/* Yorum Widget (Sayfa İçi) */
.comments-section { background: var(--bg-primary); border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); overflow: hidden; }
.comments-header { background: var(--accent-gold); color: #fff; padding: 14px 20px; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.comments-body { padding: 20px; }
.comment-form-area { margin-bottom: 20px; }
.comment-login-prompt { text-align: center; padding: 24px; background: var(--bg-secondary); border: 2px dashed var(--border-color); border-radius: var(--radius-sm); }
.comment-login-prompt p { color: var(--text-muted); margin-bottom: 12px; font-size: 0.9rem; }
.comment-login-btn { display: inline-block; padding: 8px 20px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; transition: all 0.2s; margin: 0 4px; }
.comment-login-btn.primary { background: var(--accent-gold); color: #fff; border: none; }
.comment-login-btn.outline { background: none; color: var(--accent-gold); border: 1px solid var(--accent-gold); }
.comment-item { border-bottom: 1px solid var(--border-color); padding: 14px 0; }
.comment-item:last-child { border-bottom: none; }
.comment-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.comment-author { font-weight: 600; font-size: 0.88rem; color: var(--text-primary); }
.comment-meta { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--text-muted); }
.comment-asset-tag { background: var(--accent-gold-light); color: var(--accent-gold); padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; }
.comment-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 6px; }

/* Print */
@media print {
    .navbar, .footer, .ad-slot, .theme-toggle, .ticker-bar { display: none; }
    .table-wrapper { box-shadow: none; border: 1px solid #ccc; }
}

/* Accessibility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }

.last-update-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 0.8rem; color: var(--text-muted); }
.last-update-bar .live { display: flex; align-items: center; gap: 6px; }

/* Price animation */
.price-up { animation: flashGreen 0.6s; }
.price-down { animation: flashRed 0.6s; }
@keyframes flashGreen { 0%,100% { background: transparent; } 50% { background: var(--green-bg); } }
@keyframes flashRed { 0%,100% { background: transparent; } 50% { background: var(--red-bg); } }

/* Hesaplama page grid */
.hesaplama-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}
@media (max-width: 768px) {
    .hesaplama-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar card links */
.sidebar-card .footer-links a {
    color: var(--text-secondary);
}
.sidebar-card .footer-links a:hover {
    color: var(--accent-gold);
}

/* Section header h1 */
.section-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

/* Price table for fiyat pages */
.price-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
}
.price-table thead th {
    padding: 14px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    text-align: center;
}
.price-table thead th:first-child {
    text-align: left;
}
.price-table tbody td {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    font-weight: 600;
}
.price-table tbody td:first-child {
    text-align: left;
    font-weight: 700;
}
.price-table tbody td:first-child a {
    color: var(--text-primary);
    text-decoration: none;
}
.price-table tbody td:first-child a:hover {
    color: var(--accent-gold);
}
.price-table tbody tr:hover {
    background: var(--bg-secondary);
}
.btn-calc {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-gold);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}
.btn-calc:hover {
    opacity: 0.85;
    color: #fff;
}

/* Price name link in table */
.price-name-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}
.price-name-link:hover {
    color: var(--accent-gold);
}

/* Price flash animations */
@keyframes flashUp {
    0% { background-color: transparent; }
    20% { background-color: rgba(34, 197, 94, 0.25); color: #16a34a; }
    100% { background-color: transparent; }
}
@keyframes flashDown {
    0% { background-color: transparent; }
    20% { background-color: rgba(239, 68, 68, 0.25); color: #dc2626; }
    100% { background-color: transparent; }
}
.price-flash-up {
    animation: flashUp 1.5s ease-out;
}
.price-flash-down {
    animation: flashDown 1.5s ease-out;
}
[data-theme="dark"] .price-flash-up {
    animation: flashUpDark 1.5s ease-out;
}
[data-theme="dark"] .price-flash-down {
    animation: flashDownDark 1.5s ease-out;
}
@keyframes flashUpDark {
    0% { background-color: transparent; }
    20% { background-color: rgba(34, 197, 94, 0.15); color: #4ade80; }
    100% { background-color: transparent; }
}
@keyframes flashDownDark {
    0% { background-color: transparent; }
    20% { background-color: rgba(239, 68, 68, 0.15); color: #f87171; }
    100% { background-color: transparent; }
}

/* Sticky bottom ad - banner bar */
.sticky-bottom-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 2px 0;
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    max-height: 58px;
    overflow: hidden;
}
@media (min-width: 769px) {
    .sticky-bottom-ad { display: none; }
}
.footer { padding-bottom: 58px; }
@media (min-width: 769px) {
    .footer { padding-bottom: 0; }
}

/* Blog card image cursor */
.blog-card img { cursor: pointer; }
