/* ===================================================================
   GENEL STİL AYARLARI
   Tüm sayfalar için temel gövde, yazı tipi ve renk ayarları.
=================================================================== */
body {
    background-color: #f0f2f5;
}

/* ===================================================================
   HEADER (NAVBAR) VE NAVİGASYON
   Tüm sayfalarda ortak olan üst menü, arama formu ve ikon stilleri.
=================================================================== */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #dddfe2;
}

/* Site Brand ve Slogan Stilleri */
.site-brand-text {
    line-height: 1.1;
    gap: 2px;
}

.site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1px;
}

.site-slogan {
    font-size: 0.65rem;
    font-weight: 500;
    color: #8c8c8c;
    font-style: italic;
    margin-top: 2px;
    letter-spacing: 0.02em;
}

/* Responsive ayarları */
@media (max-width: 576px) {
    .site-name {
        font-size: 1.1rem;
        margin-bottom: 1px;
    }
    
    .site-slogan {
        font-size: 0.6rem;
        font-weight: 500;
        margin-top: 2px;
    }
}

.search-form {
    width: 100%;
    max-width: 400px;
}

.nav-icons .nav-link {
    color: #606770;
    font-size: 1.3rem;
    margin: 0 8px;
    position: relative;
}

.nav-icons .nav-link .badge {
    position: absolute;
    top: 0;
    right: -5px;
    font-size: 0.6rem;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Picture element desteği için stilleri */
picture {
    display: block;
}

picture img {
    max-width: 100%;
    height: auto;
}

/* Cover image için responsive picture support */
.cover-image-container picture,
.card-img-container picture {
    width: 100%;
    height: auto;
}

.cover-image-container picture img,
.card-img-container picture img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.logout-btn {
    font-weight: 600;
}

/* ===================================================================
   PROFIL RESMİ YÜKLEME VE KIRPMA STİLLERİ
   Ayarlar sayfasında profil resmi yükleme, önizleme ve kırpma stilleri.
=================================================================== */
.profile-picture-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #fafafa;
}

.current-profile-picture-preview {
    text-align: center;
}

.current-profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-profile-picture {
    padding: 20px;
}

.preview-wrapper {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

#profile-picture-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

/* Kırpma modalı stilleri */
.cropper-modal-body {
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#profile-image-to-crop, #cover-image-to-crop {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Kapak fotoğrafı yükleme stilleri */
.cover-picture-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #fafafa;
}

.current-cover-picture-preview {
    text-align: center;
}

.current-cover-img {
    width: 100%;
    max-width: 600px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-cover-picture {
    padding: 20px;
}

#cover-picture-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid #ddd;
    object-fit: cover;
}


/* ===================================================================
   ANA YAPI VE LAYOUT
   Sayfaların genel yerleşimini düzenleyen stiller.
=================================================================== */
.main-layout {
    padding-top: 70px; /* Sabit header için boşluk */
}

.main-content {
    transition: all 0.3s ease;
}

.page-header {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #dddfe2;
}

/* ===================================================================
   SOL MENÜ (SIDEBAR)
   Tüm sayfalarda ortak olan sol menü ve link stilleri.
=================================================================== */
.sidebar {
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    background-color: #ffffff;
    border-right: 1px solid #dddfe2;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.sidebar .nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    border-radius: 999px;
    margin-bottom: 0.05rem;
    padding: 0.35rem 1rem;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: #e7f3ff;
    color: #1d9bf0;
}

.sidebar .nav-link i {
    font-size: 1.3rem;
    margin-right: 0.8rem;
}


/* ===================================================================
   TRENDLER KARTI (SIDEBAR)
   Sol menüde yer alan trendler bölümünün stilleri.
=================================================================== */
.trends-card {
    background-color: #f7f9f9;
    border-radius: 16px;
    border: none;
}

.trends-card .card-body {
    padding: 0.75rem;
}

.trends-card .card-title a:hover {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.trends-card .list-group-item {
    background-color: transparent;
    border: none;
    padding: 0.3rem 0.75rem;
}

.trend-tag {
    font-weight: bold;
    color: #0f1419;
    font-size: 0.95rem;
}

.star-rating {
    color: #ffad1f;
    font-size: 0.9rem;
}

.rating-score {
    font-size: 0.85rem;
    color: #536471;
    font-weight: 500;
}


/* ===================================================================
   STANDART HABER KARTLARI (POST CARD)
   'takipedilenler', 'profil' vb. sayfalardaki standart kart yapısı.
=================================================================== */
.post-card {
    background-color: #ffffff;
    border: 1px solid #dddfe2;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.post-card .card-header {
    background-color: transparent;
    border-bottom: 1px solid #f0f2f5;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
}

.post-card .profile-pic-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.post-card .card-body {
    padding: 1rem 1rem;
}

.post-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.post-card .card-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1c1e21;
}

.post-card .card-img-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background-color: #f0f2f5;
}

.post-card .card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card .card-footer {
    background-color: #fff;
    border-top: 1px solid #e9ebee;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-stats span {
    color: #606770;
    font-weight: 500;
    font-size: 0.9rem;
}

.post-stats .like-btn {
    cursor: pointer; /* İmleci tıklanabilir yap */
}

.post-stats i {
    margin-right: 0.4rem;
}

.post-card .card-footer .star-rating {
    color: #ffad1f;
    font-size: 1rem;
}

.post-card .card-footer .rating-score {
    font-size: 0.9rem;
    color: #606770;
    font-weight: 600;
}

.post-card .news-tag {
    background-color: #e7f3ff;
    color: #1d9bf0;
    font-weight: 500;
    padding: 0.25em 0.6em;
    border-radius: 999px;
    font-size: 0.8rem;
}

/* ===================================================================
   ANASAYFA ÖZEL STİLLERİ (index.html)
=================================================================== */
.section-header {
    background-color: #dc3545;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-bottom: none !important;
    border-top-left-radius: var(--bs-card-inner-border-radius);
    border-top-right-radius: var(--bs-card-inner-border-radius);
}

.ad-banner, .wide-ad-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #e9ecef;
    border-radius: 16px;
    text-decoration: none;
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.ad-banner {
    height: 250px;
}

.wide-ad-banner {
    min-height: 120px;
    padding: 1rem;
}

.ad-banner:hover, .wide-ad-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    color: #495057;
}

/* Modern Slider için minimal CSS - performans optimizasyonu */
#modern-slider-container {
    background-color: #fff;
}
/* Sadece gerekli overridelar - yeni Tailwind slider ile uyumluluk için */
#modern-slider-container .transition-transform {
    transition: transform 0.5s ease-in-out;
}



/* Anasayfa - Dikey Slider */
.vertical-slider-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.vertical-slider-card .card-header {
    background-color: #dc3545;
    color: white;
    font-weight: bold;
}
.vertical-slider-nav {
    overflow-y: auto;
    flex-shrink: 0;
    border-right: 1px solid #dee2e6;
}
.vertical-slider-nav .nav-link {
    font-weight: bold;
    color: #6c757d;
    cursor: pointer;
    width: 50px;
    height: 45.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #dee2e6;
    user-select: none;
    -webkit-user-select: none;
    transition: background-color 0.1s ease, color 0.1s ease, border-color 0.1s ease;
    margin-bottom: 0;
}
.vertical-slider-nav .nav-link:last-child {
    border-bottom: none;
}
.vertical-slider-nav .nav-link.active {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}
.vertical-slider-content {
    padding: 1rem;
    height: 100%; /* Tam yükseklik kullan */
    overflow: hidden; /* Scroll'ı kaldır */
}
.vertical-slider-content img {
    width: 100%;
    height: 150px; /* Orijinal boyut korundu */
    object-fit: cover;
    border-radius: 0.375rem;
}
.vertical-slider-content h5 {
    font-size: 0.85rem !important; /* Başlığı daha fazla küçült */
    line-height: 1.3 !important;
    margin-top: 0.05rem !important; /* Resime değecek kadar yaklaştır */
    margin-bottom: 0.25rem !important;
    max-width: 111%; /* Resim genişliği kadar */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Başlığı 2 satırla sınırla */
    -webkit-box-orient: vertical;
}

/* Kırmızı altlıklı başlığın genişliğini resim genişliği ile tamamen aynı yap */
.vertical-slider-content h5.bg-danger,
.vertical-slider-content h6.bg-danger {
    width: calc(100% + 2rem) !important; /* Container padding'ini telafi et (1rem left + 1rem right) */
    margin-left: -1rem !important; /* Sol padding'i telafi et */
    margin-right: -1rem !important; /* Sağ padding'i telafi et */
    display: block !important;
    box-sizing: border-box !important; /* Padding ve border dahil genişlik hesabı */
}
.vertical-slider-content p {
    font-size: 0.75rem !important; /* Özet yazısını küçült */
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Özeti 3 satırla sınırla */
    -webkit-box-orient: vertical;
}
.news-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.vertical-slider-content .news-tag {
    background-color: #e7f3ff;
    color: #1d9bf0;
    font-weight: 500;
    padding: 0.25em 0.6em;
    border-radius: 999px;
    font-size: 0.8rem;
}

/* Manşet Haberler başlık stilleri */
#verticalSliderTitle,
#mobileVerticalSliderTitle {
    background-color: #dc3545 !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    margin-bottom: 1rem !important;
}

#verticalSliderTitleLink {
    color: white !important;
    text-decoration: none !important;
}

#verticalSliderTitle:hover,
#mobileVerticalSliderTitle:hover {
    background-color: #c82333 !important;
    transition: background-color 0.2s ease;
}

/* Mobil header dropdown fix - Vanilla JavaScript */
#mobileMenuContent {
    z-index: 1050;
    background-color: white;
    border-top: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
    height: 0;
    transition: height 0.35s ease-in-out;
}

#mobileMenuContent.show {
    display: block !important;
}

.dropdown-menu {
    z-index: 1055;
}

/* Mobil dropdown buton fix */
#mobileMenuToggleBtn {
    position: relative;
    z-index: 1060;
    transition: background-color 0.2s ease;
}

#mobileMenuToggleBtn:hover {
    background-color: #e9ecef !important;
}

/* Anasayfa - Haber Kartları */
.news-card {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
.news-card .card-img-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}
.news-card .card-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Anasayfa - Son Haberler Sütunu */
.latest-news-card {
    background-color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.latest-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.latest-news-card .card-title {
    font-weight: 600;
    color: #212529;
    font-size: 1rem;
}
.latest-news-card .card-body {
    padding: 1rem;
}
.latest-news-card .card-footer {
    padding: 0 1rem 1rem 1rem;
    background: none;
    border-top: 1px solid #f1f1f1;
}

/* ===================================================================
   KEŞFET SAYFASI (kesfet.html)
=================================================================== */
.search-container {
    background-color: #fff;
    border: 1px solid #dddfe2;
    border-radius: 8px;
}
.hashtag-card {
    background-color: #fff;
    border: 1px solid #dddfe2;
    border-radius: 12px;
    padding: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
}
.hashtag-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.hashtag-card a {
    color: inherit;
    text-decoration: none;
}
.hashtag-title {
    font-weight: 700;
    color: #0f1419;
    font-size: 1.1rem;
}
.hashtag-stats {
    font-size: 0.9rem;
    color: #606770;
}
.hashtag-score {
    font-size: 0.9rem;
    color: #536471;
    font-weight: 500;
}

/* ===================================================================
   ANKETLER SAYFASI (anketler.html)
=================================================================== */
.poll-card {
    background-color: #fff;
    border: 1px solid #dddfe2;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease-in-out;
}
.poll-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.poll-card .card-header {
    background-color: #fff;
    border-bottom: 1px solid #f0f2f5;
}
.poll-author-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.poll-question {
    font-weight: 600;
    font-size: 1.1rem;
}
.poll-option {
    border: 1px solid #dddfe2;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background-color 0.1s ease, color 0.1s ease, transform 0.1s ease;
    user-select: none;
}
.poll-option:hover {
    background-color: #f7f9f9;
    border-color: #1d9bf0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.poll-option:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.poll-option input[type="radio"] {
    display: none;
}
.poll-option input[type="radio"]:checked + label {
    font-weight: bold;
    color: #1d9bf0;
}
.poll-option.selected {
    background-color: #e3f2fd;
    border-color: #1d9bf0;
    font-weight: bold;
}
.poll-result .progress {
    height: 2.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: #e9ecef;
}
.poll-result .progress-bar {
    background-color: #1d9bf0;
    font-weight: 500;
    text-align: left;
    padding: 0 1rem;
}
.poll-result .progress-bar.leading {
    background-color: #17a2b8;
}
.poll-result-text {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 12px;
    color: #333;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    z-index: 2;
}

/* Progress bar container için */
.poll-result .progress {
    position: relative;
    height: 40px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

/* Progress bar için minimum görünürlük */
.poll-result .progress-bar {
    min-width: 8px; /* En azından bir miktar görünsün */
    transition: width 0.3s ease;
}
.poll-card .card-footer {
    background-color: #f7f9f9;
    border-top: 1px solid #f0f2f5;
    font-size: 0.85rem;
    color: #606770;
    font-weight: 500;
    padding: 0.75rem 1rem;
}
.poll-card .card-footer .stat-item i {
    font-size: 1rem;
}
.rating-score-poll {
    font-size: 0.9rem;
    color: #606770;
}
.poll-card.completed {
    background-color: #fcfcfc;
}
.poll-card.completed .poll-question {
    color: #606770;
}

/* ===================================================================
   PROFİL SAYFASI (profil.php)
=================================================================== */
.profile-header {
    background-color: #fff;
    border: 1px solid #dddfe2;
    border-radius: 12px;
}
.profile-cover {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
}
.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #fff;
    margin-top: -75px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.profile-stats a {
    text-decoration: none;
    color: inherit;
}
.profile-stats a:hover .stat-number {
    color: #1d9bf0;
}
.stat-number {
    font-size: 1.1rem;
    font-weight: bold;
}
.stat-label {
    font-size: 0.9rem;
    color: #606770;
}
.sticky-sidebar {
    position: sticky;
    top: 85px;
}

/* ===================================================================
   BİLDİRİMLER SAYFASI (bildirimler.html)
=================================================================== */
.notifications-card {
    background-color: #fff;
    border: 1px solid #dddfe2;
    border-radius: 12px;
}
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f2f5;
    transition: background-color 0.2s ease;
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item.unread {
    background-color: #e7f3ff;
}
.notification-item:hover {
    background-color: #f7f9f9;
}
.notification-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notification-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.notification-content .username {
    font-weight: 600;
    color: #0f1419;
}
.notification-content .news-title {
    font-weight: 500;
    color: #1d9bf0;
}
.notification-time {
    font-size: 0.85rem;
    color: #606770;
}

/* ===================================================================
   MESAJLAR SAYFASI (mesajlar.html)
=================================================================== */
.messages-container {
    height: calc(100vh - 70px);
    display: flex;
    position: relative;
    overflow: hidden;
}
.chat-list-column {
    background-color: #fff;
    border-right: 1px solid #dddfe2;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.chat-window-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.chat-list-header, .chat-window-header {
    padding: 1rem;
    border-bottom: 1px solid #dddfe2;
    flex-shrink: 0;
}
.chat-list {
    overflow-y: auto;
    flex-grow: 1;
}
.chat-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f2f5;
    transition: background-color 0.2s ease;
}
.chat-item:hover {
    background-color: #f7f9f9;
}
.chat-item.active {
    background-color: #e7f3ff;
}
.chat-item.unread .chat-last-message, .chat-item.unread .chat-user {
    font-weight: bold;
    color: #0f1419;
}
.chat-last-message {
    font-size: 0.9rem;
    color: #606770;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-time {
    font-size: 0.8rem;
    color: #606770;
    margin-left: auto;
    white-space: nowrap;
}
.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}
.message-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    margin-bottom: 0.5rem;
}
.message-sent {
    background-color: #1d9bf0;
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}
.message-received {
    background-color: #e9ecef;
    color: #0f1419;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}
.chat-input-area {
    padding: 1rem;
    background-color: #fff;
    border-top: 1px solid #dddfe2;
    flex-shrink: 0;
}

/* ===================================================================
   AYARLAR SAYFASI (ayarlar.html)
=================================================================== */
.settings-nav .nav-link {
    color: #333;
    font-weight: 500;
}
.settings-nav .nav-link.active {
    background-color: #1d9bf0;
    color: white;
}
.settings-card {
    background-color: #fff;
    border: 1px solid #dddfe2;
    border-radius: 12px;
}
.form-label {
    font-weight: 600;
}
.form-switch .form-check-label {
    cursor: pointer;
}

/* ===================================================================
   SEKMELİ YAPI (Tabs)
   Profil ve anketler gibi sayfalardaki sekmeler.
=================================================================== */
.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #606770;
    font-weight: 600;
}

.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
    color: #1d9bf0;
    border-color: #1d9bf0;
    background-color: transparent;
}


/* ===================================================================
   TAKİP EDİLENLER SAYFASI (takipedilenler.html)
=================================================================== */
.follow-stats-container a {
    color: #606770;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.follow-stats-container a:hover {
    color: #0d6efd;
}

.follow-stats-container .badge {
    font-size: 0.9rem;
}


/* ===================================================================
   MOBİL VE DUYARLILIK AYARLARI
   Tüm sayfalarda geçerli olan responsive ve sidebar toggle stilleri.
=================================================================== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 1040;
    display: none;
}

/* Masaüstünde menü kapalıyken */
body.sidebar-collapsed .sidebar {
    flex: 0 0 0px;
    max-width: 0px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-right: none !important;
    overflow: hidden;
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

body.sidebar-collapsed .main-content {
    flex: 0 0 100%;
    max-width: 100%;
    transition: all 0.3s ease;
}

/* Mobil (992px altı) */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 1045;
        top: 70px;
        height: calc(100vh - 70px);
        width: 250px;
        left: 0;
        background-color: #ffffff;
        border-right: 1px solid #dddfe2;
        transition: transform 0.3s ease;
    }
    body.sidebar-visible .sidebar {
        transform: translateX(0);
        box-shadow: 0 0 15px rgba(0,0,0,0.2);
    }
    body.sidebar-visible .overlay {
        display: block;
    }
    
    /* Mobilde main content full width */
    .main-content {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Mesajlar Sayfası için Mobil Stiller */
@media (max-width: 768px) {
    .chat-list-column {
        width: 100%;
        flex: 0 0 100%;
        transition: margin-left 0.3s ease-in-out;
    }
    .chat-window-column {
        display: flex;
        position: absolute;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100%;
        transition: left 0.3s ease-in-out;
        background-color: #f0f2f5;
    }
    .messages-container.mobile-chat-active .chat-list-column {
        margin-left: -100%;
    }
    .messages-container.mobile-chat-active .chat-window-column {
        left: 0;
    }
}

/* Giriş Sayfası Stilleri */
.login-prompt-card {
    background-color: #fff;
    border: 1px solid #dddfe2;
    border-radius: 12px;
    overflow: hidden;
}
.prompt-image {
    object-fit: cover;
    height: 100%;
    min-height: 500px;
}
.form-view {
    display: none; /* Başlangıçta formları gizle */
}

/* Mobil Stilleri */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); position: fixed; z-index: 1045; top: 70px; height: calc(100vh - 70px); }
    body.sidebar-visible .sidebar { transform: translateX(0); box-shadow: 0 0 15px rgba(0,0,0,0.2); }
    body.sidebar-visible .overlay { display: block; }
}
body.sidebar-collapsed .sidebar { flex: 0 0 0px; max-width: 0px; padding-left: 0 !important; padding-right: 0 !important; border-right: none !important; overflow: hidden; transform: translateX(-100%); }
body.sidebar-collapsed .main-content { flex: 0 0 100%; max-width: 100%; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.4); z-index: 1040; display: none; }

/* ===================================================================
   İÇERİK EKLE SAYFASI (icerikekle.html)
=================================================================== */
.create-content-card {
    background-color: #fff;
    border: 1px solid #dddfe2;
    border-radius: 12px;
    overflow: hidden;
}
.create-content-card .card-header {
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    font-weight: bold;
}
.create-content-card .form-label {
    font-weight: 600;
}
.create-content-card .form-control-lg {
    font-size: 1.1rem;
}
.create-content-card .form-text {
    font-size: 0.85rem;
}
.create-content-card .note-editor {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem;
}
.create-content-card .note-toolbar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}
.create-content-card .note-editing-area .note-editable {
    background-color: #fff;
}
.create-content-card .note-statusbar {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* Kapak Fotoğrafı Önizleme */
#cover-photo-preview-container {
    width: 100%;
    height: 200px; /* Sabit yükseklik */
    background-color: #e9ecef;
    border: 1px dashed #ced4da;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
#cover-photo-preview {
    max-width: 100%;
    max-height: 100%;
    width: auto; /* Genişliği otomatik ayarla */
    height: auto; /* Yüksekliği otomatik ayarla */
    object-fit: contain; /* Görselin tamamını göster, boşluklar kalabilir */
}
#preview-placeholder {
    text-align: center;
    color: #6c757d;
}
#preview-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Cropper Modal Stilleri */
.cropper-modal-body {
    text-align: center;
    max-height: 70vh; /* Ekran yüksekliğinin %70'i kadar maksimum yükseklik */
    overflow-y: auto; /* İçerik taşarsa dikey kaydırma çubuğu göster */
    display: flex; /* İçeriği ortalamak için flexbox kullan */
    align-items: center;
    justify-content: center;
}
.cropper-modal-body img {
    max-width: 100%;
    max-height: 100%; /* Kapsayıcıya sığması için */
    display: block; /* Fazla boşlukları engellemek için */
}
.cropper-container {
    margin: 0 auto;
    max-width: 100%; /* Cropper konteynerini de sınırla */
    max-height: 100%;
}

/* Etiket Input Stilleri */
.tags-input-wrapper {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    cursor: text;
    min-height: 45px;
}
.tags-input-wrapper:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.tags-input-wrapper input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 0.25rem 0.5rem;
    min-width: 100px;
}
.tags-input-wrapper input::placeholder {
    color: #6c757d;
}
.tags-input-wrapper .badge {
    padding: 0.5em 0.75em;
    font-size: 0.9em;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    display: inline-flex;
    align-items: center;
}
.tags-input-wrapper .badge .btn-close {
    font-size: 0.6em;
    margin-left: 0.5rem;
}

/* Anket Oluşturma Sayfası Özel Stilleri */
.poll-option-input .remove-option-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.cursor-pointer {
    cursor: pointer;
}

#poll-tags-container .badge {
    max-height: 32px;
    align-items: center !important;
}

#poll-tags-container .btn-close {
    padding: 0;
    margin: 0 0 0 0.5rem;
}

/* Debug için console log mesajları */
.debug {
    display: none;
}

/* Yayınlama Onay Modalı */
#publishConfirmModal .modal-body ul {
    padding-left: 1.5rem;
}
#publishConfirmModal .modal-body ul li {
    margin-bottom: 0.75rem;
}
#publishConfirmModal .modal-body ul li:last-child {
    margin-bottom: 0;
}

/* Haber Detay Sayfası Stilleri */
.news-article-card { background-color: #fff; border: 1px solid #dddfe2; border-radius: 12px; overflow: hidden; }
.cover-image-container { position: relative; width: 100%; padding-top: 56.25%; background-color: #e9ecef; }
.cover-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.article-title { font-size: 2.5rem; font-weight: 700; }
.article-summary { font-size: 1.2rem; color: #606770; }
.author-pic { width: 48px; height: 48px; border-radius: 50%; }
.article-meta { color: #606770; font-size: 0.9rem; }
.article-content { line-height: 1.8; font-size: 1.1rem; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin-top: 1rem; margin-bottom: 1rem; }
.article-content h3 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; }
.article-tags .badge { font-size: 0.9rem; padding: .5em .8em; }
.stats-bar { font-size: 0.95rem; }
.stats-bar .stat-item { color: #606770; font-weight: 500; }
.stats-bar .stat-item i { font-size: 1.1rem; }

.stats-bar .like-btn,
.stats-bar .save-btn,
.stats-bar .star-rating {
    cursor: pointer; /* İmleci tıklanabilir yap */
}

/* Yorumlar Bölümü */
.comment-section { background-color: #fff; border: 1px solid #dddfe2; border-radius: 12px; padding: 1.5rem; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; transition: all 0.3s ease; }
.comment-body { background-color: #f0f2f5; padding: 0.75rem 1rem; border-radius: 18px; }
.comment-actions a { font-size: 0.85rem; color: #606770; text-decoration: none; font-weight: 600; }
.comment-actions a:hover { color: #1d9bf0; }
.comment-actions a.liked { color: #1d9bf0; }

@media (max-width: 768px) { .article-title { font-size: 1.8rem; } }

/* ===================================================================
   ETİKET SAYFASI STİLLERİ
   Etiket haberleri sayfasındaki özel stiller.
=================================================================== */
.stat-box {
    text-align: center;
    padding: 15px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

.news-tag.active {
    background-color: #0d6efd;
    color: white !important;
    border-color: #0d6efd;
}

/* ===================================================================
   TREND ETİKETLER STİLLERİ (Canlı Trend Sistemi)
=================================================================== */
.trend-tag {
    position: relative;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.trend-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}

.trend-tag .trend-rank {
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    margin-right: 2px;
}

/* Trend seviye renkleri */
.trend-tag.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    animation: pulse-red 2s infinite;
}

.trend-tag.bg-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    animation: pulse-yellow 3s infinite;
}

.trend-tag.bg-success {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
}

/* Trend animasyonları */
@keyframes pulse-red {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
}

@keyframes pulse-yellow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(255, 193, 7, 0); }
}

/* Trend etiket konteyneri */
.trend-tags-container {
    max-height: 200px;
    overflow-y: auto;
}

.trend-tags-container::-webkit-scrollbar {
    width: 4px;
}

.trend-tags-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.trend-tags-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.trend-tags-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .trend-tag {
        font-size: 0.75rem;
        padding: 4px 8px !important;
    }
    
    .trend-tag .trend-rank {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
}

/* ===================================================================
   MESSAGE NOTIFICATION DOT
   Header'daki mesaj ikonu için kırmızı nokta bildirimi
=================================================================== */
.message-notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background-color: #dc3545;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 10;
    animation: pulse 2s infinite;
    display: none; /* Varsayılan olarak gizli */
}

/* ===================================================================
   MOBİL BOTTOM NAVİGASYON
   Mobil cihazlarda alt kısımda sabit duran navigation menüsü
=================================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 16px;
    z-index: 1050;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
    height: 65px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #536471;
    text-decoration: none;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 48px;
    height: 48px;
    position: relative;
}

.mobile-nav-item:hover {
    background-color: rgba(15, 20, 25, 0.1);
    color: #0f1419;
    text-decoration: none;
}

.mobile-nav-item.active {
    color: #1d9bf0;
    text-decoration: none;
}

.mobile-nav-item.active:hover {
    background-color: rgba(29, 155, 240, 0.1);
}

.mobile-nav-item i {
    font-size: 24px;
    font-weight: 400;
}

/* Mobil cihazlarda body'ye bottom padding ekle */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px;
    }
    
    /* Mobil menünün üstte görünmemesi için z-index ayarı */
    .mobile-bottom-nav {
        z-index: 1050 !important;
    }
    
    /* Mobil container boşluklarını azalt */
    .main-content .container {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    /* Mobil üst boşlukları optimize et */
    .mobile-ad-1 {
        margin-top: 10px !important;
        margin-bottom: 15px !important;
    }
    
    /* Mobil reklam alanları - genel */
    .mobile-ad-2, .mobile-ad-3 {
        margin: 15px 0;
    }
    
    .mobile-ad-1 .ad-banner,
    .mobile-ad-2 .ad-banner,
    .mobile-ad-3 .ad-banner {
        display: block;
        width: 100%;
        height: 120px;
        background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
        color: white;
        text-decoration: none;
        border-radius: 8px;
        text-align: center;
        line-height: 120px;
        font-weight: bold;
        font-size: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: all 0.2s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-ad-1 .ad-banner:hover,
    .mobile-ad-2 .ad-banner:hover,
    .mobile-ad-3 .ad-banner:hover {
        transform: translateY(-2px);
        text-decoration: none;
        color: white;
    }
    
    /* Mobil dikey slider */
    .mobile-vertical-slider {
        margin: 20px 0;
    }
    
    .mobile-vertical-slider .vertical-slider-card {
        height: auto;
        min-height: 300px;
    }
}

/* Summernote editör sabit font ayarları */
.note-editable {
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.note-editable p {
    font-size: 16px !important;
    margin-bottom: 1rem;
}

.note-editable * {
    font-size: 16px !important;
}

/* Font size değişikliklerini engelle */
.note-editable [style*="font-size"] {
    font-size: 16px !important;
}

/* Mobile notification dot */
.message-notification-dot.mobile-dot {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border: 1px solid #ffffff;
    display: none; /* Varsayılan olarak gizli */
}

/* Pulse animation for notification dot */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===================================================================
   RESPONSIVE VIDEO/IFRAME SUPPORT - YouTube ve Vimeo videoları için
=================================================================== */
.responsive-iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 8px;
    margin: 1rem 0;
    border: none;
    display: block;
}

/* Article content içindeki iframe'ler için özel stil */
.article-content .responsive-iframe {
    width: 100%;
    min-height: 315px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .responsive-iframe,
    .article-content .responsive-iframe {
        height: 250px;
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .responsive-iframe,
    .article-content .responsive-iframe {
        height: 200px;
        min-height: 200px;
        margin: 0.5rem 0;
    }
}

/* ===================================================================
   REKLAM ALANLARI STİLLERİ
   Dinamik reklam sistemi için CSS stilleri
=================================================================== */

/* Üst Reklam Alanları */
.top-ads-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 20px;
    width: 100% !important;
    gap: 1.333% !important;
}

.top-ad-item {
    width: 32% !important;
    background-color: transparent !important;
    border-radius: 8px;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    aspect-ratio: 486/185 !important; /* Gerçek resim oranı: 486x185px */
}

.top-ad-item img,
.top-ad-item .ad-image,
.top-ad-item .img-fluid {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important; /* Resim oranını koru, kırpma yapma */
    object-position: center center !important; /* Resmi tam ortada konumlandır */
    border-radius: 8px;
    display: block !important;
    transition: all 0.3s ease !important; /* Smooth resize animasyonu */
}

.top-ad-item .ad-container {
    width: 100% !important;
    height: 100% !important;
    background: none !important;
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
}

.top-ad-item .ad-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
}

/* Tablet ve orta ekranlar için responsive - Hep aynı oran */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .top-ad-item {
        aspect-ratio: 486/185 !important; /* Gerçek resim oranını koru */
        min-width: 32% !important;
    }
    
    .top-ads-container {
        flex-wrap: nowrap !important;
        overflow: hidden !important;
    }
}

@media (max-width: 1399.98px) and (min-width: 1200px) {
    .top-ad-item {
        aspect-ratio: 486/185 !important; /* Gerçek resim oranını koru */
        min-width: 32% !important;
    }
}

/* Çok büyük ekranlar için - Hep aynı oran */
@media (min-width: 1400px) {
    .top-ad-item {
        aspect-ratio: 486/185 !important; /* Gerçek resim oranını koru */
    }
}

/* Tüm mobil boyutlarda aynı resim oranını koru */
@media (max-width: 991.98px) and (min-width: 768px) {
    .mobile-ad-area:not(.top-ad-item) {
        aspect-ratio: 486/185 !important; /* Gerçek resim oranını koru */
    }
}

@media (max-width: 767.98px) and (min-width: 576px) {
    .mobile-ad-area:not(.top-ad-item) {
        aspect-ratio: 486/185 !important; /* Gerçek resim oranını koru */
    }
}

@media (max-width: 575.98px) {
    .mobile-ad-area:not(.top-ad-item) {
        aspect-ratio: 486/185 !important; /* Gerçek resim oranını koru */
    }
}

/* Mobile responsive - desktop container gizle */
@media (max-width: 991.98px) {
    .top-ads-container {
        display: none !important;
    }
}

/* Mobil reklam alanları */
.mobile-ad-area {
    width: 100% !important;
    background-color: transparent !important;
    border-radius: 8px;
    overflow: hidden !important;
    position: relative !important;
    aspect-ratio: 486/185 !important; /* Gerçek resim oranı - tutarlılık */
}

.mobile-ad-area img,
.mobile-ad-area .ad-image,
.mobile-ad-area .img-fluid {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important; /* Mobilde contain kullan - crop'u minimize et */
    object-position: center center !important;
    border-radius: 8px;
    display: block !important;
    transition: all 0.3s ease !important;
}

.mobile-ad-area .ad-container {
    width: 100% !important;
    height: 100% !important;
    background: none !important;
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
}

.mobile-ad-area .ad-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
}

/* Geniş yatay banner reklam alanı */
.wide-banner-ad {
    width: 100% !important;
    aspect-ratio: 16 / 3 !important;
    border-radius: 8px;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wide-banner-ad img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px;
}

.wide-banner-ad .ad-container {
    width: 100% !important;
    height: 100% !important;
    background: none !important;
}

/* Mobil geniş banner reklam alanı */
.mobile-wide-banner-ad {
    width: 100% !important;
    aspect-ratio: 16 / 3 !important;
    border-radius: 8px;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Responsive display kontrolü */
@media (min-width: 992px) {
    .mobile-wide-banner-ad {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .wide-banner-ad {
        display: none !important;
    }
}

/* Mobil kare reklam alanı */
.mobile-square-ad {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    background-color: #808080 !important;
    border-radius: 8px;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 auto 1.5rem auto !important;
    min-height: auto !important;
    height: auto !important;
}

.mobile-square-ad img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px;
}

.mobile-square-ad .ad-container {
    width: 100% !important;
    height: 100% !important;
    background: none !important;
}

/* Responsive display kontrolü - kare reklam */
@media (min-width: 992px) {
    .mobile-square-ad {
        display: none !important;
    }
}

.mobile-wide-banner-ad img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px;
}

.mobile-wide-banner-ad .ad-container {
    width: 100% !important;
    height: 100% !important;
    background: none !important;
}

/* Kare reklam alanı */
.square-ad-area {
    width: 100% !important;
    max-width: 280px !important;
    aspect-ratio: 1 / 1 !important;
    background-color: #808080 !important;
    border-radius: 8px;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 auto 1rem auto !important;
}

.square-ad-area img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px;
}

.square-ad-area .ad-container {
    width: 100% !important;
    height: 100% !important;
    background: none !important;
}

/* Ad container */
.ad-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid #e4e6ea;
}

.ad-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Ad images */
.ad-container .ad-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.ad-container:hover .ad-image {
    transform: scale(1.02);
}

/* Ad links */
.ad-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ad-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Banner ad styles (mevcut sistemle uyumlu) */
.ad-banner {
    display: block;
    width: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.ad-banner:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Üst alan reklamları - masaüstünde yan yana 3 banner */
.desktop-ads {
    margin-bottom: 1rem;
}

/* Desktop ads row sıfırla eğer boşsa */
.desktop-ads:not(:has(.ad-position-wrapper)) {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
}

.desktop-ads .ad-banner {
    height: 250px;
    line-height: 250px;
    width: 100%;
    text-align: center;
}

/* Geniş yatay reklam */
.wide-horizontal-ad .ad-banner {
    height: 90px;
    line-height: 90px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 300x300 alt reklam */
.bottom-square-ad .ad-banner {
    width: 300px;
    height: 300px;
    line-height: 300px;
    margin: 0 auto;
}

/* Mobile ad styles */
.mobile-ad .ad-banner {
    height: 120px;
    line-height: 120px;
}

/* Analytics fallback */
.analytics-fallback {
    display: block;
    width: 100%;
    text-align: center;
}

.analytics-container {
    display: block;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bottom-square-ad .ad-banner {
        width: 100%;
        max-width: 300px;
        height: 200px;
        line-height: 200px;
    }
    
    .wide-horizontal-ad .ad-banner {
        height: 80px;
        line-height: 80px;
    }
    
    .desktop-ads .ad-banner {
        height: 180px;
        line-height: 180px;
    }
}

/* AdSense responsive */
.ad-container .adsbygoogle {
    width: 100%;
    height: auto;
}

/* Loading placeholder */
.ad-loading {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    color: #6c757d;
    font-style: italic;
}

.ad-loading::before {
    content: "Reklam yükleniyor...";
}

/* Error state */
.ad-error {
    background: #f8f9fa;
    border: 1px solid #dc3545;
    color: #dc3545;
    font-size: 0.875rem;
}

.ad-error::before {
    content: "Reklam yüklenemedi";
}

/* ===================================================================
   MOBİL UYUMLU CROPPER STİLLERİ
   İçerik ekleme sayfasında kapak fotoğrafı kırpma için mobil uyumluluk
=================================================================== */

/* Cropper modal mobil uyumluluğu */
@media (max-width: 576px) {
    #cropImageModal .modal-dialog {
        margin: 0;
        height: 100vh;
        max-height: 100vh;
    }
    
    #cropImageModal .modal-content {
        height: 100vh;
        border-radius: 0;
    }
    
    #cropImageModal .modal-body {
        padding: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
}

/* Cropper container mobil optimizasyonu */
.cropper-container {
    max-width: 100%;
    background: #000;
}

@media (max-width: 768px) {
    .cropper-container {
        max-height: 60vh !important;
        overflow: hidden;
    }
    
    /* Cropper çizgilerini mobilde daha kalın yap */
    .cropper-view-box,
    .cropper-face {
        outline: 2px solid rgba(51, 153, 255, 0.75);
    }
    
    .cropper-line {
        background-color: rgba(51, 153, 255, 0.75);
        height: 2px;
        width: 2px;
    }
    
    .cropper-point {
        width: 8px;
        height: 8px;
        background-color: rgba(51, 153, 255, 0.95);
    }
    
    /* Mobilde corner noktalarını daha büyük yap */
    .cropper-point.point-e,
    .cropper-point.point-w,
    .cropper-point.point-n,
    .cropper-point.point-s {
        width: 12px;
        height: 12px;
    }
    
    .cropper-point.point-ne,
    .cropper-point.point-nw,
    .cropper-point.point-se,
    .cropper-point.point-sw {
        width: 15px;
        height: 15px;
        border-radius: 50%;
    }
}

/* Mobil ve masaüstü kırpma kontrolleri */
.crop-controls {
    border-top: 1px solid #dee2e6;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Masaüstü kırpma kontrolleri özel stilleri */
@media (min-width: 577px) {
    .crop-controls {
        border-radius: 0 0 8px 8px;
    }
    
    .crop-controls .btn-sm {
        font-size: 0.85rem;
        padding: 10px 15px;
        font-weight: 500;
        transition: all 0.3s ease;
        border-radius: 6px;
    }
    
    .crop-controls .btn-sm:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
    
    .crop-controls .btn-sm.active {
        background-color: #0d6efd;
        border-color: #0d6efd;
        color: white;
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(13, 110, 253, 0.25);
    }
    
    /* Kompakt masaüstü butonları */
    .crop-controls .btn-xs {
        font-size: 0.75rem;
        padding: 6px 8px;
        font-weight: 500;
        transition: all 0.2s ease;
        border-radius: 4px;
        min-width: 36px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .crop-controls .btn-xs:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .crop-controls .btn-xs.active {
        background-color: #0d6efd;
        border-color: #0d6efd;
        color: white;
        transform: translateY(0);
        box-shadow: 0 1px 3px rgba(13, 110, 253, 0.3);
    }
}

.crop-controls .btn-sm {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.crop-controls .btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.crop-controls .btn-sm:active {
    transform: translateY(0);
}

/* Mobil bilgilendirme alert'i */
@media (max-width: 576px) {
    .alert-info {
        font-size: 0.85rem;
        padding: 10px 15px;
        border-radius: 8px;
        background: linear-gradient(135deg, #cff4fc 0%, #b6effb 100%);
        border: 1px solid #9eeaf9;
    }
}

/* Modal footer mobil uyumluluk */
@media (max-width: 768px) {
    #cropImageModal .modal-footer {
        padding: 15px;
        gap: 10px;
    }
    
    #cropImageModal .modal-footer .btn {
        flex: 1;
        padding: 12px 16px;
        font-weight: 600;
        border-radius: 8px;
    }
}

/* Dokunmatik optimizasyonlar */
@media (pointer: coarse) {
    .cropper-point {
        width: 20px !important;
        height: 20px !important;
    }
    
    .cropper-line {
        height: 3px !important;
        width: 3px !important;
    }
    
    /* Dokunmatik cihazlarda crop alanını daha belirgin yap */
    .cropper-crop-box {
        box-shadow: 0 0 0 2px rgba(51, 153, 255, 0.8);
    }
}