/* Akademik Takvim CSS - Namespace ile çakışma önlenir */

/* Desktop/Tablet Görünümü */
.academic-calendar-container {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 0;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(71, 85, 105, 0.08);
    overflow: hidden;
    align-items: start;
    border: 1px solid #e2e8f0;
    font-family: "Montserrat", sans-serif;
    color: #334155;
}

.academic-calendar-main {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

    .academic-calendar-main::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent 40%, rgba(28, 69, 139, 0.02) 50%, transparent 60%);
        transform: rotate(-45deg);
        pointer-events: none;
    }


.academic-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.academic-calendar-title {
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
}

.academic-calendar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.academic-calendar-nav-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #64748b;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 600;
}

    .academic-calendar-nav-btn:hover {
        background: var(--selcuk-blue);
        border-color: var(--selcuk-blue);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(28, 69, 139, 0.3);
    }

.academic-calendar-month-year {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    min-width: 140px;
    text-align: center;
}

.academic-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.academic-calendar-weekday {
    background: #f1f5f9;
    color: #64748b;
    padding: 15px 10px;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.025em;
    border: 1px solid #e2e8f0;
}

.academic-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    position: relative;
    z-index: 2;
}

.academic-calendar-day {
    background: #ffffff;
    border: 2px solid #f1f5f9;
    color: #475569;
    padding: 15px 8px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .academic-calendar-day:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(71, 85, 105, 0.1);
    }

    .academic-calendar-day.academic-calendar-today {
        background: #ffffff;
        color: var(--selcuk-blue);
        border-color: var(--selcuk-blue);
        box-shadow: 0 4px 20px rgba(28, 69, 139, 0.15);
        font-weight: 700;
    }

    .academic-calendar-day.academic-calendar-selected {
        background: var(--selcuk-blue);
        border-color: var(--selcuk-blue-hover);
        color: white;
        box-shadow: 0 8px 25px rgba(28, 69, 139, 0.3);
        transform: translateY(-2px);
    }

    .academic-calendar-day.academic-calendar-has-event {
        border-color: var(--selcuk-blue);
        background: #f0fdff;
        color: var(--selcuk-blue);
        font-weight: 700;
    }

.academic-calendar-event-indicators {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    justify-content: center;
    z-index: 1;
}

.academic-calendar-event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.8);
    opacity: 0.4;
    transition: all 0.3s ease;
}

    /* Etkinlik var ama seçili değil - yarı parlaklık */
    .academic-calendar-event-dot.has-event {
        opacity: 0.8;
    }

    .academic-calendar-event-dot.academic.has-event {
        background-color: #3b82f6;
        box-shadow: 0 1px 4px rgba(59, 130, 246, 0.3);
    }

    .academic-calendar-event-dot.social.has-event {
        background-color: #10b981;
        box-shadow: 0 1px 4px rgba(16, 185, 129, 0.3);
    }

    .academic-calendar-event-dot.scientific.has-event {
        background-color: #f59e0b;
        box-shadow: 0 1px 4px rgba(245, 158, 11, 0.3);
    }

    /* Seçili gün - tam parlaklık */
    .academic-calendar-event-dot.has-event.active {
        opacity: 1;
        transform: scale(1.2);
    }

    .academic-calendar-event-dot.academic.has-event.active {
        background-color: #3b82f6;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
    }

    .academic-calendar-event-dot.social.has-event.active {
        background-color: #10b981;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
    }

    .academic-calendar-event-dot.scientific.has-event.active {
        background-color: #f59e0b;
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
    }

/* Sidebar */
.academic-calendar-sidebar {
    padding: 40px 30px;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e2e8f0;
    height: auto;
    min-height: 100%;
    overflow: hidden;
}

.academic-calendar-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.academic-calendar-sidebar-title {
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
}

.academic-calendar-sidebar-icon {
    width: 24px;
    height: 24px;
    fill: var(--selcuk-blue);
}

.academic-calendar-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-shrink: 0;
}

.academic-calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.academic-calendar-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

    .academic-calendar-legend-dot.academic-calendar-academic {
        background: #3b82f6;
    }

    .academic-calendar-legend-dot.academic-calendar-event {
        background: #10b981;
    }

    .academic-calendar-legend-dot.academic-calendar-scientific {
        background: #f59e0b;
    }

.academic-calendar-events {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    flex: 1;
    padding-right: 10px;
    max-height: 400px;
}

    .academic-calendar-events::-webkit-scrollbar {
        width: 8px;
    }

    .academic-calendar-events::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
        margin: 4px 0;
    }

    .academic-calendar-events::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
        border: 2px solid #fafbfc;
    }

        .academic-calendar-events::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

.academic-calendar-event-item {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.06);
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--selcuk-blue);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

    .academic-calendar-event-item.border-academic {
        border-left-color: #3b82f6;
    }

    .academic-calendar-event-item.border-social {
        border-left-color: #10b981;
    }

    .academic-calendar-event-item.border-scientific {
        border-left-color: #f59e0b;
    }

    .academic-calendar-event-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(71, 85, 105, 0.12);
    }

    /* Tıklanabilir etkinlik kartları için özel stiller */
    .academic-calendar-event-item.academic-calendar-event-clickable {
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }

        .academic-calendar-event-item.academic-calendar-event-clickable::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, transparent 0%, rgba(28, 69, 139, 0.02) 50%, transparent 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .academic-calendar-event-item.academic-calendar-event-clickable:hover::before {
            opacity: 1;
        }

        .academic-calendar-event-item.academic-calendar-event-clickable:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(71, 85, 105, 0.15);
            border-left-width: 5px;
        }

.academic-calendar-event-date {
    color: var(--selcuk-blue);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.academic-calendar-event-item.border-academic .academic-calendar-event-date {
    color: #3b82f6;
}

.academic-calendar-event-item.border-social .academic-calendar-event-date {
    color: #10b981;
}

.academic-calendar-event-item.border-scientific .academic-calendar-event-date {
    color: #f59e0b;
}

.academic-calendar-event-title {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.academic-calendar-event-location {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.academic-calendar-event-type {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 12px;
}

    .academic-calendar-event-type.academic-calendar-academic {
        background: #dbeafe;
        color: #1d4ed8;
        border: 1px solid #bfdbfe;
    }

    .academic-calendar-event-type.academic-calendar-social {
        background: #dcfce7;
        color: #166534;
        border: 1px solid #bbf7d0;
    }

    .academic-calendar-event-type.academic-calendar-scientific {
        background: #fef3c7;
        color: #b45309;
        border: 1px solid #fcd34d;
    }

/* Link göstergesi stili */
.academic-calendar-event-link-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.academic-calendar-event-item.academic-calendar-event-clickable:hover .academic-calendar-event-link-indicator {
    opacity: 1;
    color: var(--selcuk-blue);
}

.academic-calendar-event-item.border-academic.academic-calendar-event-clickable:hover .academic-calendar-event-link-indicator {
    color: #3b82f6;
}

.academic-calendar-event-item.border-social.academic-calendar-event-clickable:hover .academic-calendar-event-link-indicator {
    color: #10b981;
}

.academic-calendar-event-item.border-scientific.academic-calendar-event-clickable:hover .academic-calendar-event-link-indicator {
    color: #f59e0b;
}

.academic-calendar-event-link-indicator svg {
    transition: transform 0.3s ease;
}

.academic-calendar-event-item.academic-calendar-event-clickable:hover .academic-calendar-event-link-indicator svg {
    transform: translateX(2px) translateY(-2px);
}

.academic-calendar-no-events {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.06);
    border: 1px solid #e2e8f0;
    text-align: center;
    color: #64748b;
    font-style: italic;
    flex-shrink: 0;
}

/* Mobil Görünümü */
.academic-calendar-mobile-list-view {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(71, 85, 105, 0.08);
    border: 1px solid #e2e8f0;
    font-family: "Montserrat", sans-serif;
    color: #334155;
}

.academic-calendar-mobile-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 20px;
    margin: -20px -20px 20px -20px;
    border-radius: 24px 24px 0 0;
    color: #1e293b;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid #e2e8f0;
}

    .academic-calendar-mobile-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent 40%, rgba(28, 69, 139, 0.02) 50%, transparent 60%);
        transform: rotate(-45deg);
        pointer-events: none;
    }

.academic-calendar-mobile-title {
    font-size: 20px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    letter-spacing: -0.025em;
    margin: 0;
}

.academic-calendar-mobile-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    position: relative;
    z-index: 2;
}

.academic-calendar-mobile-nav-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #64748b;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
}

    .academic-calendar-mobile-nav-btn:hover {
        background: var(--selcuk-blue);
        border-color: var(--selcuk-blue);
        color: white;
        transform: scale(1.05);
    }

.academic-calendar-mobile-month-year {
    font-size: 16px;
    font-weight: 600;
    min-width: 120px;
    color: #1e293b;
}

.academic-calendar-mobile-events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.academic-calendar-mobile-event-item {
    background: #fafbfc;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--selcuk-blue);
    transition: all 0.3s ease;
    position: relative;
}

    .academic-calendar-mobile-event-item.border-academic {
        border-left-color: #3b82f6;
    }

    .academic-calendar-mobile-event-item.border-social {
        border-left-color: #10b981;
    }

    .academic-calendar-mobile-event-item.border-scientific {
        border-left-color: #f59e0b;
    }

    .academic-calendar-mobile-event-item.border-academic .academic-calendar-event-date {
        color: #3b82f6;
    }

    .academic-calendar-mobile-event-item.border-social .academic-calendar-event-date {
        color: #10b981;
    }

    .academic-calendar-mobile-event-item.border-scientific .academic-calendar-event-date {
        color: #f59e0b;
    }

    .academic-calendar-mobile-event-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(71, 85, 105, 0.12);
        background: white;
    }

    /* Mobil tıklanabilir kartlar için özel stiller */
    .academic-calendar-mobile-event-item.academic-calendar-event-clickable {
        cursor: pointer;
        overflow: hidden;
    }

        .academic-calendar-mobile-event-item.academic-calendar-event-clickable::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, transparent 0%, rgba(28, 69, 139, 0.02) 50%, transparent 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .academic-calendar-mobile-event-item.academic-calendar-event-clickable:hover::before {
            opacity: 1;
        }

        .academic-calendar-mobile-event-item.academic-calendar-event-clickable:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(71, 85, 105, 0.15);
            border-left-width: 5px;
            background: white;
        }

/* Responsive Design */
@media (max-width: 768px) {
    .academic-calendar-container {
        display: none;
    }

    .academic-calendar-mobile-list-view {
        display: block;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .academic-calendar-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .academic-calendar-main {
        padding: 30px;
    }

    .academic-calendar-sidebar {
        padding: 30px;
        height: auto;
        max-height: 60vh;
    }

    .academic-calendar-title {
        font-size: 20px;
    }
}
