/* Listeleme Sayfası Stilleri */

/* Breadcrumb */
.breadcrumb {
    background-color: #f5f5f5;
    padding: 10px 0;
    margin-bottom: 30px;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ff6600;
}

.breadcrumb span {
    margin: 0 5px;
    color: #999;
}

/* Ana İçerik Başlık */
.packages-list-section h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.section-description {
    color: #666;
    margin-bottom: 30px;
}

/* Filtreler ve Paket Grid Düzeni */
.filters-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.filters-left {
    width: 250px;
    flex-shrink: 0;
}

.packages-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.packages-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Filtre Grupları */
.filter-group {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.filter-group h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.filter-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-group ul li {
    margin-bottom: 10px;
}

.filter-group ul li a {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 5px 0;
}

.filter-group ul li a:hover,
.filter-group ul li a.active {
    color: #ff6600;
}

/* Checkbox Listesi */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    color: #666;
    cursor: pointer;
}

.checkbox-list input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #ff6600;
}

/* Sayfalama */
.pagination {
    display: flex;
    justify-content: center;
    margin: 0;
    gap: 5px;
    width: 100%;
    box-sizing: border-box;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background-color: #ff6600;
    color: white;
    border-color: #ff6600;
}

.pagination a.disabled {
    color: #ccc;
    pointer-events: none;
    cursor: default;
    background-color: #f5f5f5;
}

/* Standardized Package Card Styles - Bu tanımlar styles.css'e taşındı */
/* Bu tanımları kaldırıyoruz çünkü styles.css'de zaten tanımlanmış durumda */
/* Paket kartları için tüm stilleri styles.css'de merkezi olarak yönetiyoruz */

/* NOT: Paket kartları için aşağıdaki sınıflar styles.css'de tanımlanmıştır:
   - .package-card
   - .package-combined
   - .price-tag
   - .package-details
   - .channel-types
   - .apply-btn-container
*/
/* TV+Internet kartına özel stiller (fiber-badge, altyapi-info vb.) */
.package-details.tv-internet-package .fiber-badge {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-bottom: 10px;
}

.package-details.tv-internet-package .altyapi-info {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
}
.package-details.tv-internet-package .altyapi-info i {
    color: #28a745;
    margin-right: 5px;
}

.package-details.tv-internet-package .package-features .feature-tag { /* span olanlar */
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 5px;
    margin-bottom: 5px;
}


/* Mobil Filtre Stilleri */
.mobile-filter-trigger {
    display: none; /* Varsayılan olarak gizli */
    margin-bottom: 20px;
}

.mobile-filter-trigger .btn {
    width: 100%;
    background-color: #f37121;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.mobile-filter-trigger .btn i {
    margin-right: 8px;
}

.mobile-filters-header {
    display: none; /* Varsayılan olarak gizli */
}

.filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filters-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Responsive Düzen */
@media (max-width: 992px) {
    .mobile-filter-trigger {
        display: block; /* Mobilde göster */
    }

    .filters-left {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        max-width: 85%;
        height: 100vh;
        background-color: #fff;
        z-index: 1100;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding: 20px;
        margin-bottom: 0;
    }

    .filters-left.active {
        transform: translateX(0);
    }

    .mobile-filters-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    .mobile-filters-header h3 {
        font-size: 20px;
        margin: 0;
    }

    .close-filters-btn {
        background: none;
        border: none;
        font-size: 28px;
        font-weight: 300;
        color: #333;
        cursor: pointer;
        line-height: 1;
    }
    .filters-container {
        flex-direction: column;
    }
    
    .filters-left {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .packages-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr; /* Kartları tek sütun yapar */
        padding: 0; /* Kenar boşluklarını kaldırarak tam genişlik sağlıyoruz */
    }

    .packages-grid .package-card {
        max-width: none !important; /* Tüm genişlik kısıtlamalarını kaldırır */
        width: 100% !important; /* Konteynerin tam genişliğini kaplar */
        border-left: none;
        border-right: none;
        margin-bottom: 20px;
    }

    .packages-grid .package-card .package-combined {
        width: 100%; /* İçeriğin de tam genişlikte olmasını sağlar */
    }
    
    .pagination-parent {
        flex: none;
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }
}
