/* =====================================================
   SafirHesap - Ana Stil Dosyası
   Tema: Turuncu (Trendyol benzeri)
   ===================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Değişkenleri --- */
:root {
    --primary:       #FF6B00;
    --primary-dark:  #E55A00;
    --primary-light: #FF8C00;
    --primary-bg:    #FFF3E8;
    --secondary:     #2C3E50;
    --success:       #27AE60;
    --danger:        #E74C3C;
    --warning:       #F39C12;
    --info:          #3498DB;
    --text-dark:     #1A1A2E;
    --text-mid:      #555;
    --text-light:    #888;
    --border:        #E8E8E8;
    --bg-light:      #F8F9FA;
    --white:         #FFFFFF;
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:     0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg:     0 8px 40px rgba(0,0,0,0.15);
    --radius-sm:     6px;
    --radius-md:     12px;
    --radius-lg:     20px;
    --transition:    all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.w-100 { width: 100%; }
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--primary-bg);
    color: var(--primary);
}

/* --- Header --- */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.logo-text span { color: var(--primary); }

.logo-sub {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 400;
}

/* --- Navigation --- */
.site-nav ul {
    display: flex;
    align-items: center;
    gap: 5px;
}

.site-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 14px;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--primary-bg);
    color: var(--primary);
}

.nav-btn {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
}

.nav-btn:hover {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,0,0.4);
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content { text-align: center; position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    background: rgba(255,107,0,0.2);
    color: #FF8C00;
    border: 1px solid rgba(255,107,0,0.3);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero h1 span { color: var(--primary); }

.hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255,107,0,0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,0,0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover { background: #1a252f; color: var(--white); }

.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #219a52; color: var(--white); }

.btn-danger  { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #c0392b; color: var(--white); }

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }

/* --- Section Titles --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title .tag {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-mid);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item strong { display: block; font-size: 24px; font-weight: 800; color: var(--primary); }
.stat-item span   { font-size: 13px; color: var(--text-light); }

/* --- Blog Section --- */
.blogs-section { padding: 70px 0; background: var(--bg-light); }

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-card-img {
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-img .no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-bg), #FFE0CC);
    font-size: 50px;
}

.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.blog-card-cat {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title:hover { color: var(--primary); }

.blog-card-ozet {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 15px;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-light);
}

.blog-card-footer .read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
}

.blog-card-footer .read-more:hover { text-decoration: underline; }

/* --- Search Box --- */
.search-box {
    display: flex;
    gap: 0;
    max-width: 500px;
    margin: 0 auto 40px;
    box-shadow: var(--shadow-sm);
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,0,0.15);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 13px 20px;
    font-size: 14px;
    outline: none;
    background: var(--white);
    color: var(--text-dark);
}

.search-box button {
    background: var(--primary);
    border: none;
    padding: 13px 22px;
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.search-box button:hover { background: var(--primary-dark); }

/* --- Hesaplama Sayfası --- */
.hesaplama-page { padding: 60px 0; }

.hesaplama-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.form-card, .result-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-bg);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title .icon {
    width: 36px;
    height: 36px;
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* --- Form Elements --- */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group label .required { color: var(--danger); margin-left: 3px; }
.form-group label .optional { color: var(--text-light); font-weight: 400; font-size: 12px; margin-left: 5px; }

.form-control {
    width: 100%;
    padding: 11px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}

.form-control::placeholder { color: var(--text-light); }

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .form-control { padding-right: 45px; }

.input-suffix {
    position: absolute;
    right: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    pointer-events: none;
}

.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }

.form-divider {
    border: none;
    border-top: 1px dashed var(--border);
    margin: 20px 0;
}

.optional-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Result Card --- */
.result-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.result-placeholder .placeholder-icon { font-size: 60px; margin-bottom: 15px; opacity: 0.5; }
.result-placeholder p { font-size: 14px; line-height: 1.6; }

.result-group { margin-bottom: 15px; }

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    background: var(--bg-light);
    font-size: 14px;
}

.result-row .label { color: var(--text-mid); font-weight: 500; }
.result-row .value { font-weight: 700; color: var(--text-dark); font-size: 15px; }

.result-row.highlight {
    background: var(--primary-bg);
    border: 1px solid rgba(255,107,0,0.2);
}

.result-row.highlight .label { color: var(--primary); font-weight: 600; }
.result-row.highlight .value { color: var(--primary); font-size: 16px; }

.result-row.success { background: #EAF7F0; border: 1px solid rgba(39,174,96,0.2); }
.result-row.success .value { color: var(--success); }

.result-row.danger  { background: #FDEDEC; border: 1px solid rgba(231,76,60,0.2); }
.result-row.danger  .value { color: var(--danger); }

.result-row.warning { background: #FEF9E7; border: 1px solid rgba(243,156,18,0.2); }
.result-row.warning .value { color: var(--warning); }

.result-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.net-kar-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.net-kar-box .label { font-size: 13px; opacity: 0.9; margin-bottom: 5px; }
.net-kar-box .amount { font-size: 32px; font-weight: 800; line-height: 1; }
.net-kar-box .amount.negative { color: #FFD6B8; }
.net-kar-box .sub { font-size: 13px; opacity: 0.8; margin-top: 8px; }

/* --- Blog Sayfası --- */
.blog-page { padding: 60px 0; }

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

.blog-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.blog-list-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.blog-list-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.blog-list-card .card-img {
    width: 200px;
    min-height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--primary-bg);
}

.blog-list-card .card-img img { width: 100%; height: 100%; object-fit: cover; }

.blog-list-card .card-body {
    padding: 20px;
    flex: 1;
}

/* --- Sidebar --- */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.sidebar-widget-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-bg);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-cat-list li { margin-bottom: 8px; }

.sidebar-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-mid);
    font-size: 14px;
    transition: var(--transition);
}

.sidebar-cat-list a:hover,
.sidebar-cat-list a.active {
    background: var(--primary-bg);
    color: var(--primary);
}

.sidebar-cat-list .count {
    background: var(--border);
    color: var(--text-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.popular-blog-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.popular-blog-item:last-child { border-bottom: none; }

.popular-blog-item .num {
    width: 28px;
    height: 28px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.popular-blog-item a {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
}

.popular-blog-item a:hover { color: var(--primary); }

/* --- Blog Detay --- */
.blog-detay-page { padding: 50px 0; }

.blog-detay-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.blog-content-wrap {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-light);
}

.blog-content-title {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 20px;
}

.blog-kapak { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 30px; }
.blog-kapak img { width: 100%; max-height: 400px; object-fit: cover; }

/* Blog İçerik Stilleri */
.blog-icerik h2 { font-size: 22px; font-weight: 700; color: var(--text-dark); margin: 28px 0 15px; }
.blog-icerik h3 { font-size: 18px; font-weight: 700; color: var(--text-dark); margin: 22px 0 12px; }
.blog-icerik p  { color: var(--text-mid); margin-bottom: 18px; line-height: 1.8; font-size: 15px; }
.blog-icerik ul, .blog-icerik ol { padding-left: 25px; margin-bottom: 18px; color: var(--text-mid); }
.blog-icerik ul { list-style: disc; }
.blog-icerik ol { list-style: decimal; }
.blog-icerik li { margin-bottom: 8px; line-height: 1.7; }
.blog-icerik a  { color: var(--primary); border-bottom: 1px solid rgba(255,107,0,0.3); }
.blog-icerik blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-bg);
    padding: 15px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-mid);
}
.blog-icerik img { border-radius: var(--radius-sm); margin: 20px 0; }
.blog-icerik table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.blog-icerik th { background: var(--primary); color: #fff; padding: 12px; text-align: left; font-size: 14px; }
.blog-icerik td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.blog-icerik tr:hover td { background: var(--bg-light); }

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}

.page-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-mid);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.page-btn:hover  { background: var(--primary-bg); color: var(--primary); border-color: var(--primary); }
.page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-btn.disabled { opacity: 0.4; cursor: default; pointer-events: none; }

/* --- Download Banner --- */
.download-banner {
    background: linear-gradient(135deg, #1A1A2E, #0F3460);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.download-banner::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,107,0,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.download-banner h3 {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
}

.download-banner p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 20px;
    position: relative;
}

/* --- Modal / Popup --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    position: relative;
    animation: modalIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalIn {
    from { transform: scale(0.8) translateY(30px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 25px 30px;
    text-align: center;
    position: relative;
}

.modal-header h3 { color: var(--white); font-size: 20px; font-weight: 800; }
.modal-header p  { color: rgba(255,255,255,0.85); font-size: 14px; margin-top: 5px; }

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover { background: rgba(255,255,255,0.4); }

.modal-body { padding: 25px 30px; }

.kaynak-listesi { margin-bottom: 20px; }

.kaynak-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 14px;
}

.kaynak-item .icon { font-size: 20px; }
.kaynak-item strong { color: var(--text-dark); }
.kaynak-item small  { color: var(--text-light); font-size: 12px; }

.modal-note {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-top: 12px;
}

/* --- Alert Messages --- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-left: 4px solid;
}

.alert-success { background: #EAF7F0; border-color: var(--success); color: #1e7e46; }
.alert-danger   { background: #FDEDEC; border-color: var(--danger); color: #a93226; }
.alert-warning  { background: #FEF9E7; border-color: var(--warning); color: #b7770d; }
.alert-info     { background: #EBF5FB; border-color: var(--info); color: #1a6fa1; }

/* --- Teşekkür Sayfası --- */
.tesekkur-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.tesekkur-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
}

.tesekkur-icon { font-size: 70px; margin-bottom: 20px; }
.tesekkur-card h2 { font-size: 26px; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; }
.tesekkur-card p  { color: var(--text-mid); font-size: 15px; line-height: 1.7; margin-bottom: 12px; }

/* Gizlilik Politikası Sayfası */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
}

.page-header p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.privacy-content {
    padding: 0 0 60px 0;
}

.content-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.privacy-content h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 30px 0 15px 0;
}

.privacy-content h2:first-of-type {
    margin-top: 0;
}

.privacy-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 15px;
}

.privacy-content ul {
    margin: 15px 0 20px 20px;
}

.privacy-content li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 8px;
}

.privacy-content li strong {
    color: var(--text-dark);
    font-weight: 600;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 30px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .content-card {
        padding: 25px;
    }
    
    .privacy-content h2 {
        font-size: 1.3rem;
    }
}

/* --- 404 Sayfası --- */
.page-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.page-404 .num { font-size: 120px; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 10px; }
.page-404 h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.page-404 p  { color: var(--text-mid); font-size: 16px; margin-bottom: 30px; }

/* --- Footer --- */
.site-footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text { color: var(--white); font-size: 22px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-top: 10px; }

.footer-col h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
    gap: 10px;
}



/* --- Loading Spinner --- */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Scroll to Top --- */
#scrollTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 999;
}

#scrollTop:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* === RESPONSIVE === */

@media (max-width: 991px) {
    .blogs-grid { grid-template-columns: repeat(2, 1fr); }
    .hesaplama-grid { grid-template-columns: 1fr; }
    .blog-layout, .blog-detay-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1270px) {
    /* Nav hamburger'a geçiş */
    .site-nav {
        display: none;
        position: absolute;
        top: 70px; left: 0; right: 0;
        background: var(--white);
        padding: 15px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        z-index: 999;
    }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; gap: 5px; }
    .site-nav a { padding: 10px 15px; }
    .hamburger { display: flex; }
    /* Header right auth butonları her zaman görünür kalır */
}

@media (max-width: 768px) {
    .blogs-grid { grid-template-columns: 1fr; }
    .hero { padding: 50px 0 40px; }
    .hero-btns { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .blog-list-card { flex-direction: column; }
    .blog-list-card .card-img { width: 100%; height: 180px; }
    .blog-content-wrap { padding: 20px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .form-card, .result-card { padding: 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .modal { border-radius: var(--radius-md); }
}