/* Kart seçim sistemi stilleri */

/* Kart seçim başlığı */
.selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 25px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.selection-title {
    font-size: 18px;
    color: #59c1d4;
    font-weight: 600;
    text-align: left;
    margin: 0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.toggle-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.toggle-btn:hover {
    border-color: #59c1d4;
    color: #59c1d4;
}

.toggle-btn.active {
    background: #59c1d4;
    border-color: #59c1d4;
    color: white;
}

/* Kart grid sistemi */
.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    position: relative;
}

.cards-grid.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    max-height: none;
    overflow: visible;
}

/* Sağdaki dikey scrollbar – mavi (aşağı yukarı kaydırma belli olsun, loader mavisi gibi) */
.cards-grid {
    scrollbar-color: #59c1d4 rgba(89, 193, 212, 0.2);
    scrollbar-width: thin;
}
.cards-grid::-webkit-scrollbar {
    width: 10px;
}
.cards-grid::-webkit-scrollbar-track {
    background: rgba(89, 193, 212, 0.12);
    border-radius: 5px;
}
.cards-grid::-webkit-scrollbar-thumb {
    background: #59c1d4;
    border-radius: 5px;
}
.cards-grid::-webkit-scrollbar-thumb:hover {
    background: #49a9bc;
}

/* Scroll Blur Effect for List View */
.cards-grid::before,
.cards-grid::after {
    content: '';
    position: sticky;
    left: 0;
    right: 0;
    height: 40px;
    pointer-events: none;
    z-index: 10;
}

.cards-grid::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.cards-grid::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.cards-grid.grid-view::before,
.cards-grid.grid-view::after {
    display: none;
}

@media (min-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1100px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 900px;
    }
}

/* Kart stilleri */
.card-item {
    background: transparent;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cards-grid.grid-view .card-item {
    padding: 15px;
}

.card-item:hover {
    /* Hover efekti kaldırıldı */
}

.card-icon {
    width: 160px;
    height: 100px;
    margin: 0 auto 12px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.cards-grid.grid-view .card-icon {
    width: 120px;
    height: 75px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card-item:hover .card-image {
    /* Hover efekti kaldırıldı */
}

.card-title {
    font-size: 12px;
    font-weight: 600;
    color: #59c1d4;
    margin: 0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.card-item:hover .card-title {
    /* Hover efekti kaldırıldı */
}

/* Grid view swipe/carousel için */
.cards-grid.grid-view {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 20px;
}

.cards-grid.grid-view .card-item {
    flex: 0 0 200px;
    scroll-snap-align: center;
}

/* Scrollbar styling */
.cards-grid.grid-view::-webkit-scrollbar {
    height: 8px;
}

.cards-grid.grid-view::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cards-grid.grid-view::-webkit-scrollbar-thumb {
    background: #59c1d4;
    border-radius: 10px;
}

.cards-grid.grid-view::-webkit-scrollbar-thumb:hover {
    background: #4a9fb3;
}

/* Desktop (PC) optimizasyonu */
@media (min-width: 769px) {
    .container.mt20 {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cards-grid.grid-view {
        justify-content: flex-start;
    }
    
    .selection-header {
        max-width: 900px;
    }
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .selection-header {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .selection-title {
        font-size: 16px;
        text-align: center;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .card-icon {
        width: 140px;
        height: 88px;
    }
    
    .cards-grid.grid-view .card-icon {
        width: 110px;
        height: 68px;
    }
}

@media (max-width: 480px) {
    .selection-title {
        font-size: 14px;
    }
    
    .toggle-btn {
        width: 36px;
        height: 36px;
    }
    
    .toggle-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .card-icon {
        width: 120px;
        height: 75px;
    }
    
    .cards-grid.grid-view .card-icon {
        width: 100px;
        height: 62px;
    }
    
    .card-title {
        font-size: 11px;
    }
}
