/* ========================================
   Eğitim Takvimi Sayfası CSS
   ======================================== */

/* Main Section */
.takvim-section {
    padding: 30px 0 80px;
    background: #f8fafc;
}

.takvim-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: start;
}

/* Takvim Main */
.takvim-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Takvim Navigation */
.takvim-nav-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.takvim-nav-box .nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.takvim-nav-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.takvim-nav-btn:hover {
    background: #1d458b;
    color: #fff;
}

.takvim-current-month {
    display: flex;
    align-items: center;
    min-width: 160px;
    justify-content: center;
}

.takvim-current-month .month-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.takvim-today-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.takvim-today-btn:hover {
    background: #1d458b;
    color: #fff;
    border-color: #1d458b;
}

.takvim-today-btn i {
    font-size: 14px;
}

/* Export Dropdown */
.export-dropdown {
    position: relative;
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1d458b 0%, #2a5298 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.export-btn:hover {
    box-shadow: 0 4px 15px rgba(29, 69, 139, 0.3);
}

.export-btn .export-arrow {
    font-size: 10px;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.export-dropdown.active .export-arrow {
    transform: rotate(180deg);
}

.export-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
    overflow: hidden;
}

.export-dropdown.active .export-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.export-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: #334155;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.export-item:last-child {
    border-bottom: none;
}

.export-item:hover {
    background: #f8fafc;
}

.export-item i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 16px;
    color: #1d458b;
}

.export-item:first-child i {
    background: #dbeafe;
    color: #2563eb;
}

.export-item:last-child i {
    background: #dcfce7;
    color: #16a34a;
}

.export-item div {
    display: flex;
    flex-direction: column;
}

.export-item span {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.export-item small {
    font-size: 12px;
    color: #64748b;
}

/* Calendar Grid */
.takvim-calendar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.takvim-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: linear-gradient(135deg, #1d458b 0%, #0f2d52 100%);
}

.takvim-day-name {
    padding: 16px 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.takvim-day-name.weekend {
    color: rgba(255,255,255,0.7);
}

.takvim-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.takvim-cell {
    min-height: 120px;
    padding: 10px;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    transition: background 0.2s ease;
}

.takvim-cell:nth-child(7n) {
    border-right: none;
}

.takvim-cell.other-month {
    background: #fafafa;
}

.takvim-cell.today {
    background: #eff6ff;
}

.takvim-cell.weekend {
    background: #fafafa;
}

.takvim-cell.today.weekend {
    background: #e8f4fd;
}

.takvim-cell.has-events {
    cursor: pointer;
}

.takvim-cell.has-events:hover {
    background: #f8fafc;
}

.cell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.day-number {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.takvim-cell.today .day-number {
    background: #1d458b;
    color: #fff;
}

.event-count {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #1d458b;
    padding: 2px 8px;
    border-radius: 10px;
}

.cell-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cell-event {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    background: color-mix(in srgb, var(--event-color) 15%, white);
    border-left: 3px solid var(--event-color);
    border-radius: 0 6px 6px 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cell-event:hover {
    background: color-mix(in srgb, var(--event-color) 25%, white);
}

.event-time {
    font-size: 10px;
    font-weight: 700;
    color: var(--event-color);
    white-space: nowrap;
}

.event-title {
    font-size: 11px;
    color: #334155;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.more-events {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    padding: 4px 8px;
    text-align: center;
}


/* Sidebar */
.takvim-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.sidebar-card-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, #1d458b 0%, #2a5298 100%);
}

.sidebar-card-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card-body {
    padding: 20px;
}

.no-data {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}

/* Upcoming List */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upcoming-item {
    display: flex;
    gap: 14px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.upcoming-item:hover {
    background: #f1f5f9;
}

.upcoming-date {
    width: 50px;
    min-width: 50px;
    text-align: center;
    padding: 8px 6px;
    background: color-mix(in srgb, var(--event-color) 15%, white);
    border-radius: 10px;
}

.upcoming-date .date-day {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--event-color);
    line-height: 1;
}

.upcoming-date .date-month {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--event-color);
    text-transform: uppercase;
    margin-top: 2px;
}

.upcoming-info {
    flex: 1;
    min-width: 0;
}

.upcoming-info h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upcoming-countdown {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.upcoming-countdown i {
    color: #f59e0b;
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-item:hover {
    background: #f1f5f9;
}

.category-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}


/* Responsive */
@media (max-width: 1200px) {
    .takvim-layout {
        grid-template-columns: 1fr;
    }
    
    .takvim-sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .takvim-cell {
        min-height: 100px;
        padding: 8px;
    }
    
    .cell-event {
        padding: 4px 6px;
    }
    
    .event-time {
        display: none;
    }
    
    .event-title {
        font-size: 10px;
    }
    
    .takvim-sidebar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .takvim-nav-box {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .takvim-nav-box .nav-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .takvim-current-month {
        min-width: auto;
        flex: 1;
    }
    
    .nav-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .takvim-today-btn {
        flex: 1;
        justify-content: center;
    }
    
    .export-dropdown {
        flex: 1;
    }
    
    .export-btn {
        width: 100%;
        justify-content: center;
    }
    
    .export-menu {
        right: auto;
        left: 0;
        min-width: 100%;
    }
    
    .takvim-cell {
        min-height: 60px;
        padding: 5px;
    }
    
    .day-number {
        font-size: 12px;
        width: 24px;
        height: 24px;
    }
    
    .cell-events {
        display: none;
    }
    
    .event-count {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .takvim-day-name {
        padding: 12px 5px;
        font-size: 11px;
    }
    
    .takvim-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .takvim-section {
        padding: 20px 0 50px;
    }
    
    .takvim-current-month .month-name {
        font-size: 18px;
    }
}

