/* ===== CONSOLIDATED CSS FOR HABER SITESI ===== */

/* ===== GLOBAL PAGE WIDTH SETTINGS ===== */
/* Set maximum page width to 1110px for all sections */
.max-w-6xl,
.supermanset,
.container {
    max-width: 1110px !important;
}

/* ===== TAILWIND COMPONENT STYLES ===== */
.btn {
    @apply px-2 py-2 rounded-lg font-medium transition-colors duration-200;
}

.btn-primary {
    @apply bg-primary-600 text-white hover:bg-primary-700;
}

.btn-secondary {
    @apply bg-gray-200 text-gray-800 hover:bg-gray-300;
}

.card {
    @apply bg-white rounded-lg shadow-md overflow-hidden;
}

.news-card {
    @apply card hover:shadow-lg transition-shadow duration-300;
}

.category-badge {
    @apply inline-block px-2 py-1 text-xs font-medium rounded-full;
}

.category-politics {
    @apply category-badge bg-news-red text-white;
}

.category-economy {
    @apply category-badge bg-news-blue text-white;
}

.category-technology {
    @apply category-badge bg-news-green text-white;
}

.category-sports {
    @apply category-badge bg-news-yellow text-white;
}

.num-btn {
    @apply text-sm px-2 py-1 rounded border border-gray-300 bg-white hover:bg-primary-600 hover:text-white transition;
}

.num-btn.active {
    @apply bg-primary-600 text-white;
}

/* Sol ve sağ kule reklamları ana tema ile entegre */
#left-tower-ad,
#right-tower-ad {
    position: fixed;
    top: 300px;
    z-index: 40;
    width: 160px;
    height: 600px;
    transition: all 0.3s ease;
}

#left-tower-ad {
    left: calc((100vw - 1110px) / 2 - 180px);
}

#right-tower-ad {
    right: calc((100vw - 1110px) / 2 - 180px);
}

/* Kule reklamları hover efekti */
#left-tower-ad:hover,
#right-tower-ad:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
/* Kule reklamları için responsive ayarlar */
@media (min-width: 1250px) {
    #left-tower-ad,
    #right-tower-ad {
        display: block;
    }
}

@media (max-width: 1249px) {
    #left-tower-ad,
    #right-tower-ad {
        display: none;
    }
}

/* Çok geniş ekranlarda kule reklamlarını daha da optimize et */
@media (min-width: 1920px) {
    #left-tower-ad {
        left: calc((100vw - 1110px) / 2 - 200px);
    }
    
    #right-tower-ad {
        right: calc((100vw - 1110px) / 2 - 200px);
    }
}






/* ===== NUMBER BUTTON STYLES ===== */
/* Numaralar: beyaz zemin, hover'da kırmızı */
#main-numbers .num-link,
#side-numbers .num-link {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    transition: background-color 150ms ease, color 150ms ease;
}

#main-numbers .num-link:hover,
#side-numbers .num-link:hover {
    background: #dc2626;
    color: #ffffff;
}

/* Trailing T linki: beyaz, hover'da kırmızı */
#main-numbers .t-link,
#side-numbers .t-link {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    transition: background-color 150ms ease, color 150ms ease;
}

#main-numbers .t-link:hover,
#side-numbers .t-link:hover {
    background: #dc2626;
    color: #ffffff;
}
#breaking-news-container {
  position: relative;
  height: 1.5rem; /* sabit yükseklik (satır yüksekliği kadar) */
  overflow: hidden;
}
/* Mobilde nokta stilinden T'yi muaf tut */
@media (max-width: 640px) {

    #main-numbers .t-link,
    #side-numbers .t-link {
        width: auto;
        height: 28px;
        padding: 0 8px;
        border-radius: 4px;
        font-size: 12px;
        /* metni göster */
        color: #111827;
        border: 1px solid #e5e7eb;
        background: #ffffff;
    }
}

/* ===== SCROLLBAR STYLES ===== */
/* Mobil yatay scroll için scrollbar gizle */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Scrollbar hide utility for currency rates */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Desktop: hide scrollbar for currency rates */
@media (min-width: 1024px) {
    .scrollbar-hide {
        overflow-x: visible !important;
    }
}

/* ===== MOBILE NUMBER BUTTON STYLES ===== */
/* Mobilde manşet ve sağ manşet numaralarını küçük yuvarlak buton yap */
@media (max-width: 640px) {

    #main-numbers,
    #side-numbers {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding: 6px;
    }

    #main-numbers .num-btn,
    #side-numbers .num-btn {
        width: 32px;
        height: 32px;
        padding: 0;
        border-radius: 4px;
        /* kare görünüm */
        flex: 0 0 auto;
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobilde manşet numaralarını yuvarlak kutucuklara çevir ve numaraları gizle */
@media (max-width: 640px) {
    #main-numbers {
        background: #ffffff !important;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px;
        gap: 6px;
        overflow: hidden;
    }

    #main-numbers .num-btn {
        width: 12px;
        height: 12px;
        border-radius: 9999px;
        background: #e5e7eb;
        /* gri yuvarlak kutucuk */
        padding: 0;
        font-size: 0;
        /* rakamı gizle */
        color: transparent;
        border: none;
        flex: 0 0 auto;
    }

    #main-numbers .num-btn.active {
        background: #9e0000;
        /* aktif kutucuk rengi */
    }
}

/* Mobilde sağ manşet numaralarını yuvarlak kutucuklara çevir ve numaraları gizle */
@media (max-width: 640px) {
    #side-numbers {
        background: #ffffff !important;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px;
        gap: 6px;
        overflow: hidden;
    }

    #side-numbers .num-btn {
        width: 12px;
        height: 12px;
        border-radius: 9999px;
        background: #e5e7eb;
        /* gri yuvarlak kutucuk */
        padding: 0;
        font-size: 0;
        /* rakamı gizle */
        color: transparent;
        border: none;
        flex: 0 0 auto;
    }

    #side-numbers .num-btn.active {
        background: #9e0000;
        /* aktif kutucuk rengi */
    }
}

/* Mobilde sağmanşet swiper'ı yüklenmeden önce de doğru boyutta görünsün */
@media (max-width: 640px) {
    .side-swiper {
        height: 250px !important;
    }
    
    .side-swiper .swiper-wrapper {
        height: 250px !important;
        display: flex !important;
        flex-direction: row !important;
    }
    
    .side-swiper .swiper-slide {
        height: 250px !important;
        width: calc(50% - 6px) !important;
        flex: 0 0 auto !important;
        margin-right: 12px !important;
    }
    
    .side-swiper .swiper-slide:last-child {
        margin-right: 0 !important;
    }
    
    .side-swiper .swiper-slide img {
        height: 250px !important;
        object-fit: cover !important;
        width: 100% !important;
    }
    
    /* Swiper yüklenmeden önce de yan yana görünsün */
    .side-swiper:not(.swiper-initialized) .swiper-slide {
        display: block !important;
        float: left !important;
        width: calc(50% - 6px) !important;
        margin-right: 12px !important;
    }
    
    .side-swiper:not(.swiper-initialized) .swiper-slide:last-child {
        margin-right: 0 !important;
    }
}

/* ===== RIGHT HEADLINE SECTION STYLES ===== */
/* Sağ manşet başlık stilleri */
.side-swiper .swiper-slide h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px 15px 15px 15px; 
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

/* Mobilde sağ manşet başlık ayarları */
@media (max-width: 767px) {
    .side-swiper .swiper-slide h3 {
        font-size: 16px;
        padding: 15px 10px 10px 10px;
        min-height: 50px;
    }
}

/* ===== SWIPER STYLES ===== */
/* Süpermanset okları */
.supermanset-swiper .swiper-button-prev, .supermanset-swiper .swiper-button-next ,.main-swiper .swiper-button-prev, .main-swiper .swiper-button-next  {
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 9999px;
    background: transparent;
    box-shadow: none;
    transition: all 0.3s ease;
}

.supermanset-swiper .swiper-button-prev:hover,
.supermanset-swiper .swiper-button-next:hover {
    background: transparent;
    transform: scale(1.2);
}

.supermanset-swiper .swiper-button-prev:after,
.supermanset-swiper .swiper-button-next:after {
    font-size: 42px;
    font-weight: bold;
}

/* ===== SUPERMANSET SLIDER STYLES ===== */
/* Süpermanset slider container */
.supermanset-swiper {
    width: 100%;
    height: auto;
}

/* Ensure proper spacing between slides */
.supermanset-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

/* Ensure consistent container alignment across all sections */
.max-w-6xl {
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    max-width: 1110px !important;
    /* Override Tailwind's max-w-6xl */
}

/* Ensure supermanset section aligns with other sections */
.supermanset {
    width: 100%;
    max-width: 1110px;
    margin-left: auto;
    margin-right: auto;
}

/* Süpermanset slide items */
.supermanset-swiper .swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Desktop: 4 items side by side */
@media (min-width: 768px) {
    .supermanset-swiper .swiper-slide {
        width: calc(25% - 12px);
        /* 4 items with 16px gap */
        flex: 0 0 auto;
        margin-right: 16px;
    }

    .supermanset-swiper .swiper-slide:last-child {
        margin-right: 0;
    }
}

/* Mobile: 2 items side by side */
@media (max-width: 767px) {
    .supermanset-swiper .swiper-slide {
        width: calc(50% - 6px);
        /* 2 items with 12px gap */
        flex: 0 0 auto;
        margin-right: 12px;
    }

    .supermanset-swiper .swiper-slide:last-child {
        margin-right: 0;
    }
}

/* Süpermanset news card styling */
.supermanset-swiper .swiper-slide .bg-white {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.supermanset-swiper .swiper-slide .bg-white img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}

.supermanset-swiper .swiper-slide .p-3 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.supermanset-swiper .swiper-slide h2 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile adjustments for news cards */
@media (max-width: 767px) {
    .supermanset-swiper .swiper-slide .bg-white img {
        height: 150px;
    }

    .supermanset-swiper .swiper-slide h2 {
        font-size: 16px;
        font-weight: 700; 
    }

    .supermanset-swiper .swiper-slide .p-3 {
        padding: 12px;
    }
}

/* ===== ACTIVE NUMBER BUTTON STYLES ===== */
/* Manşet numaraları */
#main-numbers .num-btn.active {
    background-color: #dc2626;
    color: #fff;
}

/* Sağ manşet numaraları */
#side-numbers .num-btn.active {
    background-color: #ff0000;
    color: #fff;
}

/* ===== GRID LAYOUT STYLES ===== */
/* Tek satırda orantılı kalması için grid'i zorla kullan */
#main-numbers,
#side-numbers {
    display: grid !important;
    overflow: hidden;
}

/* Mobilde yuvarlak kutucuklar - ekrana orantılı dağıt */
@media (max-width: 640px) {
    
    /* Sağmanşet numaralarını mobilde gizle */
    #side-numbers {
        display: none !important;
    }
    
    /* Manşet numaralarını mobil için optimize et */
    #main-numbers {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
        gap: 2px !important;
        padding: 0 4px !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    #main-numbers .num-link {
        flex: 1 !important;
        height: 14px !important;
        padding: 0 !important;
        border-radius: 9999px !important;
        font-size: 0 !important;
        line-height: 1 !important;
        border: none !important;
        background: #e5e7eb !important;
        color: transparent !important;
        min-width: 0 !important;
        max-width: 16px !important;
    }

    #main-numbers .num-link.active {
        background: #9e0000 !important;
        color: transparent !important;
    }

    /* T linki için özel stil */
    #main-numbers .t-link {
        width: auto !important;
        height: 28px !important;
        padding: 0 8px !important;
        border-radius: 4px !important;
        font-size: 12px !important;
        line-height: 1 !important;
        border: 1px solid #e5e7eb !important;
        background: #ffffff !important;
        color: #111827 !important;
        flex: 0 0 auto !important;
        margin-left: 4px !important;
    }
}

/* ===== ASPECT RATIO FALLBACK ===== */
.aspect-730-430 {
    aspect-ratio: 730 / 430;
}

.aspect-360-430 {
    aspect-ratio: 360 / 430;
}

/* ===== HABERLER BÖLÜMÜ FOTOĞRAF ORANTILARI ===== */
/* Haberler bölümündeki fotoğraflar için orantılı boyutlandırma */
@media (max-width: 640px) {
    /* Mobilde 2 sütun için */
    .grid.grid-cols-2 .bg-white img {
        aspect-ratio: 16/9 !important;
        object-fit: cover !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    /* Tablet'te 2 sütun için */
    .grid.grid-cols-2 .bg-white img {
        aspect-ratio: 16/9 !important;
        object-fit: cover !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (min-width: 1024px) {
    /* Masaüstünde 4 sütun için */
    .grid.grid-cols-4 .bg-white img {
        aspect-ratio: 16/9 !important;
        object-fit: cover !important;
        width: 100% !important;
        height: auto !important;
    }
}

/* ===== YAZARLAR BÖLÜMÜ FOTOĞRAF BOYUTLARI ===== */
/* Yazarlar bölümündeki fotoğraflar için orantılı büyütme */
.writers-swiper .w-30 {
    width: 120px !important;
    height: 120px !important;
}

 

/* ===== İKİNCİ MANSET NUMARALARI - ANA MANSET İLE AYNI ===== */
/* İkinci manset numaraları ana manset ile aynı özellikler */
#second-manset-numbers {
    background: #dc2626;
}

#second-manset-numbers .num-link {
    background: #fff;
    color: #000;
}

#second-manset-numbers .num-link:hover,
#second-manset-numbers .num-link.active {
    background: #dc2626;
    color: #fff;
}

/* Mobilde ikinci manset numaralarını yuvarlak kutucuklara çevir */
@media (max-width: 640px) {
    #second-manset-numbers {
        background: #ffffff !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 4px !important;
        gap: 2px !important;
        overflow: hidden !important;
        width: 100% !important;
    }

    #second-manset-numbers .num-link {
        flex: 1 !important;
        height: 14px !important;
        padding: 0 !important;
        border-radius: 9999px !important;
        font-size: 0 !important;
        line-height: 1 !important;
        border: none !important;
        background: #e5e7eb !important;
        color: transparent !important;
        min-width: 0 !important;
        max-width: 14px !important;
    }

    #second-manset-numbers .num-link.active {
        background: #9e0000 !important;
        color: transparent !important;
    }
}

/* ===== NUMBER BOX STYLES ===== */
/* numara kutucukları */
#main-numbers .num-btn,
#side-numbers .num-btn {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

/* ===== HABER İÇERİĞİ GÖRSELLERİ ===== */
/* Haber içeriklerindeki img etiketleri orantılı ve taşmadan gözüksün */
.haber-icerik img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* manşet numaraları */
#main-numbers {
    background: #dc2626;
}

#main-numbers .num-btn {
    background: #fff;
    color: #000;
}

#main-numbers .num-btn:hover,
#main-numbers .num-btn.active {
    background: #dc2626;
    color: #fff;
}

/* sağ manşet numaraları */
#side-numbers {
    background: #000;
}

#side-numbers .num-btn {
    background: #000;
    color: #fff;
}

#side-numbers .num-btn:hover,
#side-numbers .num-btn.active {
    background: #dc2626;
    color: #fff;
}
.icerik {
	font-size:18px;
}
.icerik img {
	padding:15px 0; 
    height: auto !important;
}
.icerik p {
	padding:10px 0;
}
.icerik a {
	color:#3670e2
}



/* ===== EMOJI REACTION SYSTEM ===== */
/* Emoji tepki sistemi stilleri */
.emoji-reaction {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 12px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.emoji-reaction:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.emoji-reaction.active {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: scale(1.05);
}

.emoji-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
}

.emoji {
    font-size: 2rem;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.emoji-reaction:hover .emoji {
    transform: scale(1.2);
}

.emoji-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    background: white;
    padding: 2px 6px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Emoji tepki animasyonları */
.emoji-reaction.clicked .emoji {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-10px) scale(1.3); }
    60% { transform: translateY(-5px) scale(1.1); }
}

/* Mobil responsive ayarları */
@media (max-width: 768px) {
    .emoji-reaction {
        padding: 8px 4px;
    }
    
    .emoji {
        font-size: 1.5rem;
    }
    
    .emoji-count {
        font-size: 0.75rem;
        padding: 1px 4px;
    }
}
.gradient-bg {
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
}



/* ===== ÇEREZ POLİTİKASI KUTUSU STİLLERİ ===== */
/* Çerez kutusu temel stilleri */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 50;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

#cookie-banner.show {
    transform: translateY(0);
}

/* Çerez kutusu içerik alanı */
#cookie-banner .max-w-6xl {
    max-width: 1110px;
    margin: 0 auto;
    padding: 16px;
}

/* Çerez kutusu metin alanı */
#cookie-banner p {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

/* Çerez kutusu linkleri */
#cookie-banner a {
    color: #dc2626;
    text-decoration: underline;
    transition: color 0.2s ease;
}

#cookie-banner a:hover {
    color: #b91c1c;
}

/* Çerez kutusu butonları */
#cookie-banner button {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 24px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid;
}

/* Reddet butonu */
#cookie-reject {
    background-color: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

#cookie-reject:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

/* Kabul et butonu */
#cookie-accept {
    background-color: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

#cookie-accept:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

/* Responsive tasarım */
@media (max-width: 1024px) {
    #cookie-banner .max-w-6xl {
        padding: 12px;
    }
    
    #cookie-banner p {
        font-size: 13px;
    }
    
    #cookie-banner button {
        font-size: 13px;
        padding: 6px 20px;
    }
}

@media (max-width: 640px) {
    #cookie-banner .max-w-6xl {
        padding: 10px;
    }
    
    #cookie-banner p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    #cookie-banner button {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    /* Mobilde butonları tam genişlik yap */
    #cookie-banner .flex-col button {
        width: 100%;
    }
}

/* Çerez kutusu animasyonları */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

#cookie-banner.slide-up {
    animation: slideUp 0.3s ease-in-out;
}

#cookie-banner.slide-down {
    animation: slideDown 0.3s ease-in-out;
}
#haberdetay h1 {
    line-height: 1.3 !important;
    font-weight: 500;
}