/* Ana Değişkenler */
:root {
    /* Renkler */
    --primary: #e53e3e;
    --secondary: #e53e3e;
    --dark: #1a202c;
    --light: #f7fafc;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --gray-900: #1a202c;

    /* Font Boyutları */
    --text-xs: 0.75rem;   /* 12px */
    --text-sm: 0.875rem;  /* 14px */
    --text-base: 0.9375rem; /* 15px */
    --text-lg: 1.125rem;  /* 18px */
    --text-xl: 1.25rem;   /* 20px */

    /* Boşluklar */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
}
/* Link */
.navbar-nav .nav-item a{
    color:#ffffff !important;
}

/* Link */
.breadcrumb .breadcrumb-item a{
    text-decoration:none;
}

/* Son Dakika Slider Ana Konteyner */
.breaking-news {
    background-color: #e53e3e;
    padding: 12px 0;
    position: relative;
    overflow: hidden;
    height: 48px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Son Dakika Etiketi */
.breaking-news-label {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 15px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 28px;
}

/* Kayan Yazı Alanı Wrapper */
.breaking-news-wrapper {
    flex: 1;
    position: relative;
    height: 24px;
    margin-left: 15px;
}

/* Kayan Yazılar Konteyner */
.breaking-news-items {
    display: flex;
    position: absolute;
    animation: slideNews 30s linear infinite;
    white-space: nowrap;
    padding-left: 100%;
}

/* Her Bir Haber Öğesi */
.breaking-news-items div {
    padding: 0 30px;
    position: relative;
}

.breaking-news-items div:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: 0;
    color: rgba(255, 255, 255, 0.5);
}

/* Haber Linkleri */
.breaking-news-items a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.breaking-news-items a:hover {
    opacity: 0.8;
}

/* Animasyon Keyframes */
@keyframes slideNews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
.sidebar-card a .post-date{
 color:#212529;
 font-size:13px;
}

/* Text dark */
.sidebar-card a .text-dark{
 color:#212529;
}

/* Button */
.col-lg-8 .d-flex a{
 background-color:#34495e;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .breaking-news {
        height: 40px;
        padding: 8px 0;
    }

    .breaking-news-label {
        font-size: 11px;
        padding: 4px 8px;
        height: 24px;
    }

    .breaking-news-items a {
        font-size: 13px;
    }

    .breaking-news-wrapper {
        margin-left: 10px;
    }

    .breaking-news-items div {
        padding: 0 20px;
    }
}

/* Animasyon Durdurma (Hover) */
.breaking-news-wrapper:hover .breaking-news-items {
    animation-play-state: paused;
}

/* Scroll Bar Gizleme */
.breaking-news-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.breaking-news-wrapper::-webkit-scrollbar {
    display: none;
}

/* Kenar Geçişleri */
.breaking-news::before,
.breaking-news::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 1;
}

.breaking-news::before {
    left: 0;
    background: linear-gradient(to right, #e53e3e 0%, transparent 100%);
}

.breaking-news::after {
    right: 0;
    background: linear-gradient(to left, #e53e3e 0%, transparent 100%);
}

/* Bootstrap Utility Sınıfları */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.text-white {
    color: #fff !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

/* Performans Optimizasyonu */
@media (prefers-reduced-motion: reduce) {
    .breaking-news-items {
        animation-duration: 60s;
    }
}
/* Temel Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Link */
.breadcrumb .breadcrumb-item a{
    color:#212529;
}

/* Navigation */
.main-header nav{
    background-color:#212529;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--gray-800);
    background-color: var(--gray-100);
}

/* Header ve Navigasyon */
.header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-bar {
    background-color: var(--primary);
    padding: var(--space-xs) 0;
    color: white;
    font-size: var(--text-sm);
}

.navbar {
    padding: var(--space-sm) 0;
    background-color: white;
}

.navbar-brand {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--primary);
}

.nav-link {
    color: var(--gray-700) !important;
    font-size: var(--text-sm);
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm) !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Son Dakika Banner */
.breaking-news {
    background-color: var(--secondary);
    padding: var(--space-sm) 0;
    height: 40px;
    overflow: hidden;
}

.breaking-news-label {
    background: rgba(0,0,0,0.2);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 3px;
    font-size: var(--text-xs);
    font-weight: 600;
    margin-right: var(--space-md);
    white-space: nowrap;
}

.breaking-news-wrapper {
    height: 24px;
    overflow: hidden;
}

.breaking-news-items {
    display: flex;
    animation: scroll 30s linear infinite;
}

.breaking-news-items div {
    white-space: nowrap;
    padding: 0 var(--space-md);
}

.breaking-news-items a {
    color: white;
    text-decoration: none;
    font-size: var(--text-sm);
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Haber Kartları */
.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card .card-body {
    padding: var(--space-md);
}

.news-card .card-title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.news-card .card-text {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
}

/* Sidebar */
.sidebar-card {
    background: white;
    border-radius: 8px;
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.sidebar-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--gray-800);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gray-200);
}

.popular-post {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-200);
}

.popular-post img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.popular-post h6 {
    font-size: var(--text-sm);
    margin-bottom: var(--space-xs);
    line-height: 1.4;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--gray-800);
    padding: var(--space-xl) 0;
    margin-top: var(--space-xl);
    color: var(--gray-300);
}

.footer h5 {
    color: white;
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: var(--space-xs);
}

.footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: var(--text-sm);
}

.footer a:hover {
    color: white;
}

.social-links a {
    color: var(--gray-400);
    font-size: var(--text-lg);
    margin-right: var(--space-md);
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: white;
}

/* Pagination */
.pagination {
    margin: var(--space-lg) 0;
}

.page-link {
    color: var(--gray-700);
    background-color: white;
    border: 1px solid var(--gray-200);
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-sm);
}

.page-link:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    :root {
        --text-base: 0.875rem;
        --text-lg: 1rem;
        --text-xl: 1.125rem;
    }

    .navbar {
        padding: var(--space-xs) 0;
    }

    .breaking-news {
        height: 32px;
    }

    .breaking-news-items {
        font-size: var(--text-xs);
    }

    .news-card img {
        height: 180px;
    }

    .popular-post img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .breaking-news-label {
        font-size: var(--text-xs);
        padding: 2px 6px;
    }

    .footer {
        text-align: center;
    }

    .social-links {
        justify-content: center;
        margin-top: var(--space-sm);
    }
}

/* Utility Classes */
.text-white { color: white; }
.bg-white { background-color: white; }
.rounded { border-radius: 8px; }
.shadow-sm { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.overflow-hidden { overflow: hidden; }

/* İlave Özelleştirmeler ve İyileştirmeler */

/* Kategori Rozetleri */
.category-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: var(--text-xs);
    font-weight: 500;
    z-index: 1;
    backdrop-filter: blur(4px);
}

/* Tarih ve Görüntülenme */
.meta-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-500);
    font-size: var(--text-xs);
}

.meta-info i {
    font-size: 12px;
    margin-right: 3px;
}

/* Arama Kutusu */
.search-form {
    position: relative;
}

.search-form .form-control {
    padding-right: 40px;
    font-size: var(--text-sm);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    background-color: var(--gray-100);
}

.search-form .btn-search {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: none;
    border: none;
    color: var(--gray-500);
    padding: 0;
}

.search-form .form-control:focus {
    background-color: white;
    box-shadow: 0 0 0 3px rgba(26, 117, 255, 0.1);
    border-color: var(--primary);
}

/* Son Dakika İyileştirmeleri */
.breaking-news-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.breaking-news-items div {
    flex-shrink: 0;
    margin-right: var(--space-xl);
}

.breaking-news-items a:hover {
    text-decoration: underline;
}

/* Haber Kartı İyileştirmeleri */
.news-card {
    display: flex;
    flex-direction: column;
}

.news-card__image-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.news-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card__image {
    transform: scale(1.05);
}

.news-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__text {
    flex: 1;
}

/* Breadcrumb İyileştirmesi */
.breadcrumb {
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--gray-500);
}

/* Footer İyileştirmeleri */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.footer-bottom {
    padding: var(--space-md) 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-xl);
}

/* Sayfa Geçiş Animasyonları */
.page-transition {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobil Menu İyileştirmeleri */
.navbar-toggler {
    border: none;
    padding: var(--space-xs);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
}

.offcanvas-header {
    background-color: var(--primary);
    color: white;
}

.offcanvas-title {
    font-size: var(--text-lg);
    font-weight: 600;
}

/* Erişilebilirlik İyileştirmeleri */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    z-index: 1000;
    transition: top 0.3s;
}

.skip-to-main:focus {
    top: 0;
}

/* Özel Medya Sorguları */
@media (max-width: 992px) {
    .navbar-nav {
        padding: var(--space-sm) 0;
    }

    .nav-item {
        padding: var(--space-xs) 0;
    }

    .search-form {
        margin: var(--space-sm) 0;
    }
}

@media (max-width: 768px) {
    .breaking-news-container {
        padding: 0 var(--space-sm);
    }

    .news-card__image-wrapper {
        padding-top: 50%; /* Mobilde daha kısa */
    }

    .footer-column {
        margin-bottom: var(--space-lg);
    }
}

/* Performans İyileştirmeleri */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Stilleri */
@media print {
    .header,
    .footer,
    .sidebar,
    .breaking-news,
    .social-share {
        display: none !important;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: none !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

.text-shadow {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}/* Sidebar Ana Konteyner */
.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
}

/* Sidebar Başlık */
.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary);
}

/* Popüler Post Kartı */
.popular-post {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s ease;
}

.popular-post:hover {
    background: var(--gray-50);
    transform: translateX(5px);
}

.popular-post:last-child {
    border-bottom: none;
}

/* Resim Alanı */
.popular-post img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.popular-post:hover img {
    transform: scale(1.05);
}

/* İçerik Alanı */
.popular-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Başlık */
.popular-post h6 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--gray-800);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.popular-post:hover h6 {
    color: var(--primary);
}

/* Meta Bilgiler */
.popular-post small {
    font-size: 12px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 8px;
}

.popular-post small i {
    font-size: 11px;
}

/* Görüntülenme Sayacı */
.view-counter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* Responsive Düzenlemeler */
@media (max-width: 992px) {
    .sidebar-card {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .popular-post {
        padding: 10px 0;
    }

    .popular-post img {
        width: 80px;
        height: 60px;
    }

    .popular-post h6 {
        font-size: 13px;
    }
}

/* Hover Efektleri */
.popular-post a {
    display: flex;
    gap: 15px;
    text-decoration: none;
}

.popular-post a:hover {
    text-decoration: none;
}

/* Görsel Konteyner */
.popular-post-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Gölge Efekti */
.popular-post-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.popular-post:hover .popular-post-image::after {
    opacity: 1;
}

/* Yardımcı Sınıflar */
.mb-3 {
    margin-bottom: 15px !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: 8px !important;
}