/* BODY */


:root {
    --color1: #060606;
    --color2: #1a1e26;
    --color3: #363549;
    --color4: #59556f;
    --color5: #7f7a9e;
    font-size: 16px;
    /* Temel font boyutu */
    --base-spacing: 1rem;
}


body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--color1);
    color: #ffffff;
}

/* BODY SON */

/* Kategori Stilleri */
.categories-container {
    width: 100%;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.categories-wrapper {
    display: flex;
    gap: 15px;
    padding: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 auto;
    max-width: 100%;
}

.categories-wrapper::-webkit-scrollbar {
    display: none;
}

.categories-wrapper:active {
    cursor: grabbing;
}

.category-card {
    flex: 0 0 280px;
    min-width: 280px;
    height: 160px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .category-card {
        flex: 0 0 260px;
        min-width: 260px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .category-card {
        flex: 0 0 240px;
        min-width: 240px;
        height: 120px;
    }
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    filter: blur(0.3px) brightness(0.7);
    /* Added blur and darkening */
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3),
            /* Updated opacity to match request */
            rgba(0, 0, 0, 0.3)
            /* Updated opacity to match request */
        );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.8));
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-overlay h3 {
    color: #fff;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0 15px;
}

.category-card:hover .category-overlay h3 {
    transform: translateY(-5px);
}

/* More Categories kart için özel hover efekti */
.more-categories:hover {
    transform: translateY(-5px);
    background: linear-gradient(45deg, #3a3a3a, #4a4a3a);
}

.more-categories:hover .more-content {
    transform: translate(-50%, -55%);
}

.more-categories:hover .more-content i,
.more-categories:hover .more-content h3 {
    transform: scale(1.1);
}

/* Responsive breakpoints */
@media (min-width: 640px) {
    .category-card {
        flex: 0 0 calc(50% - 20px);
        padding-bottom: 20%;
        /* Daha düşük aspect ratio */
    }
}

@media (min-width: 768px) {
    .category-card {
        flex: 0 0 calc(33.333% - 20px);
        padding-bottom: 15%;
    }
}

@media (min-width: 1024px) {
    .category-card {
        flex: 0 0 calc(25% - 20px);
        padding-bottom: 12%;
    }
}

@media (min-width: 1280px) {
    .categories-wrapper {
        max-width: 1200px;
        margin: 0 auto;
    }

    .category-card {
        flex: 0 0 calc(20% - 20px);
        padding-bottom: 10%;
    }
}

/* Fluid Typography */
.category-overlay h3 {
    font-size: clamp(16px, 3vw, 24px);
    line-height: 1.2;
}

.more-content h3 {
    font-size: clamp(14px, 2.5vw, 20px);
}

/* Touch device optimization */
@media (hover: none) {
    .category-card:active {
        transform: scale(0.98);
    }
}

/* Container padding adjustments */
@media (max-width: 640px) {
    .categories-container {
        padding: 10px;
    }

    .categories-wrapper {
        gap: 10px;
        padding: 5px;
    }
}

/* Daha Fazla Kategoriler Kartı */
.more-categories {
    flex: 0 0 120px !important;
    /* Daha küçük sabit genişlik */
    min-width: 120px !important;
    /* Minimum genişliği korumak için */
    background: linear-gradient(45deg, #2a2a2a, #3a3a3a);
}

.more-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.more-content i {
    font-size: 24px;
    color: white;
    opacity: 0.9;
}

.more-content h3 {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    text-align: center;
    line-height: 1.2;
}

/* Responsive Düzenlemeler */
@media (min-width: 1400px) {
    .categories-wrapper {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1200px) {
    .categories-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-card {
        height: 150px;
    }

    .category-overlay h3 {
        font-size: 20px;
    }

    .more-categories {
        flex: 0 0 100px !important;
        min-width: 100px !important;
    }

    .more-content i {
        font-size: 20px;
    }

    .more-content h3 {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .categories-container {
        padding: 15px 10px;
    }

    .categories-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-card {
        height: 140px;
    }

    .category-overlay h3 {
        font-size: 18px;
    }

    .more-content i {
        font-size: 28px;
    }

    .more-content h3 {
        font-size: 16px;
    }
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .categories-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .category-card {
        height: 150px;
    }

    .category-overlay h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .categories-container {
        padding: 20px 10px;
    }

    .categories-wrapper {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 140px;
    }

    .category-overlay h3 {
        font-size: 18px;
    }
}

/* Kategori Container Düzeltmeleri */
.categories-container {
    width: 100%;
    max-width: 1200px;
    /* Maksimum genişliği azalttık */
    padding: 20px 15px;
    margin: 15px auto;
    position: relative;
    overflow: hidden;
    /* Overflow kontrolü */
    box-sizing: border-box;
}

.categories-wrapper {
    display: flex;
    gap: 15px;
    /* Gap'i azalttık */
    padding: 10px 5px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 auto;
    max-width: 100%;
}

.category-card {
    flex: 0 0 280px;
    /* Kart genişliğini azalttık */
    min-width: 250px;
    /* Minimum genişliği azalttık */
    height: 140px;
    /* Sabit yükseklik verdik */
    padding: 0;
    /* Padding'i kaldırdık */
    position: relative;
    scroll-snap-align: start;
    border-radius: 12px;
}

/* Responsive Düzeltmeler */
@media (max-width: 768px) {
    .categories-container {
        padding: 15px 10px;
        margin: 10px auto;
    }

    .categories-wrapper {
        gap: 12px;
        padding: 5px;
    }

    .category-card {
        flex: 0 0 260px;
        /* Mobilde daha küçük */
        min-width: 220px;
        height: 120px;
        /* Mobilde daha kısa */
    }
}

@media (max-width: 480px) {
    .categories-container {
        padding: 10px 8px;
        margin: 8px auto;
    }

    .categories-wrapper {
        gap: 10px;
    }

    .category-card {
        flex: 0 0 240px;
        min-width: 200px;
        height: 100px;
    }

    .category-overlay h3 {
        font-size: 16px;
    }
}

/* "Daha Fazla" kartını küçült */
.more-categories {
    flex: 0 0 100px !important;
    min-width: 100px !important;
}

@media (max-width: 768px) {
    .more-categories {
        flex: 0 0 80px !important;
        min-width: 80px !important;
    }
}

/* Halk Karari Stilleri */
.halk-karari-container {
    width: 100%;
    padding: 40px 20px;
    background-color: var(--color2);
    margin: 20px 0;
}

.halk-karari-container h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    font-size: 24px;
}

.halk-karari-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

.halk-karari-wrapper::-webkit-scrollbar {
    display: none;
}

.halk-karari-card {
    flex: 0 0 300px;
    background: var(--color3);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
    scroll-snap-align: start;
}

.halk-karari-card:hover {
    transform: translateY(-5px);
}

.halk-karari-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.halk-karari-header h3 {
    font-size: 18px;
    margin: 0;
    color: #fff;
}

.mod-badge {
    background: var(--color4);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.halk-karari-content .users {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.users span {
    color: #fff;
    font-size: 14px;
}

.users span:nth-child(2) {
    color: var(--color5);
    font-weight: bold;
}

.vote-stats {
    margin-top: 15px;
}

.vote-bar {
    height: 8px;
    background: var(--color4);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.vote-progress {
    height: 100%;
    background: #5865f2;
    transition: width 0.3s ease;
}

.vote-numbers {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #fff;
}

.no-results {
    text-align: center;
    color: #fff;
    padding: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .halk-karari-container {
        padding: 20px 10px;
    }

    .halk-karari-card {
        flex: 0 0 280px;
        padding: 15px;
    }

    .halk-karari-header h3 {
        font-size: 16px;
    }
}

/* Halk Seçimi Stilleri */
.halk-secimi-container {
    width: 100%;
    max-width: 1200px;
    /* Maksimum genişlik eklendi */
    padding: 40px 20px;
    margin: 30px auto;
    /* Standardized margin */
    border-radius: 12px;
}

.halk-secimi-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    padding: 0;
}

.halk-secimi-header h2 {
    margin: 0;
    padding: 0;
    font-size: 28px;
    color: #fff;

}

.halk-secimi-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
    max-width: 1200px;
    margin: 0 auto;
}

.halk-secimi-card {
    flex: 0 0 340px;
    min-width: 300px;
    max-width: 400px;
    background: rgba(30, 30, 40, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 180px;
}

/* Tartışma başlığı için yeni stil */
.tartisma-baslik {
    color: #ccc;
    font-size: 0.85rem;
    margin: 4px 0 12px;
    opacity: 0.8;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    /* Ensure display */
}

.tartisma-baslik:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    border-radius: 4px;
    font-size: 14px;
    white-space: normal;
    width: max-content;
    max-width: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
    animation: fadeIn 0.2s ease;
}

.tartisma-baslik:hover::after {
    content: '';
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Yüzde arka planı için yeni stil */
.halk-secimi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    background-size: 200% 200%;
}

/* Sol taraf kırmızı gradient */
.halk-secimi-card[data-sol-yuzde]::before {
    background: linear-gradient(110deg,
            rgba(255, 0, 0, 0.74) calc(var(--sol-yuzde) * 1%),
            rgba(33, 149, 243, 0.884) calc(var(--sol-yuzde) * 1%)),
        radial-gradient(circle at calc(var(--sol-yuzde) * 1%),
            rgba(255, 68, 68, 0.15) 0%,
            transparent 50%),
        radial-gradient(circle at calc(100% - var(--sol-yuzde) * 1%),
            rgba(33, 150, 243, 0.15) 0%,
            transparent 50%);
    background-size: 200% 200%, 200% 200%, 200% 200%;
}

/* VS yazısı için yeni stil */
.vs-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    background: rgba(0, 0, 0, 0.7);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Hover durumunda efekt */
.halk-secimi-card:hover .vs-text {
    transform: translate(-50%, -50%) scale(1.1);
    transition: transform 0.3s ease;
}

/* VS badge görünür olmalı */

.halk-secimi-card:hover {
    transform: translateY(-5px);
}

.secim-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.secim-baslik {
    width: 100%;
    margin-bottom: 12px;
    padding: 0 5px;
    /* Reduced padding */
}

.secim-baslik h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: #fff;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0;
    margin-right: 70px;
    /* Make space for completion badge */
}

.secim-baslik h3:after {
    content: "...";
    display: none;
}

.secim-baslik h3[data-truncated="true"]:after {
    display: inline;
}

.kalan-sure {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color5);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    z-index: 10;
}

.taraflar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.taraf {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.taraf img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    background: #333;
}

.vs-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

/* Eski yüzde barlarını kaldır */
.oy-durum,
.oy-bar,
.oy-bar-sol,
.oy-bar-sag,
.oy-sayilari {
    display: none;
}

.toplam-oy {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    color: #fff;
    font-size: 14px;
}

.no-secim {
    width: 100%;
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.6);
}

.no-secim i {
    font-size: 48px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .halk-secimi-container {
        margin: 10px;
        width: calc(100% - 20px);
        /* Kenar boşlukları için düzeltme */
        padding: 20px 10px;
    }

    .halk-secimi-card {
        flex: 0 0 350px;
        /* 300px'den 350px'e çıkardık */
        padding: 15px;
        height: 140px;
        min-height: 140px;
    }

    .secim-baslik h3 {
        font-size: 16px;
    }

    .taraf img {
        width: 40px;
        height: 40px;
    }
}

/* Halk Seçimi kartları için durum stilleri */
.halk-secimi-card.tamamlandi {
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.2);
}

.kalan-sure.tamamlandi {
    background: var(--color3);
}

.halk-secimi-card.tamamlandi:hover {
    opacity: 1;
}

.halk-secimi-header .aktif-secim {
    display: none;
}

.halk-secimi-card .aciklama {
    display: none;
    /* Aciklamayi gizle, cok yer kapliyor */
}

.halk-secimi-card .zaman-bilgisi {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    margin-top: 12px;
    text-align: center;
}

.durum-badge {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.durum-badge.aktif {
    background-color: #4CAF50;
    color: white;
}

.oy-durum {
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 12px;
}

.oy-bar {
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    margin-bottom: 8px;
}

.oy-bar-sol,
.oy-bar-sag {
    transition: all 0.3s ease;
}

.oy-bar-sol {
    background: linear-gradient(45deg, #ff4444, #cc0000);
    /* Kırmızı tonları */
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.oy-bar-sag {
    background: linear-gradient(45deg, #2196F3, #0d47a1);
    /* Mavi tonları */
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.oy-yuzde {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.oy-sayilari {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 12px;
    opacity: 0.8;
}

/* Hover efektleri */
.halk-secimi-card:hover .oy-bar-sol,
.halk-secimi-card:hover .oy-bar-sag {
    transform: scale(1.02);
}

/* Tamamlanmış kartlar için stil */
.halk-secimi-card.tamamlandi .oy-bar-sol {
    background: linear-gradient(45deg, #ffcdd2, #ef9a9a);
    /* Soluk kırmızı */
}

.halk-secimi-card.tamamlandi .oy-bar-sag {
    background: linear-gradient(45deg, #bbdefb, #90caf9);
    /* Soluk mavi */
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .oy-durum {
        padding: 8px;
    }

    .oy-bar {
        height: 20px;
    }

    .oy-yuzde {
        font-size: 11px;
    }
}

/* Halk Seçimi Container Güncellemesi */
.halk-secimi-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    margin: 20px auto;
    position: relative;
}

.halk-secimi-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.halk-secimi-wrapper::-webkit-scrollbar {
    display: none;
}

/* Tüm Seçimler Butonu */
.tum-secimler-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(45deg, var(--color3), var(--color4));
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin: 20px auto 0;
    transition: all 0.3s ease;
}

.tum-secimler-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, var(--color4), var(--color5));
}

.tum-secimler-button i {
    font-size: 16px;
}

/* Responsive düzeltmeler */
@media (max-width: 768px) {
    .halk-secimi-container {
        padding: 15px;
        margin: 10px;
        width: calc(100% - 20px);
    }

    .halk-secimi-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 0;
    }

    .halk-secimi-card {
        flex: 0 0 280px;
        padding: 15px;
    }
}

/* Tüm Seçimler Butonu Güncellemesi */
.tum-secimler-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(45deg, var(--color3), var(--color4));
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    margin: 30px auto 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: auto;
    max-width: 280px;
}

.tum-secimler-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, var(--color4), var(--color5));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tum-secimler-button i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.tum-secimler-button:hover i {
    transform: translateX(3px);
}

/* Kategori Container Güncellemesi */
.categories-container {
    width: 100%;
    max-width: 1400px;
    padding: 30px 20px;
    margin: 20px auto;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.categories-wrapper {
    display: flex;
    gap: 25px;
    padding: 15px 5px;
    margin: 0 auto;
    max-width: 100%;
}

/* Responsive Düzeltmeler */
@media (max-width: 768px) {
    .categories-container {
        padding: 20px 15px;
        margin: 15px auto;
        overflow-x: hidden;
    }

    .categories-wrapper {
        gap: 20px;
        padding: 10px 5px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-padding: 0 15px;
    }

    .tum-secimler-button {
        padding: 12px 20px;
        font-size: 14px;
        margin: 20px auto 10px;
        width: calc(100% - 30px);
    }

    /* Mobil cihazlarda overflow kontrolü */
    body {
        overflow-x: hidden;
    }
}

/* Halk Seçimi Container Responsive Fix */
.halk-secimi-container {
    overflow: hidden;
    margin: 20px auto;
    padding: 20px 15px;
}

.halk-secimi-wrapper {
    padding: 10px 5px;
    margin: 0 -5px;
}

/* Halk Seçimi Container düzeltmeleri */
.halk-secimi-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px 0;
    /* Yatay padding'i kaldırdık */
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    /* Overflow kontrolü */
    box-sizing: border-box;
}

.halk-secimi-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 auto;
    width: 100%;
    max-width: calc(100vw - 20px);
    /* Ekran genişliğine göre ayarla */
}

.halk-secimi-header {
    padding: 0 15px;
    /* Header için yatay padding */
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Aşağıdaki temel tanımlarda belirtilmiş */

/* Responsive düzeltmeler */
@media (max-width: 768px) {
    .halk-secimi-container {
        padding: 15px 0;
        margin: 10px auto;
        width: 100%;
    }

    .halk-secimi-wrapper {
        padding: 5px 10px;
    }

    .halk-secimi-card {
        flex: 0 0 calc(100vw - 40px);
        min-width: 260px;
    }

    .halk-secimi-header {
        padding: 0 10px;
    }

    /* Touch cihazlar için kaydırma optimizasyonu */
    .halk-secimi-wrapper {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
    }
}

/* Daha Fazla Kategoriler Kartı güncellemesi */
.more-categories {
    flex: 0 0 90px !important;
    /* Genişliği azalttık */
    min-width: 90px !important;
    /* Minimum genişliği azalttık */
    padding: 0;
    overflow: hidden;
    background: linear-gradient(45deg, #2a2a2a, #3a3a3a);
}

.more-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    padding: 5px;
}

.more-content i {
    font-size: 20px;
    color: white;
    opacity: 0.9;
    margin-bottom: 5px;
}

.more-content h3 {
    font-size: 12px;
    margin: 0;
    padding: 0 2px;
    line-height: 1.2;
    white-space: nowrap;
}

/* Responsive düzeltmeler */
@media (max-width: 768px) {
    .more-categories {
        flex: 0 0 70px !important;
        min-width: 70px !important;
    }

    .more-content i {
        font-size: 18px;
    }

    .more-content h3 {
        font-size: 10px;
    }
}

/* Kategori kartları için responsive düzeltmeler */
@media (max-width: 768px) {
    .category-card {
        flex: 0 0 200px;
        /* Genişliği azalttık (önceden 260px) */
        min-width: 180px;
        /* Minimum genişliği azalttık (önceden 220px) */
        height: 100px;
        /* Yüksekliği uyumlu hale getirdik */
        margin-right: 10px;
    }

    .more-categories {
        flex: 0 0 60px !important;
        /* Daha fazla butonunu küçülttük */
        min-width: 60px !important;
    }
}

@media (max-width: 480px) {
    .category-card {
        flex: 0 0 180px;
        /* Daha da küçük ekranlar için küçülttük */
        min-width: 160px;
        height: 90px;
        margin-right: 8px;
    }

    .more-categories {
        flex: 0 0 50px !important;
        min-width: 50px !important;
    }
}

/* Halk Seçimi kartları için bubble animasyon */
.halk-secimi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: 200% 200%;
}

/* Sol taraf kırmızı gradient güncellemesi */
.halk-secimi-card[data-sol-yuzde]::before {
    background: linear-gradient(110deg,
            rgba(255, 68, 68, 0.25) calc(var(--sol-yuzde) * 1%),
            rgba(33, 150, 243, 0.25) calc(var(--sol-yuzde) * 1%)),
        radial-gradient(circle at calc(var(--sol-yuzde) * 1%),
            rgba(255, 68, 68, 0.15) 0%,
            transparent 50%),
        radial-gradient(circle at calc(100% - var(--sol-yuzde) * 1%),
            rgba(33, 150, 243, 0.15) 0%,
            transparent 50%);
    background-size: 200% 200%, 200% 200%, 200% 200%;
}

/* Tamamlanan kartlar için fade efekti */
.halk-secimi-card.tamamlandi::before {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.halk-secimi-card.tamamlandi:hover::before {
    opacity: 0.8;
}

/* Halk Seçimi kartı için sade stil */
.halk-secimi-card[data-sol-yuzde]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(110deg,
            rgba(255, 68, 68, 0.2) calc(var(--sol-yuzde) * 1%),
            rgba(33, 150, 243, 0.2) calc(var(--sol-yuzde) * 1%));
}

/* Remove all other color variations */
.halk-secimi-card[data-colors]::before {
    background: linear-gradient(110deg,
            rgba(255, 68, 68, 0.2) calc(var(--sol-yuzde) * 1%),
            rgba(33, 150, 243, 0.2) calc(var(--sol-yuzde) * 1%));
}

.halk-secimi-card.tamamlandi::before {
    opacity: 0.5;
}

/* Hover durumunda hafif opaklık değişimi */
.halk-secimi-card:hover::before {
    opacity: 0.7;
}

/* Halk Seçimi Container güncellemesi */
.halk-secimi-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: scroll;
    /* auto yerine scroll kullan */
    padding: 10px;
    padding-bottom: 20px;
    /* Scrollbar için extra padding */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    /* Firefox için ince scrollbar */
    margin: 0 auto;
    width: 100%;
    max-width: calc(100vw - 20px);
}

/* Custom Scrollbar stilleri */
.halk-secimi-wrapper::-webkit-scrollbar {
    height: 4px;
    width: 4px;
}

.halk-secimi-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.halk-secimi-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.halk-secimi-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.halk-secimi-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* Sayfa zoom ayarları */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Container ve wrapper'lar için ölçeklendirme */
.categories-container,
.halk-secimi-container {
    /* ...existing code... */
    width: min(100%, 75rem);
    /* Maksimum genişlik rem cinsinden */
    padding: calc(var(--base-spacing) * 1.25);
}

.halk-secimi-wrapper {
    /* ...existing code... */
    gap: var(--base-spacing);
}

/* Responsive ayarlar */
@media screen and (max-width: 48em) {

    /* 768px */
    :root {
        font-size: 14px;
        /* Mobil için daha küçük temel font */
    }

    .halk-secimi-card {
        flex: 0 0 clamp(16rem, 80vw, 20rem);
    }
}

@media screen and (min-width: 80em) {

    /* 1280px */
    :root {
        font-size: 18px;
        /* Geniş ekranlar için daha büyük temel font */
    }
}

/* Özel boyutlar için viewport ayarları */
@viewport {
    width: device-width;
    zoom: 1;
}

/* Sol taraf gradient - yeni renk stili */
.halk-secimi-card[data-sol-yuzde][data-colors="red-blue"]::before {
    background: linear-gradient(110deg,
            rgba(255, 0, 0, 0.3) calc(var(--sol-yuzde) * 1%),
            rgba(0, 0, 255, 0.3) calc(var(--sol-yuzde) * 1%));
}

/* Halk seçimi container yükseklik düzeltmesi */
@media screen and (min-width: 1024px) {
    .halk-secimi-container {
        min-height: 350px;
        max-height: 450px;
        overflow: hidden;
    }
}

/* Canlı renk gradyanları */
.halk-secimi-card[data-colors="red-blue"]::before {
    background: linear-gradient(110deg,
            #FF0000 calc(var(--sol-yuzde) * 1%),
            #0000FF calc(var(--sol-yuzde) * 1%));
}

/* Mobil responsive ayarları */
@media (max-width: 768px) {
    .halk-secimi-card {
        flex: 0 0 calc(100vw - 40px);
        min-width: 280px;
        min-height: 160px;
    }
}

/* HALK SEÇİMİ KISMI SONU */

/* Recent Discussions */
.recent-discussions-container {
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 30px auto 0;
    padding: 20px 10px;
}

.recent-discussions-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0 20px;
}

.recent-title-block {
    width: 100%;
    text-align: center;
}

.recent-title-block h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.recent-title-block .recent-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.recent-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.recent-discussions-container .slider-controls {
    position: static;
    transform: none;
    top: auto;
    right: auto;
    gap: 8px;
}

.recent-discussions-container .slider-button {
    background: rgba(255, 255, 255, 0.12);
}

.recent-discussions-container .slider-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.recent-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.recent-all-link:hover {
    background: #2a95f7;
    border-color: #0c2b47;
    color: #fff;
}

.recent-discussions-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 10px 30px;
    margin: 0 auto;
    width: 100%;
    max-width: calc(100% - 20px);
    justify-content: flex-start;
    scroll-padding-left: 20px;
}

.recent-discussions-wrapper::-webkit-scrollbar {
    height: 6px;
}

.recent-discussions-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.recent-discussion-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 14px 16px;
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.recent-discussion-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
}

.recent-create-card {
    flex: 0 0 240px;
    min-height: 160px;
    border-radius: 18px;
    border: 1px dashed #0c2b47;
    background: rgba(42, 149, 247, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    scroll-snap-align: start;
    box-shadow: inset 0 0 0 1px rgba(12, 43, 71, 0.4);
}

.recent-create-card:hover {
    border-color: #2a95f7;
    background: rgba(42, 149, 247, 0.18);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(12, 43, 71, 0.35);
}

.create-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 16px;
}

.create-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2a95f7, #0c2b47);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(12, 43, 71, 0.4);
}

.create-texts h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.create-texts span {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.create-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: rgba(168, 210, 255, 0.8);
    margin: 0;
}

.recent-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.recent-meta-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
}

.recent-card-meta i {
    margin-right: 6px;
}

.recent-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin: 10px 0;
    line-height: 1.3;
}

.recent-card-users {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    gap: 14px;
}

.recent-user {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.recent-user img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.recent-user-name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.no-discussions {
    flex: 1;
    min-height: 160px;
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.7);
    gap: 10px;
    padding: 30px;
}

.no-discussions i {
    font-size: 28px;
}

@media (max-width: 768px) {
    .recent-discussion-card {
        flex: 0 0 85%;
    }

    .recent-card-tags {
        flex-direction: column;
        align-items: center;
    }
}

/* Top Discussions Container */
.top-discussions-container {
    width: 100%;
    max-width: 1200px;
    padding: 40px 0;
    margin: 30px auto;
    /* Standardized margin */
}


.top-discussions-header {
    margin-bottom: 30px;
    padding: 0 20px;
}

.top-discussions-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    position: relative;

}

/* Remove active-count class since we won't use it */
.active-count {
    display: none;
}

.top-discussions-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    cursor: grab;
    -ms-overflow-style: none;
    /* IE and Edge */
}

.top-discussions-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
    width: 0;
    height: 0;
}

/* Remove unnecessary scrollbar styles */
.top-discussions-wrapper::-webkit-scrollbar-track,
.top-discussions-wrapper::-webkit-scrollbar-thumb {
    display: none;
}

.discussion-card {

    flex: 0 0 300px;
    min-width: 300px;
    max-width: calc(100vw - 40px);
    scroll-snap-align: start;
    background: var(--color2);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid #ff4757;
    animation: fadeIn 0.3s ease-out;
}

.discussion-card:hover {
    transform: translateY(-5px);
    background: var(--color3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.discussion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.discussion-header h3 {
    font-size: 16px;
    margin: 0;
    color: #fff;
    line-height: 1.4;
    flex: 1;
    margin-right: 15px;
}



.like-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ff4757;
    font-size: 14px;
    font-weight: bold;
}

.like-count i {
    font-size: 18px;
}



.discussion-users {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--color4);
}

.user span {
    font-size: 14px;
    color: #fff;
    opacity: 0.9;
}



@media (max-width: 768px) {
    .top-discussions-container {
        padding: 20px 0;
        width: 100%;
        margin: 10px auto;
    }

    .top-discussions-wrapper {
        gap: 15px;
        padding: 10px;
    }

    .discussion-card {
        flex: 0 0 280px;
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .discussion-card {
        flex: 0 0 260px;
        min-width: 260px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Top Discussions - New Modern Design */
.top-discussions-container {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    margin: 20px auto;
}

.top-discussions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.top-discussions-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    position: relative;

}

.top-discussions-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff4757, transparent);
    border-radius: 2px;
}

.active-count {
    font-size: 14px;
    color: #8e8e8e;
    letter-spacing: 0.5px;
}

.top-discussions-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.discussion-card {
    position: relative;
    padding: 25px;
    border-radius: 4px;
    transition: transform 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #ff4757;
}

.discussion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 71, 87, 0.05),
            transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.discussion-card:hover {
    transform: translateX(10px);
}

.discussion-card:hover::before {
    opacity: 1;
}

.discussion-header {
    margin-bottom: 20px;
}

.discussion-header h3 {
    font-size: 18px;
    color: #fff;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.discussion-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.like-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ff4757;
    font-size: 14px;
    font-weight: 500;
}

.like-count i {
    font-size: 16px;
}

.discussion-users {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.user span {
    font-size: 14px;
    color: #a0a0a0;
}

.discussion-meta {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.discussion-date {
    font-size: 12px;
    color: #666;
}

@media (max-width: 768px) {
    .top-discussions-container {
        padding: 20px;
    }

    .top-discussions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .top-discussions-header h2 {
        font-size: 24px;
    }

    .discussion-card {
        padding: 20px;
    }

    .discussion-header h3 {
        font-size: 16px;
    }
}

/* Remove VS badge related styles */
.vs-badge {
    display: none;
}

/* Top Discussions - New Slider Design */
.top-discussions-container {
    width: 100%;
    max-width: 1200px;
    padding: 40px 0;
    /* Removed horizontal padding */
    margin: 20px auto;
    overflow: hidden;
    /* Added overflow hidden */
}

.top-discussions-header {
    margin-bottom: 30px;
    padding: 0 20px;
    /* Moved padding to header */
}

.top-discussions-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 10px 0;
}

.top-discussions-wrapper::-webkit-scrollbar {
    height: 8px;
}

.top-discussions-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.top-discussions-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.top-discussions-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.discussion-card {
    flex: 0 0 300px;
    min-width: 300px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    border-left: 3px solid #ff4757;
}

.discussion-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .discussion-card {
        flex: 0 0 280px;
        min-width: 280px;
    }
}

/* Update VS badge styles */
.vs-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    backdrop-filter: blur(5px);
}

/* Fix category slider */
.categories-wrapper {
    display: flex;
    gap: 20px;
    padding: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    margin: 0 auto;
    max-width: 100%;
    cursor: grab;
    user-select: none;
}

.category-card {
    flex: 0 0 280px;
    min-width: 280px;
    height: 140px;
    scroll-snap-align: start;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Remove all webkit scrollbar styles */
.categories-wrapper,
.halk-secimi-wrapper,
.top-discussions-wrapper,
.notifications-panel,
.sag-grup,
.yorumlar-list,
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Halk Seçimi Container */
.halk-secimi-container {
    margin: 30px auto;
}

/* Top Discussions Container */
.top-discussions-container {
    margin: 30px auto;
}

@media (max-width: 768px) {
    .halk-secimi-container {
        padding: 15px 0;
        margin: 15px auto;
        width: 100%;
    }

    .top-discussions-container {
        padding: 15px 0;
        margin: 15px auto;
        width: 100%;
    }
}

@media (max-width: 480px) {

    .halk-secimi-container,
    .top-discussions-container {
        padding: 10px 0;
        margin: 10px auto;
        width: calc(100% - 20px);
    }
}

/* Remove aktif-secim count styling */
.halk-secimi-header .aktif-secim {
    display: none;
}

/* Container margin adjustments for desktop only */
@media screen and (min-width: 769px) {
    .halk-secimi-container {
        margin: 15px auto;
        /* Reduced from 30px */
    }

    .top-discussions-container {
        margin: 15px auto;
        /* Reduced from 30px */
    }

    .categories-container {
        margin: 15px auto;
        /* Reduced from 20px */
    }
}

/* Halk Seçimi Container margin and padding adjustments */
.halk-secimi-container {
    width: 100%;
    max-width: 1400px;
    padding: 20px 10px;
    /* Reduced horizontal padding */
    margin: 10px auto;
    /* Reduced margin */
}

.top-discussions-container {
    width: 100%;
    max-width: 1400px;
    padding: 20px 10px;
    margin: 10px auto;
}

/* Remove discussion titles and related hover effects */
.tartisma-baslik,
.tartisma-baslik:hover::before,
.tartisma-baslik:hover::after {
    display: block;
    /* Change from none to block */
}

/* Adjust card header spacing now that title is removed */
.secim-card-header {
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media screen and (min-width: 1200px) {

    .halk-secimi-container,
    .top-discussions-container {
        margin: 10px 20px;
        /* Closer to borders on desktop */
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 768px) {

    .halk-secimi-container,
    .top-discussions-container {
        padding: 15px 5px;
        margin: 5px auto;
        width: calc(100% - 10px);
    }
}

/* Restore Halk Seçimi Container margins and add slider controls */
.halk-secimi-container {
    width: 100%;
    max-width: 1400px;
    padding: 20px 10px;
    margin: 30px auto;
    /* Restored to original 30px */
    position: relative;
}

.halk-secimi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
    position: relative;
}

/* Add slider controls */
.slider-controls {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

.slider-button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.slider-button:active {
    transform: scale(0.95);
}

.slider-button i {
    font-size: 18px;
}

/* Hide slider controls on mobile */
@media (max-width: 768px) {
    .slider-controls {
        display: none;
    }
}

/* Halk Seçimi Container margin adjustments */
.halk-secimi-container {
    width: calc(100% - 40px);
    /* Reduced width to create space from borders */
    max-width: 1400px;
    padding: 20px 10px;
    margin: 30px auto;
    position: relative;
}

/* Responsive adjustments */
@media screen and (min-width: 1200px) {
    .halk-secimi-container {
        margin: 30px auto;
        width: calc(100% - 80px);
        /* More space on larger screens */
    }
}

@media (max-width: 768px) {
    .halk-secimi-container {
        width: calc(100% - 20px);
        /* Less space on mobile but still maintain some gap */
        padding: 15px 5px;
        margin: 20px auto;
    }
}

/* Halk Seçimi Container margin adjustments */
.halk-secimi-container {
    width: calc(100% - 160px);
    /* Much wider gap from borders */
    max-width: 1400px;
    padding: 20px 10px;
    margin: 60px auto;
    /* Increased vertical margin */
    position: relative;
}

/* Keep same size on large screens */
@media screen and (min-width: 1200px) {
    .halk-secimi-container {
        margin: 60px auto;
        width: calc(100% - 160px);
    }
}

/* Keep original mobile margins */
@media (max-width: 768px) {
    .halk-secimi-container {
        width: calc(100% - 20px);
        padding: 15px 5px;
        margin: 20px auto;
    }
}

/* Halk Seçimi Header ve Slider düzenlemeleri */
.halk-secimi-header {
    display: flex;
    justify-content: flex-start;
    /* Başlığı sola hizala */
    align-items: center;
    position: relative;
    margin-bottom: 30px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.halk-secimi-header h2 {
    margin: 0;
    text-align: left;
    /* Başlık yazısını sola hizala */
}

.slider-controls {
    position: absolute;
    right: 0;
    /* En sağa yapıştır */
    top: 0;
    /* En üste yapıştır */
    display: flex;
    gap: 10px;
    transform: none;
    /* Önceki transform'u kaldır */
    padding-right: 20px;
    /* Sağ kenardan boşluk */
}

/* Halk Seçimi Container ve Header düzenlemeleri */
.halk-secimi-container {
    padding: 20px 0;
    /* Padding'i sadece dikeyde tutuyoruz */
}

.halk-secimi-header {
    display: flex;
    justify-content: space-between;
    /* Changed from flex-start */
    align-items: center;
    position: relative;
    margin-bottom: 30px;
    padding: 0;
    /* Removed padding */
    width: calc(100% - 160px);
    /* Match container width */
    max-width: 1400px;
    /* Match container max-width */
    margin-left: auto;
    margin-right: auto;
}

.halk-secimi-header h2 {
    margin: 0;
    text-align: left;
    padding: 0;
    /* Removed padding */
}

.slider-controls {
    position: relative;
    /* Changed from absolute */
    right: 0;
    display: flex;
    gap: 10px;
    padding: 0;
    /* Removed padding */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .halk-secimi-header {
        width: calc(100% - 20px);
        /* Match mobile container width */
        padding: 0 10px;
    }
}

/* Halk Seçimi Container ve Header düzenlemeleri */
.halk-secimi-container {
    width: calc(100% - 160px);
    max-width: 1400px;
    padding: 20px 0;
    margin: 60px auto;
    position: relative;
}

.halk-secimi-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

.halk-secimi-header h2 {
    margin: 0;
    padding: 0;
    font-size: 28px;
    color: #fff;
}

.slider-controls {
    position: relative;
    display: flex;
    gap: 10px;
    margin-left: auto;
    /* Push to the right */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .halk-secimi-container {
        width: calc(100% - 20px);
        padding: 15px 5px;
        margin: 20px auto;
    }

    .halk-secimi-header {
        padding: 0;
    }
}

/* ...existing code... */

.halk-secimi-card.tamamlandi {
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.halk-secimi-card.tamamlandi::after {
    content: none !important;
    display: none !important;
}

/* ...existing code... */

/* Halk Seçimi Card Title Updates */
.secim-baslik {
    width: calc(100% - 80px);
    /* Rozet için yer bırak */
    margin-bottom: 12px;
    padding: 0 10px;
}

.secim-baslik h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    text-align: left;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    display: block !important;
    /* Force display */
}

.secim-baslik h3[title]:hover::before {
    content: attr(title);
    position: absolute;
    top: -30px;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    white-space: normal;
    max-width: 300px;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .secim-baslik h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .secim-baslik h3 {
        font-size: 14px;
    }
}

/* Halk Seçimi Header düzenlemeleri */
.halk-secimi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    padding: 0;
    /* Removed padding */
}

.halk-secimi-header h2 {
    margin: 0;
    padding: 0;
    font-size: 28px;
    color: #fff;
    padding-left: 5px;
    /* Minimal left padding */
}

.slider-controls {
    position: relative;
    display: flex;
    gap: 10px;
    margin-left: auto;
    padding-right: 5px;
    /* Minimal right padding */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .halk-secimi-header h2 {
        padding-left: 2px;
        /* Even less padding on mobile */
    }
}

/* Başlık spacing düzeltmesi */
.halk-secimi-header {
    /* ...existing code... */
    padding: 0;
}

.halk-secimi-header h2 {
    margin: 0;
    padding: 0;
    font-size: 28px;
    color: #fff;
    padding-left: 0;
    /* Önceki padding'i kaldır */
}



/* Halk Seçimi Container güncellemesi */
.halk-secimi-container {
    width: calc(100% - 160px);
    max-width: 1400px;
    padding: 10px 0;
    /* Reduced from 20px to 10px */
    margin: 40px auto;
    /* Reduced from 60px to 40px for better spacing */
    position: relative;
}

.halk-secimi-wrapper {
    padding: 2px 0;
    /* Reduced padding */

}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .halk-secimi-container {
        width: calc(100% - 20px);
        padding: 8px 5px;
        /* Reduced padding for mobile */
        margin: 15px auto;
    }

    .halk-secimi-wrapper {
        padding: 3px 5px;
        /* Less padding on mobile */
    }
}

/* Favori Kategori Container */
.favorite-category-container {
    width: 100%;
    max-width: 1400px;
    padding: 20px 10px;
    margin: 30px auto;
    position: relative;
}

.favorite-category-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.favorite-category-header h2 {
    font-size: 28px;
    color: #fff;
    margin: 0;
    text-align: left;
}

.favorite-discussions-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.friend-likes {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: -10px;
    /* Negative gap for overlapping */
}

.friend-likes img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--color2);
    margin-left: -10px;
    /* Overlap effect */
}

.friend-likes img:first-child {
    margin-left: 0;
}

/* Update discussion-card for this context */
.favorite-category-container .discussion-card {
    position: relative;
    padding-bottom: 50px;
    /* Space for friend likes */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .favorite-category-container {
        padding: 15px 5px;
        margin: 15px auto;
    }

    .favorite-category-header h2 {
        font-size: 24px;
    }
}

/* Favori Kategori Container - Yeni Tasarım */
.favorite-category-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    margin: 20px auto;
}

.favorite-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.favorite-category-header h2 {
    font-size: 24px;
    color: #fff;
    margin: 0;
}

.favorite-discussions-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.favorite-discussions-wrapper .discussion-card {
    flex: 0 0 250px;
    min-width: 250px;
    height: 120px;
    padding: 15px;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorite-discussions-wrapper .discussion-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
}

.favorite-discussions-wrapper .discussion-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.favorite-discussions-wrapper .discussion-header h3 {
    font-size: 15px;
    margin: 0;
    color: #fff;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discussion-category {
    font-size: 12px;
    color: #aaa;
    margin: 0;
}

.friend-likes {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: row-reverse;
    /* Reverse order for better overlap */
    align-items: center;
}

.friend-likes img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.3);
    margin-left: -8px;
    /* Negative margin for overlap */
    transition: transform 0.2s ease;
}

.friend-likes img:first-child {
    margin-left: 0;
}

.friend-likes img:hover {
    transform: scale(1.2);
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .favorite-discussions-wrapper .discussion-card {
        flex: 0 0 220px;
        min-width: 220px;
        height: 110px;
    }

    .favorite-discussions-wrapper .discussion-header h3 {
        font-size: 14px;
    }
}

/* Favori Kategori Container - Yeni Tasarım */
.favorite-category-container {
    width: 100%;
    max-width: 1200px;
    padding: 15px;
    margin: 20px auto;
}

.favorite-discussions-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.favorite-discussions-wrapper .discussion-card {
    position: relative;
    height: 100px;
    padding: 12px;
    background: var(--color2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.favorite-discussions-wrapper .discussion-card:hover {
    transform: translateY(-2px);
    background: var(--color3);
}

.favorite-discussions-wrapper .discussion-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-right: 40px;
    /* Space for friend likes */
}

.favorite-discussions-wrapper .discussion-header h3 {
    font-size: 14px;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    height: 36px;
}

.discussion-category {
    font-size: 11px;
    color: #aaa;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
}

/* Friend likes yeni tasarım */
.friend-likes {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    padding-right: 8px;
}

.friend-likes img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--color2);
    margin-left: -8px;
    transition: transform 0.2s ease;
}

.friend-likes img:hover {
    transform: scale(1.2);
    z-index: 5;
}

/* Arkadaş sayısı göstergesi */
.friend-likes::after {
    content: attr(data-more-count);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: 4px;
    display: none;
}

.friend-likes[data-more-count]:not([data-more-count="0"])::after {
    display: inline-block;
}

/* Stack effect for more than 3 friends */
.friend-likes[data-more-count]:not([data-more-count="0"]) {
    padding-right: 25px;
}

.friend-likes[data-more-count]:not([data-more-count="0"])::before {
    content: '';
    position: absolute;
    right: 2px;
    width: 18px;
    height: 22px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0.9);
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .favorite-discussions-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .favorite-discussions-wrapper .discussion-card {
        height: 90px;
        padding: 10px;
    }

    .favorite-discussions-wrapper .discussion-header h3 {
        font-size: 13px;
        height: 32px;
    }

    .discussion-category {
        font-size: 10px;
    }

    .friend-likes img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .favorite-discussions-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Favori Kategori Container - Modern Tasarım */
.favorite-category-container {
    width: calc(100% - 160px);
    max-width: 1400px;
    padding: 20px 0;
    margin: 40px auto;
    position: relative;
}

.favorite-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0;
}

.favorite-category-header h2 {
    font-size: 28px;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.favorite-category-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--color4), transparent);
    border-radius: 2px;
}

.favorite-discussions-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.favorite-discussions-wrapper .discussion-card {
    flex: 0 0 300px;
    min-width: 300px;
    height: 110px;
    padding: 15px;
    background: var(--color2);
    border-radius: 12px;
    border-left: 3px solid var(--color4);
    position: relative;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
    scroll-snap-align: start;
}

.favorite-discussions-wrapper .discussion-card:hover {
    transform: translateY(-3px);
    background: var(--color3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.favorite-discussions-wrapper .discussion-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-right: 45px;
}

.favorite-discussions-wrapper .discussion-header h3 {
    font-size: 15px;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.discussion-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--color5);
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    max-width: fit-content;
}

.discussion-category i {
    font-size: 12px;
}

/* Friend likes - Modern stack effect */
.friend-likes {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding-right: 12px;
}

.friend-likes img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--color2);
    margin-left: -12px;
    transition: all 0.2s ease;
}

.friend-likes img:hover {
    transform: translateY(-4px) scale(1.15);
    z-index: 5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Stack effect indicator */
.friend-likes[data-more-count]::after {
    content: attr(data-more-count);
    background: var(--color4);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.friend-likes[data-more-count]:hover::after {
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .favorite-category-container {
        width: calc(100% - 80px);
    }
}

@media (max-width: 768px) {
    .favorite-category-container {
        width: calc(100% - 20px);
        padding: 15px 0;
        margin: 20px auto;
    }

    .favorite-category-header h2 {
        font-size: 24px;
    }

    .favorite-discussions-wrapper .discussion-card {
        flex: 0 0 280px;
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .favorite-discussions-wrapper .discussion-card {
        flex: 0 0 260px;
        min-width: 260px;
    }
}



/* Favori Kategori Container - Updated Design */
.favorite-category-container {
    width: calc(100% - 40px);
    /* Reduced from 160px to match Top Discussions */
    max-width: 1400px;
    padding: 20px 0;
    margin: 30px auto;
    position: relative;
    border-radius: 12px;
}

.favorite-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 20px;
    position: relative;
}

.favorite-category-header h2 {
    font-size: 28px;
    color: #fff;
    margin: 0 auto;
    /* Center the title */
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.favorite-category-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--color4), transparent);
    border-radius: 2px;
    transform: translateX(-50%);
    /* Center the gradient line */
}

/* Slider Controls - PC Only */
@media (hover: hover) and (pointer: fine) {
    .slider-controls {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        gap: 10px;
    }

    .slider-button {
        width: 32px;
        height: 32px;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .slider-button:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }

    .slider-button:active {
        transform: scale(0.95);
    }

    .slider-button i {
        font-size: 18px;
    }
}

/* Hide slider controls on touch devices */
@media (hover: none) or (pointer: coarse) {
    .slider-controls {
        display: none !important;
    }
}

/* Optimize touch scrolling */
.favorite-discussions-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .favorite-category-container {
        width: calc(100% - 20px);
        padding: 15px 0;
        margin: 20px auto;
    }

    .favorite-category-header h2 {
        font-size: 24px;
    }
}

/* Favorite Category Containers */
.favorite-category-container {
    margin-bottom: 40px;
    /* Add space between containers */
}

/* Single Favorite Category Container */
.favorite-category-container {
    width: calc(100% - 40px);
    max-width: 1400px;
    padding: 20px 0;
    margin: 30px auto;
    position: relative;
    border-radius: 12px;
}



/* Optimize for mobile */
@media (max-width: 768px) {
    .favorite-category-container {
        margin-bottom: 20px;
    }

    .favorite-category-container.category-1 {
        margin-top: 30px;
    }

    .favorite-category-container.category-3 {
        margin-bottom: 30px;
    }
}

/* Favori Kategori Container Updates */
.favorite-category-container {
    width: calc(100% - 80px);
    max-width: 1400px;
    padding: 30px;
    margin: 40px auto;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.favorite-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px;
    text-align: center;
    /* Center text */
}

.favorite-category-header h2 {
    width: 100%;
    text-align: center;
    /* Center title */
    font-size: 28px;
    color: #fff;
}

/* Update friend likes style */
.friend-likes {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.friend-likes-wrapper {
    display: flex;
    align-items: center;
}

.friend-likes-count {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
}

.friend-likes-count i {
    color: #ff4757;
    font-size: 14px;
}

/* Stack effect for friend avatars */
.friend-likes-avatars {
    display: flex;
    flex-direction: row-reverse;
    margin-right: 8px;
}

.friend-likes-avatars img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--color2);
    margin-left: -8px;
    transition: transform 0.2s ease;
}

.friend-likes-avatars img:hover {
    transform: translateY(-4px);
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .favorite-category-container {
        width: calc(100% - 20px);
        padding: 20px 15px;
        margin: 20px auto;
    }

    .favorite-category-header h2 {
        font-size: 24px;
        padding: 0 30px;
        /* Space for slider controls */
    }

    .friend-likes {
        bottom: 8px;
        right: 8px;
    }

    .friend-likes-avatars img {
        width: 20px;
        height: 20px;
    }

    .friend-likes-count {
        font-size: 11px;
    }
}

/* Favori Kategori Container Updates */
.favorite-category-container {
    width: calc(100% - 80px);
    /* Reduced width for margins */
    max-width: 1400px;
    padding: 30px;
    margin: 40px auto;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* New Friend Likes Design */
.favorite-discussions-wrapper .discussion-card {
    position: relative;
    padding: 15px;
    padding-bottom: 25px;
    /* Space for friend avatars */
}

.friend-likes {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.friend-likes-avatars {
    display: flex;
    flex-direction: row-reverse;
}

.friend-likes-avatars img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--color2);
    margin-left: -8px;
    transition: all 0.2s ease;
    position: relative;
}

.friend-likes-avatars img:hover {
    transform: translateY(-4px) scale(1.15);
    z-index: 5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-color: var(--color4);
}

/* Remove count elements */
.friend-likes-count,
.friend-likes::after,
.friend-likes::before {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .favorite-category-container {
        width: calc(100% - 40px);
        padding: 20px;
        margin: 30px auto;
    }

    .friend-likes-avatars img {
        width: 20px;
        height: 20px;
        margin-left: -6px;
    }
}

/* Favori Kategori Container - Benzersiz İsimler */
.fav-category {
    flex: 0 0 300px;
    min-width: 300px;
    max-width: calc(100vw - 40px);
    scroll-snap-align: start;
    background: var(--color2);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid var(--color4);
    position: relative;
    padding-bottom: 45px;
}

.fav-category:hover {
    transform: translateY(-5px);
    background: var(--color3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.fav-category-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fav-category-title {
    font-size: 16px;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fav-category-type {
    font-size: 12px;
    color: var(--color5);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fav-category-type i {
    font-size: 12px;
    color: var(--color5);
}

.fav-category-friends {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fav-friends-avatars {
    display: flex;
    flex-direction: row-reverse;
}

.fav-friends-avatars img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--color2);
    margin-left: -8px;
    transition: transform 0.2s ease;
}

.fav-friends-avatars img:hover {
    transform: translateY(-4px);
    z-index: 2;
}

.fav-friends-count {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
}

.fav-friends-count i {
    color: #ff4757;
    font-size: 14px;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .fav-category {
        flex: 0 0 280px;
        min-width: 280px;
        padding: 15px;
        padding-bottom: 40px;
    }

    .fav-category-title {
        font-size: 14px;
    }

    .fav-category-type {
        font-size: 11px;
    }

    .fav-friends-avatars img {
        width: 20px;
        height: 20px;
        margin-left: -6px;
    }

    .fav-friends-count {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* Friend Likes Container */
.friend-likes-container {
    width: calc(100% - 80px);
    max-width: 1400px;
    padding: 30px;
    margin: 40px auto;
    position: relative;
    border-radius: 12px;
}

/* Rest of the friend-likes styles remain same */
.friend-likes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px;
}

.friend-likes-header h2 {
    width: 100%;
    text-align: left;
    font-size: 28px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.friend-likes-header h2 i {
    color: #ff4757;
}

.friend-likes-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.friend-likes-wrapper::-webkit-scrollbar {
    display: none;
}

.friend-like-card {
    flex: 0 0 300px;
    min-width: 300px;
    background: var(--color2);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid #ff4757;
    position: relative;
    scroll-snap-align: start;
}

.friend-like-card:hover {
    transform: translateY(-5px);
    background: var(--color3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.friend-like-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.friend-like-title {
    font-size: 16px;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.friend-like-type {
    font-size: 12px;
    color: var(--color5);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Remove profile pictures and unnecessary styles */
.friend-like-users,
.friend-like-user img,
.friend-like-user span {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .friend-likes-container {
        width: calc(100% - 20px);
        padding: 20px;
        margin: 20px auto;
    }

    .friend-likes-header h2 {
        font-size: 24px;
    }

    .friend-like-card {
        flex: 0 0 280px;
        min-width: 280px;
        padding: 15px;
    }

    .friend-like-title {
        font-size: 14px;
    }
}

/* Friend Likes Container Updates */
.friend-likes-container {
    width: calc(100% - 80px);
    max-width: 1400px;
    padding: 30px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
    /* Prevent horizontal scroll */
}

.friend-likes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px;
    width: 100%;
}

.friend-likes-header h2 {
    font-size: 28px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.friend-likes-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.friend-like-card {
    flex: 0 0 300px;
    /* Fixed width */
    min-width: 300px;
    /* Same fixed width */
    height: 110px;
    /* Fixed height like favorite category */
    background: var(--color2);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid var(--color4);
    position: relative;
    scroll-snap-align: start;
}

.friend-like-card:hover {
    transform: translateY(-5px);
    background: var(--color3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Match favorite category content style */
.friend-like-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.friend-like-title {
    font-size: 16px;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.friend-like-type {
    font-size: 12px;
    color: var(--color5);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .friend-likes-container {
        width: calc(100% - 20px);
        padding: 15px;
        margin: 20px auto;
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    .friend-likes-header h2 {
        font-size: 24px;
    }

    .friend-like-card {
        flex: 0 0 280px;
        min-width: 280px;
        height: 110px;
        padding: 15px;
    }

    body {
        overflow-x: hidden;
        /* Prevent page horizontal scroll */
        width: 100%;
    }
}

/* Fix slider controls position */
.slider-controls {
    position: relative;
    display: flex;
    gap: 10px;
    margin-left: auto;
    /* Push to right */
    align-self: center;
    /* Align with title */
}

/* Root level fixes for horizontal scroll */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

/* Container level overflow control */
.halk-secimi-container,
.top-discussions-container,
.favorite-category-container,
.friend-likes-container {
    max-width: min(1400px, 100%);
    width: calc(100% - 40px);
    overflow: hidden;
    box-sizing: border-box;
}

/* Card content overflow control */
.secim-baslik h3,
.discussion-header h3,
.friend-like-title,
.fav-category-title {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header text wrap control */
.halk-secimi-header h2,
.favorite-category-header h2,
.friend-likes-header h2 {
    max-width: calc(100% - 80px);
    /* Space for slider controls */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile specific fixes */
@media (max-width: 768px) {

    /* Container adjustments */
    .halk-secimi-container,
    .top-discussions-container,
    .favorite-category-container,
    .friend-likes-container {
        width: calc(100% - 20px);
        padding: 15px 10px;
        margin: 15px auto;
    }

    /* Card size control */
    .discussion-card,
    .friend-like-card,
    .fav-category {
        width: 280px;
        min-width: 280px;
        flex: 0 0 280px;
    }

    /* Header text size reduction */
    .halk-secimi-header h2,
    .favorite-category-header h2,
    .friend-likes-header h2 {
        font-size: 20px;
        max-width: calc(100% - 20px);
    }

    /* Remove any negative margins */
    .friend-likes img,
    .friend-likes-avatars img {
        margin-left: -6px;
    }

    /* Ensure all wrappers don't overflow */
    .halk-secimi-wrapper,
    .top-discussions-wrapper,
    .favorite-discussions-wrapper,
    .friend-likes-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0;
        padding: 5px 0;
    }
}

/* Tightest screen size adjustments */
@media (max-width: 360px) {

    .discussion-card,
    .friend-like-card,
    .fav-category {
        width: 260px;
        min-width: 260px;
        flex: 0 0 260px;
    }
}

/* Container Margin Adjustments */
@media screen and (min-width: 769px) {

    .halk-secimi-container,
    .top-discussions-container,
    .favorite-category-container,
    .friend-likes-container {
        margin: 36px auto;
        /* Reduced from 40px (10% reduction) */
    }

    .favorite-category-container+.friend-likes-container {
        margin-top: 36px;
        /* Consistent spacing between containers */
    }
}

/* Fix Mobile Friend Likes Title */
@media (max-width: 768px) {
    .friend-like-title {
        font-size: 14px;
        line-height: 1.3;
        max-height: 36px;
        /* Allows for 2 lines of text */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        word-break: break-word;
    }

    .friend-like-card {
        height: auto;
        /* Allow card to expand if needed */
        min-height: 110px;
        padding: 12px 15px;
    }
}

/* Container Title Responsive Styles */
.halk-secimi-header h2,
.top-discussions-header h2,
.favorite-category-header h2,
.friend-likes-header h2 {
    font-size: clamp(18px, 4vw, 28px);
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: calc(100% - 100px);
    /* Space for controls */
    text-align: left;
}

@media (max-width: 768px) {

    .halk-secimi-header h2,
    .top-discussions-header h2,
    .favorite-category-header h2,
    .friend-likes-header h2 {
        font-size: clamp(16px, 3.5vw, 24px);
        padding-right: 45px;
        /* Space for slider controls */
    }

    /* Container header spacing */
    .halk-secimi-header,
    .top-discussions-header,
    .favorite-category-header,
    .friend-likes-header {
        margin-bottom: 20px;
        min-height: 60px;
        /* Ensure consistent height for wrapped text */
        display: flex;
        align-items: flex-start;
        /* Align to top when text wraps */
    }

    /* Slider controls positioning */
    .slider-controls {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 480px) {

    .halk-secimi-header h2,
    .top-discussions-header h2,
    .favorite-category-header h2,
    .friend-likes-header h2 {
        font-size: clamp(14px, 3vw, 20px);
        padding-right: 40px;
    }
}

/* Container Title Responsive Styles */
.halk-secimi-header h2,
.top-discussions-header h2,
.favorite-category-header h2,
.friend-likes-header h2 {
    font-size: 28px;
    /* Default size */
    line-height: 1.3;
    max-width: calc(100% - 100px);
    text-align: left;
    transition: font-size 0.3s ease;

    /* Add text overflow detection */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}

/* Responsive scaling only when needed */
@media (max-width: 768px) {

    .halk-secimi-header h2,
    .top-discussions-header h2,
    .favorite-category-header h2,
    .friend-likes-header h2 {
        /* Start with normal size */
        font-size: 24px;

        /* Scale down only if content overflows */
        &:not(:hover):not(:focus) {
            font-size: min(24px, calc(24px * (100% / (var(--content-width, 100%)))));
        }
    }

    /* Container header spacing */
    .halk-secimi-header,
    .top-discussions-header,
    .favorite-category-header,
    .friend-likes-header {
        margin-bottom: 20px;
        min-height: max-content;
        /* Adjust height based on content */
        display: flex;
        align-items: flex-start;
        padding-right: 50px;
        /* Space for controls */
    }
}

@media (max-width: 480px) {

    .halk-secimi-header h2,
    .top-discussions-header h2,
    .favorite-category-header h2,
    .friend-likes-header h2 {
        /* Start with slightly smaller size */
        font-size: 20px;

        /* Scale down only if content overflows */
        &:not(:hover):not(:focus) {
            font-size: min(20px, calc(20px * (100% / (var(--content-width, 100%)))));
        }
    }
}

/* Container Title Alignment Updates */
.halk-secimi-header h2,
.top-discussions-header h2,
.favorite-category-header h2,
.friend-likes-header h2 {
    /* Existing font size and other properties */
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Update header layouts */
.halk-secimi-header,
.top-discussions-header,
.favorite-category-header,
.friend-likes-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

/* Adjust slider controls position */
.slider-controls {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {

    .halk-secimi-header h2,
    .top-discussions-header h2,
    .favorite-category-header h2,
    .friend-likes-header h2 {
        text-align: center;
        padding: 0 40px;
        /* Space for controls on both sides */
    }
}

/* Category Recommendations */
.category-recommendations {
    width: calc(100% - 80px);
    max-width: 1400px;
    padding: 30px;
    margin: 40px auto;
    position: relative;
}

.category-recommendations-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.category-recommendations-header h2 {
    font-size: 28px;
    color: #fff;
    margin: 0;
    text-align: center;
}

.categories-wrapper {
    display: flex;
    /* Grid yerine flex kullan */
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 auto;
    max-width: 100%;
}

.category-card {
    flex: 0 0 280px;
    /* Sabit genişlik */
    min-width: 280px;
    height: 160px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    filter: blur(0.3px) brightness(0.7);
    /* Added blur and darkening */
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3),
            /* Updated opacity to match request */
            rgba(0, 0, 0, 0.3)
            /* Updated opacity to match request */
        );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.category-overlay h3 {
    color: #fff;
    font-size: 20px;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .categories-wrapper {
        display: flex;
        /* Flex düzenini koru */
        gap: 15px;
        padding: 5px 0;
    }

    .category-card {
        flex: 0 0 260px;
        /* Mobilde biraz daha küçük */
        min-width: 260px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .categories-wrapper {
        gap: 12px;
    }

    .category-card {
        flex: 0 0 240px;
        min-width: 240px;
        height: 130px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .categories-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-recommendations {
        width: calc(100% - 40px);
        padding: 20px;
        margin: 20px auto;
    }

    .categories-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-recommendations-header h2 {
        font-size: 24px;
    }

    .category-overlay h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .category-recommendations {
        width: calc(100% - 20px);
        padding: 15px;
    }

    .categories-wrapper {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .category-card {
        aspect-ratio: 21/9;
    }
}

/* Touch Device Optimization */
@media (hover: none) {
    .category-card {
        transform: none !important;
    }

    .category-image {
        transform: none !important;
    }

    .category-overlay {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    }
}

.tum-halk-secimlerini-goruntule {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto;
    /* Center horizontally */
    padding: 0.5rem 1rem;
    background: #1a1e26;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tum-halk-secimlerini-goruntule:hover {
    background: rgba(255, 255, 255, 0.1);
}