
:root {
    --primary-color: #b91c1c;
    --secondary-color: #4b5563;
    --accent-color: #2563eb;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(226, 232, 240, 0.8);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body.has-warning-bar {
    --warn-height: 48px;
}
@media (max-width: 768px) {
    body.has-warning-bar {
        --warn-height: 64px;
    }
}
body {
    --warn-height: 0px;
}

.top-warning-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--warn-height);
    background: #b91c1c;
    color: white;
    text-align: center;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Sabit Header */
header {
    position: fixed;
    top: var(--warn-height);
    left: 0;
    right: 0;
    height: 72px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

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

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

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: calc(160px + var(--warn-height)) 24px 60px 24px;
    background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(249, 115, 22, 0.03) 0%, transparent 40%);
    text-align: center;
    max-width: 1280px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 32px auto;
}

/* Ana Grid */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 80px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 1024px) {
    .main-container {
        grid-template-columns: 8fr 4fr;
    }
}

/* Kart Tasarımları */
.card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 32px;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Hesaplayıcı Widget Arayüzü */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .calculator-container {
        grid-template-columns: 4fr 8fr;
    }
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-right: 16px;
    border-right: 1px solid var(--glass-border);
}

@media (max-width: 767px) {
    .calc-inputs {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding-right: 0;
        padding-bottom: 24px;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
}

.input-label span {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 14px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Özet Sonuçlar */
.calc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.result-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.result-card.highlight {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.result-card.highlight .result-label {
    color: rgba(255, 255, 255, 0.8);
}

.result-card.highlight .result-value {
    color: white;
}

.result-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
}

/* SVG Grafik Stilleri */
.chart-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    padding: 16px;
}

.chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-grid-line {
    stroke: #f1f5f9;
    stroke-width: 1;
}

.chart-axis-line {
    stroke: #cbd5e1;
    stroke-width: 1;
}

.chart-axis-text {
    font-size: 10px;
    fill: #64748b;
    font-weight: 500;
}

.chart-tooltip-group {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

.chart-tooltip-bg {
    fill: white;
    stroke: var(--glass-border);
    stroke-width: 1.5;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    rx: 8px;
}

.chart-tooltip-text-title {
    font-size: 12px;
    font-weight: 700;
    fill: var(--text-dark);
}

.chart-tooltip-text-item {
    font-size: 11px;
    fill: var(--text-muted);
}

.chart-tooltip-text-val {
    font-size: 11px;
    font-weight: 700;
}

.chart-line-hover {
    stroke: var(--text-muted);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    pointer-events: none;
    opacity: 0;
}

/* Makale Listeleri ve Kenar Çubuğu */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-widget {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 8px;
}

.post-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-list a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.post-list a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Yazar Kartı (EEAT) */
.author-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 32px 0;
}

.author-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 24px;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.author-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.fact-check-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #065f46;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
}

.faq-question {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-icon {
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 24px 30px 24px;
    margin-top: 80px;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-logo {
    font-size: 22px;
    font-weight: 900;
    color: white;
    text-decoration: none;
    margin-bottom: 16px;
    display: inline-block;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links-title {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 40px auto 0 auto;
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 13px;
}

/* Responsive Mobil Menü Görünümü */
@media (max-width: 1023px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: var(--transition);
    }
    .nav-links.open {
        left: 0;
    }
    .hamburger {
        display: flex;
    }
}

/* Makale Sayfası CSS Ayarları */
.article-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 32px 0 16px 0;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.article-content ul, .article-content ol {
    margin: 20px 0 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 14px;
}

.article-content th, .article-content td {
    padding: 14px 16px;
    border: 1px solid var(--glass-border);
    text-align: left;
}

.article-content th {
    background-color: var(--bg-light);
    font-weight: 700;
    color: var(--text-dark);
}

.article-content tr:nth-child(even) {
    background-color: rgba(248, 250, 252, 0.5);
}

.note-box {
    background: #eff6ff;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 24px 0;
}

.note-box p {
    margin-bottom: 0;
    font-size: 15px;
    color: #1e3a8a;
    font-weight: 500;
}

.post-list a.active {
    color: var(--primary-color);
    font-weight: 800;
    border-left: 3px solid var(--primary-color);
    padding-left: 8px;
}
