/* ===== PREMIUM ROADMAP UI - CLEAN & MODERN ===== */

/* ===== HERO SECTION ===== */
.subject-hero {
    position: relative;
    background: linear-gradient(135deg, #0b4f99 0%, #115eb2 50%, #176cc8 100%);
    padding: 100px 0 60px;
    margin-top: -60px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('/static/images/fanlar.jpg') center/cover no-repeat;
    opacity: 0.12;
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 50%);
    z-index: 1;
}

/* ===== BREADCRUMB - MINIMAL ===== */
.breadcrumb-nav {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.875rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.breadcrumb-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.breadcrumb-icon {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.25rem;
}

.breadcrumb-separator svg {
    width: 14px;
    height: 14px;
}

.breadcrumb-current {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0b4f99;
}

.breadcrumb-text {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== HERO CONTENT - COMPACT ===== */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.subject-icon-hero {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subject-icon-hero i {
    font-size: 2.5rem;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.5;
}

/* ===== HERO STATS - INLINE ===== */
.hero-stats {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.25rem;
    color: white;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* ===== ROADMAP SECTION - CLEAN BACKGROUND ===== */
.roadmap-section {
    padding: 3rem 0 4rem;
    background: linear-gradient(180deg, #fafbfc 0%, #f5f7fa 100%);
}

/* ===== SEARCH - MINIMAL ===== */
.search-container {
    margin-bottom: 2.5rem;
}

.search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.search-input:focus {
    outline: none;
    border-color: #0b4f99;
    box-shadow: 0 0 0 3px rgba(11, 79, 153, 0.1);
}

.search-input::placeholder {
    color: #94a3b8;
}

/* ===== ROADMAP HEADER - CLEAN ===== */
.roadmap-header {
    text-align: center;
    margin-bottom: 3rem;
}

.roadmap-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.roadmap-title i {
    color: #0b4f99;
    font-size: 1.5rem;
}

.roadmap-subtitle {
    font-size: 1rem;
    color: #64748b;
    font-weight: 400;
}

/* ===== ROADMAP PATH - VERTICAL TIMELINE ===== */
.roadmap-path {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
}

/* ===== VERTICAL TIMELINE LINE ===== */
.roadmap-path::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
    transform: translateX(-50%);
    z-index: 0;
}

/* ===== ROADMAP ITEM - ALTERNATING LAYOUT ===== */
.roadmap-item {
    position: relative;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
}

.roadmap-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Alternate left/right */
.roadmap-item:nth-child(odd) {
    padding-right: 50%;
    padding-right: calc(50% + 30px);
}

.roadmap-item:nth-child(even) {
    padding-left: 50%;
    padding-left: calc(50% + 30px);
}

/* ===== TIMELINE DOT ===== */
.roadmap-item::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    border: 3px solid #fafbfc;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.roadmap-item:nth-child(odd)::before {
    right: calc(50% - 6px);
}

.roadmap-item:nth-child(even)::before {
    left: calc(50% - 6px);
}

.roadmap-item.active::before {
    background: #0b4f99;
    box-shadow: 0 0 0 4px rgba(11, 79, 153, 0.15), 0 2px 8px rgba(11, 79, 153, 0.3);
}

.roadmap-item.completed::before {
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* ===== PREMIUM CARD DESIGN ===== */
.roadmap-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.roadmap-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Active Card */
.roadmap-item.active .roadmap-card {
    border-color: #0b4f99;
    background: linear-gradient(135deg, #ffffff 0%, #f0f5fb 100%);
    box-shadow: 0 4px 16px rgba(11, 79, 153, 0.12);
}

/* Completed Card */
.roadmap-item.completed .roadmap-card {
    border-color: #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

/* Locked Card */
.roadmap-item.locked .roadmap-card {
    background: #fafbfc;
    border-color: #e2e8f0;
    opacity: 0.65;
}

.roadmap-item.locked .roadmap-card:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ===== FLOATING STEP BADGE ===== */
.level-badge {
    position: absolute;
    top: -12px;
    left: 1.25rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0b4f99 0%, #176cc8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(11, 79, 153, 0.25);
    border: 3px solid white;
    z-index: 3;
}

.level-badge.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.level-badge.locked {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.2);
}

.level-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.level-icon {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.level-badge.completed .level-icon {
    color: #10b981;
}

.level-badge.locked .level-icon {
    color: #64748b;
}

.level-badge:not(.completed):not(.locked) .level-icon {
    color: #0b4f99;
}

/* ===== CARD BODY - CLEAN LAYOUT ===== */
.card-body {
    margin-top: 1rem;
}

.card-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    flex: 1;
}

/* ===== STATUS BADGE - SINGLE, CLEAN ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.completed {
    background: #d1fae5;
    color: #059669;
}

.status-badge.locked {
    background: #f1f5f9;
    color: #64748b;
}

.status-badge.active {
    background: #dbeafe;
    color: #0b4f99;
}

.status-badge i {
    font-size: 0.7rem;
}

/* ===== CARD DESCRIPTION - COMPACT ===== */
.card-description {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* ===== PROGRESS BAR - ELEGANT ===== */
.progress-container {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.progress-bar-wrapper {
    flex: 1;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0b4f99 0%, #176cc8 100%);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.roadmap-item.completed .progress-bar-fill {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.progress-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0b4f99;
    min-width: 40px;
    text-align: right;
}

.roadmap-item.completed .progress-text {
    color: #10b981;
}

/* ===== CARD FOOTER - CLEAN ROW ===== */
.card-footer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.card-meta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.meta-item i {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* ===== ACTION BUTTON - MODERN ===== */
.btn-roadmap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-roadmap.active {
    background: linear-gradient(135deg, #0b4f99 0%, #176cc8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(11, 79, 153, 0.25);
}

.btn-roadmap.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 79, 153, 0.35);
}

.btn-roadmap.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-roadmap.completed:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-roadmap.locked {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 16px;
    border: 1px dashed #e2e8f0;
}

.empty-icon {
    width: 70px;
    height: 70px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.empty-icon i {
    font-size: 2rem;
    color: #cbd5e1;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.95rem;
    color: #64748b;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .subject-hero {
        padding: 80px 0 50px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .roadmap-title {
        font-size: 1.5rem;
    }

    /* Mobile: Stack cards vertically */
    .roadmap-path::before {
        left: 24px;
    }

    .roadmap-item:nth-child(odd),
    .roadmap-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
    }

    .roadmap-item::before {
        left: 18px !important;
        right: auto !important;
    }

    .roadmap-card {
        padding: 1.25rem;
    }

    .level-badge {
        width: 42px;
        height: 42px;
        left: 1rem;
    }

    .level-number {
        font-size: 1.125rem;
    }

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

    .card-footer-section {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-roadmap {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .breadcrumb-link span {
        display: none;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .stat-value {
        font-size: 1.125rem;
    }

    .roadmap-card {
        padding: 1rem;
    }

    .card-description {
        font-size: 0.85rem;
    }
}
