/* Course Detail Page Styles */

:root {
    --primary-color: #C53030;
    --secondary-color: #E53E3E;
    --accent-color: #3182CE;
    --light-accent: #F7FAFC;
    --text-color: #4A5568;
    --light-bg: #F7FAFC;
    --success-color: #38A169;
    --warning-color: #D69E2E;
    --info-color: #3182CE;
    --gradient-1: linear-gradient(135deg, #C53030 0%, #E53E3E 100%);
    --gradient-2: linear-gradient(135deg, #3182CE 0%, #63B3ED 100%);
    --gradient-3: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.course-hero {
    background: linear-gradient(135deg, #C53030 0%, #E53E3E 50%, #F56565 100%);
    color: white;
    padding: 10px 0 10px;
    position: relative;
    overflow: hidden;
}

.course-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.course-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,0.1), transparent);
    z-index: 2;
}

.course-hero .container {
    position: relative;
    z-index: 3;
}

.course-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.course-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
    font-weight: 500;
}

.course-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.course-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.course-badge:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(197, 48, 48, 0.2);
}

.course-badge i {
    margin-right: 5px;
    font-size: 12px;
}

.course-content {
    padding: 50px 0;
}

.content-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #C53030 0%, #E53E3E 100%);
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(197, 48, 48, 0.2);
}

.section-title .section-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #C53030 0%, #E53E3E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(197, 48, 48, 0.2);
    transition: all 0.3s ease;
}

.section-title .section-icon.blue {
    background: linear-gradient(135deg, #3182CE 0%, #63B3ED 100%);
    box-shadow: 0 3px 8px rgba(49, 130, 206, 0.2);
}

.section-title .section-icon.blue:hover {
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.section-title .section-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.3);
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(75, 85, 99, 0.06);
    margin-bottom: 25px;
    border: 1px solid rgba(156, 163, 175, 0.15);
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 8px 25px rgba(75, 85, 99, 0.08);
    transform: translateY(-1px);
}

.side-info-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(75, 85, 99, 0.06);
    margin-bottom: 25px;
    border: 1px solid rgba(156, 163, 175, 0.12);
    transition: all 0.3s ease;
}

.side-info-card:hover {
    box-shadow: 0 8px 25px rgba(75, 85, 99, 0.08);
    transform: translateY(-1px);
}

.side-info-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-info-card h3 i {
    font-size: 20px;
}

.category-tabs .nav-tabs {
    border-bottom: 2px solid #e5e7eb;
}

.category-tab-btn {
    font-size: 12px;
    font-weight: 500;
    padding: 8px 12px;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #6b7280;
    transition: all 0.3s ease;
}

.category-tab-btn:hover {
    color: var(--primary-color);
    background: rgba(227, 24, 55, 0.05);
}

.category-tab-btn.active {
    color: var(--primary-color);
    background: rgba(227, 24, 55, 0.1);
    border-bottom-color: var(--primary-color);
}

.courses-container {
    max-height: 400px;
    overflow-y: auto;
}

.courses-container::-webkit-scrollbar {
    width: 6px;
}

.courses-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.courses-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.courses-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.course-item {
    border-bottom: 1px solid rgba(156, 163, 175, 0.2);
    padding: 15px 0;
}

.course-item:last-child {
    border-bottom: none;
}

.course-item-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.course-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
}

.course-item-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.course-item-info {
    font-size: 12px;
    color: #6b7280;
}

.course-item-info i {
    margin-right: 5px;
}

.course-item-actions .btn {
    font-size: 11px;
    padding: 5px 10px;
}

.info-row {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(156, 163, 175, 0.2);
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #6B7280;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label i {
    color: var(--accent-color);
    width: 16px;
}

.info-value {
    color: var(--text-color);
    font-weight: 500;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(75, 85, 99, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.image-gallery-full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(75, 85, 99, 0.08);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 85, 99, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-item-full {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(75, 85, 99, 0.08);
    transition: all 0.3s ease;
}

.gallery-item-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 85, 99, 0.12);
}

.gallery-item-full img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item-full:hover img {
    transform: scale(1.02);
}

.cover-image-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(75, 85, 99, 0.1);
    margin-bottom: 30px;
}

.cover-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Responsive Table Styles */
.table-responsive {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(75, 85, 99, 0.06);
    margin-bottom: 25px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    margin-bottom: 0;
    min-width: 100%;
    white-space: nowrap;
}

.table th {
    background: linear-gradient(135deg, #C53030, #E53E3E);
    color: white;
    font-weight: 600;
    border-top: none;
    padding: 12px 15px;
    box-shadow: 0 2px 6px rgba(197, 48, 48, 0.15);
    position: sticky;
    top: 0;
    z-index: 10;
}

.table td {
    padding: 12px 15px;
    border-top: 1px solid rgba(156, 163, 175, 0.2);
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: rgba(197, 48, 48, 0.05);
}

/* Mobile responsive table styling */
@media (max-width: 768px) {
    .table-responsive {
        border-radius: 8px;
        margin-bottom: 20px;
    }
    
    .table {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 8px 10px;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .table th {
        font-size: 13px;
    }
    
    .table td {
        font-size: 12px;
    }
}

/* Custom scrollbar for tables */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Ensure tables in content are properly styled */
.info-card .table-responsive {
    margin: 20px 0;
}

.info-card table {
    width: 100%;
    max-width: 100%;
}

/* Center tables in content */
.info-card .table-responsive {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Improve table readability */
.table td, .table th {
    text-align: left;
    vertical-align: middle;
}

.table td:first-child, .table th:first-child {
    font-weight: 600;
}

/* Better spacing for table content */
.table td p, .table th p {
    margin-bottom: 0;
}

.table td ul, .table th ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: white;
    text-shadow: 0 2px 8px rgba(255,255,255,0.3);
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.9);
}

.btn-primary {
    background: linear-gradient(135deg, #C53030 0%, #E53E3E 100%);
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(197, 48, 48, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3182CE 0%, #63B3ED 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 130, 206, 0.3);
}

.badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
}

.bg-primary {
    background: linear-gradient(135deg, #C53030, #E53E3E) !important;
}

.bg-success {
    background: linear-gradient(135deg, #38A169, #68D391) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #D69E2E, #F6E05E) !important;
}

.bg-info {
    background: linear-gradient(135deg, #3182CE, #90CDF4) !important;
}

.side-info-card {
    background: linear-gradient(135deg, #fff 0%, #F7FAFC 100%);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
    border: 1px solid rgba(156, 163, 175, 0.12);
}

.side-info-card h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-info-card h3 i {
    color: var(--accent-color);
    filter: drop-shadow(0 1px 3px rgba(49, 130, 206, 0.15));
}

@media (max-width: 768px) {
    .course-hero {
        padding: 10px 0 10px;
    }
    
    .course-title {
        font-size: 28px;
    }
    
    .course-subtitle {
        font-size: 16px;
    }
    
    .course-badges {
        justify-content: center;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .image-gallery-full {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-item-full img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .image-gallery-full {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item-full img {
        height: 180px;
    }
    
    .cover-image {
        height: 250px;
    }
    
    /* Category Tabs - Mobilde 2 şerli sütun */
    .category-tabs .nav-tabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        border-bottom: none;
        margin-bottom: 15px;
    }
    
    .category-tabs .nav-item {
        width: 100% !important;
        margin: 0 !important;
        display: block;
    }
    
    .category-tab-btn {
        font-size: 9px;
        padding: 10px 4px;
        text-align: center;
        margin: 0;
        border-radius: 6px;
        border: 1px solid #ddd;
        width: 100%;
        background: #f8f9fa;
        color: #6c757d;
        display: block;
        text-decoration: none;
    }
    
    .category-tab-btn.active {
        background: #E31837 !important;
        color: white !important;
        border-color: #E31837 !important;
    }
    
    .category-tab-btn:hover {
        background: #e9ecef;
        color: #495057;
    }
    
    .category-tab-btn.active:hover {
        background: #E31837 !important;
        color: white !important;
    }
    
    /* Side info card mobilde daha kompakt */
    .side-info-card {
        padding: 15px;
    }
    
    .side-info-card h3 {
        font-size: 16px;
    }
    
    .courses-container {
        max-height: 300px;
    }
    
    .course-item {
        padding: 10px 0;
    }
    
    .course-item-title {
        font-size: 12px;
    }
    
    .course-item-info {
        font-size: 10px;
    }
    
    .course-item-actions .btn {
        font-size: 9px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .cover-image {
        height: 200px;
    }
}