/* Serüvenlerim Sayfası - Özel CSS */
/* Bootstrap 5 + Custom CSS ile profesyonel kurs kartları */

/* Ana Container */
.container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Sayfa Container */
.seruven-page-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

/* Sol Sidebar - Filtreler */
.seruven-filters-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
    margin-bottom: 2rem;
}

/* Sağ Ana İçerik */
.seruven-main-content {
    flex: 1;
    min-width: 0;
}

/* Üst Kontrol Paneli */
.seruven-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Filtrele Butonu */
.seruven-filter-btn {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seruven-filter-btn:hover {
    border-color: #A6429F;
    color: #A6429F;
}

.seruven-filter-btn i {
    font-size: 0.8rem;
}

/* Sıralama Dropdown */
.seruven-sort-dropdown {
    background: #fff;
    border: 1px solid #A6429F;
    padding: 0.75rem 2rem 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    min-width: 180px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
}

/* Layout Dropdown */
.seruven-layout-dropdown {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 0.75rem 2rem 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    min-width: 150px;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
}

.seruven-layout-dropdown:hover {
    border-color: #A6429F;
    color: #A6429F;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23A6429F' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* Sonuç Sayısı */
.seruven-result-count {
    font-size: 0.9rem;
    color: #666;
    margin-left: auto;
}

/* Filtre Kategorileri */
.seruven-filter-category {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.seruven-filter-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Filtre Başlığı */
.seruven-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0;
    font-weight: 600;
    color: #333;
}

.seruven-filter-header:hover {
    color: #A6429F;
}

.seruven-filter-header i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.seruven-filter-header.expanded i {
    transform: rotate(180deg);
}

/* Filtre Seçenekleri */
.seruven-filter-options {
    margin-top: 0.75rem;
    display: none;
}

.seruven-filter-options.expanded {
    display: block;
}

/* Filtre Seçeneği */
.seruven-filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    cursor: pointer;
}

.seruven-filter-option:hover {
    color: #A6429F;
}

/* Checkbox Stili */
.seruven-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seruven-checkbox.checked {
    background: #A6429F;
    border-color: #A6429F;
}

.seruven-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

/* Radio Button Stili */
.seruven-radio {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seruven-radio.checked {
    border-color: #A6429F;
}

.seruven-radio.checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #A6429F;
    border-radius: 50%;
}

/* Seçenek Metni */
.seruven-option-text {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}

/* Seçenek Sayısı */
.seruven-option-count {
    font-size: 0.8rem;
    color: #999;
    margin-left: auto;
}

/* Daha Fazla Göster */
.seruven-show-more {
    color: #A6429F;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.seruven-show-more:hover {
    text-decoration: underline;
}

/* Yıldız Rating */
.seruven-star-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.seruven-star {
    color: #ff7b18;
    font-size: 12px;
}

/* Active Filter Tags */
.seruven-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.seruven-filter-tag {
    background: #A6429F;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.seruven-filter-tag i {
    cursor: pointer;
    font-size: 0.7rem;
}

/* Mobile Filter Modal */
.seruven-mobile-filter-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.seruven-mobile-filter-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: white;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.seruven-mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.seruven-mobile-filter-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.seruven-mobile-filter-close:hover {
    background-color: #f5f5f5;
}

.seruven-mobile-result-count {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.seruven-mobile-filter-category {
    margin-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1.5rem;
}

.seruven-mobile-filter-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.seruven-mobile-filter-header-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 0;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.seruven-mobile-filter-header-category:hover {
    color: #A6429F;
}

.seruven-mobile-filter-header-category i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.seruven-mobile-filter-header-category.expanded i {
    transform: rotate(180deg);
}

.seruven-mobile-filter-options {
    margin-top: 1rem;
    display: none;
}

.seruven-mobile-filter-options.expanded {
    display: block;
}

.seruven-mobile-filter-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    cursor: pointer;
    border-bottom: 1px solid #f8f8f8;
}

.seruven-mobile-filter-option:last-child {
    border-bottom: none;
}

.seruven-mobile-filter-option:hover {
    color: #A6429F;
}

.seruven-mobile-filter-option .seruven-checkbox,
.seruven-mobile-filter-option .seruven-radio {
    width: 20px;
    height: 20px;
}

.seruven-mobile-filter-option .seruven-option-text {
    flex: 1;
    font-size: 1rem;
    color: #333;
}

.seruven-mobile-filter-option .seruven-option-count {
    font-size: 0.9rem;
    color: #999;
}

.seruven-mobile-show-more {
    color: #A6429F;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.seruven-mobile-show-more:hover {
    text-decoration: underline;
}

.seruven-mobile-done-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #A6429F;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.2s ease;
}

.seruven-mobile-done-btn:hover {
    background: #8a3690;
}

/* Ana Grid Container */
.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    align-items: stretch;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Kurs Kartı */
.course-card {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
    outline: none;
    width: 100%;
    max-width: 250px;
    margin-bottom: 1rem;
}

.course-card:hover {
    box-shadow: none;
    transform: none;
}

/* Kurs Resmi */
.course-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #ff7b18;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Placeholder görsel */
.course-image-placeholder {
    background: #f5f5f5;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Sağ alt köşe badge */
.course-image-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #dc3545;
    color: white;
    padding: 4px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
}

/* Kurs İçeriği */
.course-content {
    padding: 0;
}

/* Kurs Başlığı */
.course-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1c1d1f;
    margin: 0;
    padding: 1rem 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
}

.course-title a {
    color: inherit;
    text-decoration: none;
}

.course-title a:hover {
    color: #A6429F;
}

/* Eğitmen Adı */
.course-instructor {
    font-size: 0.875rem;
    color: #6a6f73;
    margin: 0;
    padding: 0 0 0.5rem 0;
    font-weight: 400;
}

/* Rating Sistemi */
.course-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0 0 0.5rem 0;
}

.rating-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1c1d1f;
}

.rating-stars {
    display: flex;
    gap: 1px;
}

.rating-stars i {
    color: #ff7b18;
    font-size: 12px;
}

.rating-count {
    font-size: 0.875rem;
    color: #6a6f73;
    margin-left: 0.25rem;
}

/* Fiyat */
.course-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1c1d1f;
    margin: 0;
    padding: 0 0 1rem 0;
}

/* Badge Container */
.course-badges {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0 0 1rem 0;
    flex-wrap: wrap;
}

/* Alt Badge */
.course-level-badge {
    background: #A6429F;
    color: white;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    width: fit-content;
    white-space: nowrap;
}

.course-level-badge i {
    font-size: 0.65rem;
}

/* En çok satan badge */
.course-bestseller-badge {
    background: #17a2b8;
    color: white;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: inherit;
    width: fit-content;
    white-space: nowrap;
}

/* Responsive Tasarım */
@media (max-width: 1400px) {
    .course-grid {
        max-width: 900px;
    }
}

@media (max-width: 1200px) {
    .seruven-filters-sidebar {
        width: 230px;
    }

    .course-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 992px) {
    .seruven-page-container {
        padding: 0 1rem;
    }

    .seruven-filters-sidebar {
        width: 220px;
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }

    .seruven-page-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }

    .seruven-filters-sidebar {
        display: none;
    }

    .seruven-controls {
        flex-direction: column;
        align-items: stretch;
        padding-right: 0;
        padding-left: 0;
    }

    .seruven-filter-btn {
        display: flex;
        justify-content: center;
    }

    .seruven-result-count {
        margin-left: 0;
        text-align: center;
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .course-card {
        padding: 0 1rem;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-bottom: 1px solid #e5e5e5;
    }

    .course-card:last-child {
        border-bottom: none;
    }

    .course-card {
        padding: 0 1rem;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .course-image-container {
        aspect-ratio: 16/9;
        margin: 0 -1rem;
        width: calc(100% + 2rem) !important;
    }

    .course-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .course-title {
        margin: 0 -1rem !important;
        padding: 1rem 1rem 0.5rem 1rem !important;
        width: calc(100% + 2rem) !important;
    }

    .seruven-mobile-filter-modal {
        display: none;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }

    .seruven-page-container {
        padding: 0 1rem;
        margin: 0;
        max-width: 100%;
        width: 100%;
        flex-direction: column;
    }

    .seruven-main-content {
        max-width: 100%;
        width: 100%;
    }

    .seruven-controls {
        padding: 0;
        margin: 0;
    }

    .course-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .course-card {
        padding: 0 1rem;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-bottom: 1px solid #e5e5e5;
    }

    .course-card:last-child {
        border-bottom: none;
    }

    .course-card {
        padding: 0 1rem;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .course-image-container {
        aspect-ratio: 16/9;
        margin: 0 -1rem;
        width: calc(100% + 2rem) !important;
    }

    .course-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .course-title {
        margin: 0 -1rem !important;
        padding: 1rem 1rem 0.5rem 1rem !important;
        width: calc(100% + 2rem) !important;
    }

    .seruven-mobile-filter-content {
        width: 90%;
    }
}

    .course-title {
        font-size: 0.9rem;
        padding: 0.625rem 0 0.25rem 0;
    }

    .course-instructor {
        padding: 0 0 0.25rem 0;
    }

    .course-rating {
        padding: 0 0 0.25rem 0;
    }

    .course-price {
        padding: 0 0 0.5rem 0;
    }

    .course-badges {
        padding: 0 0 0.625rem 0;
    }

    .course-image-container {
        height: 140px;
    }
}

@media (max-width: 576px) {
    .course-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        margin: 1rem 0;
    }

    .course-image-container {
        height: 130px;
    }

    .course-card-link {
        width: 100%;
    }

    .course-card {
        width: 100%;
    }

    .course-title {
        font-size: 0.85rem;
        padding: 0.5rem 0 0.25rem 0;
    }

    .course-instructor {
        padding: 0 0 0.25rem 0;
    }

    .course-rating {
        padding: 0 0 0.25rem 0;
    }

    .course-price {
        padding: 0 0 0.5rem 0;
    }

    .course-badges {
        padding: 0 0 0.5rem 0;
    }
}


/* Filtreleme ve Arama */
.course-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: #333;
    margin-right: 0.5rem;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 150px;
}

/* Boş Durum */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #666;
    margin: 0;
}

/* Course Card Link */
.course-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.course-card-link:hover .course-card {
    box-shadow: none;
}

/* Course Card içindeki kartın yüksekliğini düzelt */
.course-card-link {
    height: 100%;
}

.course-card-link .course-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Hover Efektleri */
.course-card {
    cursor: pointer;
}

.course-card:active {
    transform: translateY(0);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .seruven-page-container {
        padding: 0 1rem;
    }

    .course-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }

    .course-content {
        padding: 1rem;
    }

    .course-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .course-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .course-image-container {
        height: 180px;
    }
}

/* Sayfa Başlığı Stilleri */
.page-header-custom {
    background: linear-gradient(135deg, #A6429F 0%, #FF7B18 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-header-custom h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header-custom p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Loading Animasyonu */
.course-card.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Hover Efektleri */
.course-card {
    cursor: pointer;
}

.course-card:active {
    transform: translateY(0);
}

/* Filtreleme ve Arama */
.course-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: #333;
    margin-right: 0.5rem;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 150px;
}

/* Boş Durum */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #666;
    margin: 0;
}

/* Course Card Link */
.course-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.course-card-link:hover .course-card {
    box-shadow: none;
}

/* Course Card içindeki kartın yüksekliğini düzelt */
.course-card-link {
    height: 100%;
}

.course-card-link .course-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
