/* Akademik Takvim CSS - Ağaç Yapısı */

/* Genel Stiller */
.gradient-hr {
    border: none;
    height: 2px;
    background-image: linear-gradient(to right, #4938AE, rgba(73, 56, 174, 0.1));
}

.text-navy {
    color: #0e2237;
}

/* Şu Anki Hafta Bilgisi */
.current-week-info {
    margin-bottom: 2rem;
}

.info-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
}

.info-card.holiday {
    background: #e8f5e8;
    border-color: #c8e6c9;
}

.info-header {
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.info-content {
    color: #2c3e50;
}

.week-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.week-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.detail-item {
    color: #6c757d;
}

/* Akademik Takvim Ağacı */
.academic-tree {
    margin-top: 2rem;
}

.tree-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.tree-container {
    position: relative;
}

.tree-container::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
    z-index: 1;
}

.tree-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
}

.tree-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 25px;
    width: 20px;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.tree-item:last-child::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 50px;
    width: 2px;
    height: calc(100% - 50px);
    background: #e9ecef;
    z-index: 1;
}

/* Hafta Numarası */
.week-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: #6c757d;
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    z-index: 2;
}

.week-number::before {
    content: attr(data-number) ".";
    font-size: 0.9rem;
    line-height: 1;
}

.week-number::after {
    content: "Hafta";
    font-size: 0.6rem;
    line-height: 1;
    margin-top: 3px;
}



.tree-item.current .week-number {
    background: #007bff;
}

/* Hafta Bilgileri */
.week-info {
    flex-grow: 1;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-left: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tree-item.current .week-info {
    border-color: #007bff;
    background: #f8f9ff;
}

.week-info .week-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.week-dates {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.week-status {
    margin-bottom: 0.5rem;
}

.status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #e9ecef;
    color: #495057;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Etkinlikler */
.week-events {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.events-title {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.events-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.event-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.8rem;
    color: #495057;
    display: flex;
    align-items: center;
}

.event-item i {
    color: #007bff;
    margin-right: 0.5rem;
}

/* Öğretmen İşleri */
.teacher-tasks {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.tasks-title {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.tasks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.task-item {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.8rem;
    color: #1976d2;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.task-item:hover {
    background: #bbdefb;
    color: #1565c0;
    text-decoration: none;
    transform: translateX(2px);
}

.task-item.disabled {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.task-item.disabled:hover {
    background: #f8f9fa;
    color: #6c757d;
    transform: none;
}

.task-item i {
    color: #1976d2;
    margin-right: 0.5rem;
}

.task-item.disabled i {
    color: #6c757d;
}

/* Mevcut Hafta İndikatörü */
.current-indicator {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    z-index: 3;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .tree-item {
        padding-left: 2rem;
    }
    
    .week-number {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .tree-container::before {
        left: 20px;
    }
    
    .tree-item::before {
        left: 10px;
        width: 15px;
    }
    
    .week-info {
        margin-left: 0.5rem;
        padding: 0.75rem;
    }
    
    .week-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .events-list {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .tasks-list {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .current-indicator {
        right: -5px;
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
    
    /* Başlık mobil düzenleme */
    .text-center h4 {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 576px) {
    .tree-item {
        padding-left: 1.5rem;
    }
    
    .week-number {
        width: 35px;
        height: 35px;
        font-size: 0.7rem;
    }
    
    .tree-container::before {
        left: 17px;
    }
    
    .tree-item::before {
        left: 7px;
        width: 12px;
    }
    
    .week-info {
        margin-left: 0.25rem;
        padding: 0.5rem;
    }
    
    .week-info .week-name {
        font-size: 0.9rem;
    }
    
    .week-dates {
        font-size: 0.8rem;
    }
    
    .status {
        font-size: 0.75rem;
    }
    
    .event-item {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
} 