/* 
 * Kurslar Page Modernization - Premium Theme Extension
 */

:root {
    --primary-gradient: linear-gradient(135deg, #0056b3 0%, #00aaff 100%);
    --secondary-gradient: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 20px 40px rgba(0, 86, 179, 0.15);
}

/* Page Header Enhancement */
.page-header.modern-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../resimler/slider/slider-1.jpg');
    /* Fallback image */
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    margin-bottom: 0;
    position: relative;
    color: #fff;
}

.page-header.modern-hero h1 {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Tab Styling */
#kursTab {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 50px;
    display: inline-flex;
    margin: 0 auto 50px auto;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

#kursTab .nav-link {
    border-radius: 40px;
    color: #555;
    transition: all 0.3s ease;
    border: none;
}

#kursTab .nav-link.active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

/* Card Modernization */
.modern-card {
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
    border: 1px solid #eee !important;
    box-shadow: var(--card-shadow);
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.modern-card .card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.modern-card .card-img-top {
    transition: transform 0.6s ease;
}

.modern-card:hover .card-img-top {
    transform: scale(1.1);
}

.modern-card .badge-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.modern-card .card-body {
    padding: 25px;
}

.modern-card .card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.4;
}

.modern-card .info-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.9rem;
}

.modern-card .info-row i {
    width: 25px;
    color: #0088cc;
}

/* Button Styling */
.btn-modern-apply {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-modern-apply:hover:not(:disabled) {
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.4);
    transform: scale(1.02);
}

.btn-modern-apply:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane .row>div {
    animation: fadeInUp 0.5s ease backwards;
}

.tab-pane .row>div:nth-child(2) {
    animation-delay: 0.1s;
}

.tab-pane .row>div:nth-child(3) {
    animation-delay: 0.2s;
}

.tab-pane .row>div:nth-child(4) {
    animation-delay: 0.3s;
}

.tab-pane .row>div:nth-child(5) {
    animation-delay: 0.4s;
}

.tab-pane .row>div:nth-child(6) {
    animation-delay: 0.5s;
}

/* Grayscale for closed courses */
.grayscale {
    filter: grayscale(100%);
    opacity: 0.8;
}

.badge-quota {
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    backdrop-filter: blur(5px);
}