﻿/* === Armada Eğitim Takvimi — Temiz Tema === */

/* ---- Renk değişkenleri ---- */
html, body, * {
    font-family: "Satoshi", system-ui, -apple-system, Segoe UI, Roboto, Arial !important;
}
@media (max-width: 426px) {
    html {
        width: fit-content !important;
    }
    .ae-tabs{
        display:none !important;
    }
    .ae-topbar .ae-legend {
        display: none !important;
    }

    .ae-legend.ae-legend-mobile {
        display: flex !important;
        margin-top: 8px;
        margin-bottom: 8px;
    }
    .ae-legend.ae-legend-mobile span {
        text-align:center;
    }
        .ae-legend.ae-legend-mobile i {
            margin-right: 3px;
        }
}
@media (max-width: 376px) {
    .ae-legend.ae-legend-mobile .res {
        display: block !important;
    }
    .ae-legend.ae-legend-mobile .nores {
        display: none !important;
    }
}

@media (min-width: 427px) {
    .ae-legend.ae-legend-mobile {
        display: none !important;
    }
}
:root {
    --ae-blue: #00416B; /* Webinar */
    --ae-purple: #7F2346; /* Fuar */
    --ae-pink: #C40D3C; /* Workshop */
    --ae-red: #E1251B; /* Teknik Eğitim */
    --ae-orange: #EE7623; /* Etkinlik */

    --ae-ink: #1f2328;
    --ae-muted: #77808d;
    --ae-line: #eceef2;
    --ae-card: #f7f8fa;
}

/* ---- FullCalendar temel font & sınırlar ---- */
.fc {
    font-family: "Satoshi",system-ui,-apple-system,Segoe UI,Roboto,Arial
}

    .fc .fc-scrollgrid,
    .fc-theme-standard td,
    .fc-theme-standard th {
        border-color: var(--ae-line)
    }

    .fc .fc-col-header-cell-cushion {
        font-weight: 800;
        color: #55606d
    }

    .fc .fc-daygrid-day-number {
        font-weight: 800;
        color: #8b94a0;
        padding: 6px 8px
    }

    .fc .fc-highlight {
        background: rgba(255,214,102,.25)
    }
    /* Ay dışı günler: açık çapraz tarama */
    .fc .fc-day-other .fc-daygrid-day-frame {
        background: repeating-linear-gradient(135deg,rgba(0,0,0,.035) 0 6px,transparent 6px 12px),#fafafa;
    }

/* ---- Hücreler sabit kalsın, +N alta sabitlensin ---- */
/*.fc-daygrid-day-frame {
    position: relative;
    padding-bottom: 22px
}

.fc-daygrid-day-events {
    overflow: hidden
}

.fc-daygrid-day-bottom {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 4px;
    margin: 0;
    padding: 0
}*/

/* ---- “+N Etkinlik” linki ---- */
.fc .fc-daygrid-more-link {
    display: block;
    text-align: center;
    padding: 6px 8px;
    margin-top: 3px;
    border: 1px dashed var(--ae-line);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
    color: #2a2f36;
    background: #fff
}

/* ---- Etkinlik chip (ay & hafta) ---- */
.fc-daygrid-event,
.fc-timegrid-event {
    background: transparent;
    border: none
}

    .fc-h-event .fc-event-main,
    .fc-timegrid-event .fc-event-main {
        padding: 0
    }

.fc .fc-daygrid-event-dot {
    display: none
}

.ae-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--ae-line);
    border-radius: 14px;
    padding: 6px 10px;
    margin: 2px 0;
    box-shadow: 0 1px 0 rgba(0,0,0,.03)
}

    .ae-chip:before {
        content: "";
        width: 6px;
        min-width: 6px;
        height: 18px;
        min-height: 14px;
        border-radius: 6px;
        background: var(--chip);
        flex-shrink: 0; /* Daralmayı engelle */
        display: inline-block;
    }

@media (max-width: 480px) {
    .ae-chip:before {
        height: 14px;
        min-height: 12px;
    }
}


    .ae-chip .t {
        font-weight: 800;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px
    }

    .ae-chip .m {
        font-size: 11px;
        color: #76808d
    }

/* ---- Popover ---- */
.fc-theme-standard .fc-popover {
    border-radius: 14px;
    border-color: var(--ae-line)
}

/* ---- Özel üst bar (legend + butonlar) ---- */
.ae-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 4px 10px
}

.ae-left {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap
}

.ae-page-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    font-family: "Satoshi",system-ui,-apple-system,Segoe UI,Roboto,Arial;
}

.ae-legend {
    display: flex;
    gap: 18px;
    align-items: center
}

    .ae-legend span {
        font-size: 14px;
        color: #2a2f36
    }

    .ae-legend i {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--c);
        margin-right: 8px
    }

.ae-right {
    display: flex;
    gap: 12px;
    align-items: center
}

.ae-nav {
    display: flex;
    gap: 6px
}

.ae-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--ae-line);
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1
}

.ae-tabs {
    display: flex;
    gap: 8px
}

.ae-tab {
    border: none;
    border-radius: 14px;
    padding: 12px 12px !important;
    font-weight: 800;
    cursor: pointer;
    background: #f0f2f5
}

    .ae-tab.is-active {
        background: #101114;
        color: #fff
    }

/* ---- Modal ---- */
.ae-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.28);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999
}

.ae-modal {
    background: #fff;
    border: 1px solid var(--ae-line);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    overflow: hidden;
    padding: 20px;
}

.ae-modal-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px;
    padding-bottom: 0px;
}

.ae-head-left {
    display: flex;
    align-items: center;
    gap: 10px
}

.ae-dot {
    width: 8px;
    min-width: 6px;
    height: 24px;
    min-height: 18px;
    border-radius: 6px;
    background: var(--chip, #00416B);
    flex-shrink: 0;
    display: inline-block;
    margin-right: 10px;
}

@media (max-width: 480px) {
    .ae-dot {
        height: 16px;
        min-height: 12px;
    }
}

.ae-title {
    font-size: 20px;
    font-weight: 900;
    margin: 0
}

.ae-x {
    margin-left: auto;
    border: 1px solid var(--ae-line);
    background: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1
}

.ae-body {
    padding: 18px;
    display: grid;
    gap: 14px
}

.ae-when {
    color: gray;
    font-weight:600;
}

.ae-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
    margin-top:15px;
}

    .ae-row .k {
        font-size: 13px;
        font-weight: 800;
        color: #49505a
    }

    .ae-row .v {
        font-size: 14px
    }

.ae-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px
}

.ae-btn {
    border: none;
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 900;
    text-decoration: none;
    display: inline-block;
}

@media(max-width:720px) {
    .ae-row {
        grid-template-columns: 1fr
    }
}

/* === Referans tasarım farkları için ince ayar === */

/* Sol blok: başlık üstte, legend hemen ALTINDA */
.ae-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px; /* başlık-legend arasına küçük boşluk */
}

/* Takvim kartı: yuvarlatılmış köşe + gölge + taşma gizli */
.ae-card {
    background: #fff;
    border: 1px solid var(--ae-line);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
    overflow: hidden; /* köşe yuvarlağı FullCalendar gridine uygula */
}

    /* Grid başlık şeridi (Pzt–Paz) */
    .ae-card .fc .fc-col-header {
        background: #f8f9fb; /* çok açık gri zemin */
        border-bottom: 1px solid var(--ae-line);
    }

    .ae-card .fc .fc-col-header-cell {
        padding: 10px 0; /* başlık yüksekliği */
    }

    /* Kartın içindeki tüm çizgi rengi (uyum) */
    .ae-card .fc .fc-scrollgrid,
    .ae-card .fc-theme-standard td,
    .ae-card .fc-theme-standard th {
        border-color: var(--ae-line);
    }

    /* Kart içine girince day-number rengi biraz daha yumuşak kalsın */
    .ae-card .fc .fc-daygrid-day-number {
        color: #8b94a0;
    }

    /* Ay dışı günler: mevcut çapraz taramayı kart içinde de koru */
    .ae-card .fc .fc-day-other .fc-daygrid-day-frame {
        background: repeating-linear-gradient( 135deg, rgba(0,0,0,.035) 0 6px, transparent 6px 12px ), #fafafa;
    }

    /* Bugün vurgusu referans sarısı gibi yumuşak olsun */
    .ae-card .fc .fc-day-today {
        background: rgba(255, 214, 102, .25);
    }

/* Üst bar ile kart arasında referanstaki gibi küçük bir boşluk bırak */
.ae-topbar {
    margin-bottom: 8px;
}

/* Sağdaki Today/Week/Month kapsülleri referans gibi kompakt dursun (zaten vardı, netleştirelim) */
.ae-tab {
    padding: 7px 11px;
    border-radius: 14px;
}

    .ae-tab.is-active {
        background: #101114;
        color: #fff;
    }

/* Sayfa yüksekliği ve dikey scroll'u kapat */
html, body {
    height: 100%;
}

body {
    margin: 0;
    overflow: hidden;
}

/* Kart/takvim alanı esnesin (içeride contentHeight ile eşleşecek) */
.ae-card {
    height: calc(100vh);
}
/* topbar yaklaşık yüksekliği */

/* Takvim etrafına boşluk */
#calendar {
    padding: 0 20px; /* sağ ve sol 20px boşluk */
    box-sizing: border-box;
    height:inherit;
}

/* === Sabit hücre yüksekliği === */
:root {
    --ae-cell-h: 120px; /* Hücre yüksekliği (istediğin sabit değer) */
}
.ae-daylist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.ae-daylist-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    padding: 6px 12px;
    box-shadow: 0 1px 2px #0001;
    font-size: 15px;
}

.ae-daylist-chip {
    display: inline-block;
    width: 8px;
    height: 24px;
    border-radius: 6px;
    margin-right: 10px;
}

.ae-daylist-title {
    font-weight: 700;
    margin-right: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.ae-daylist-type {
    color: #888;
    font-size: 14px;
    font-weight: 400;
    margin-left: auto;
    white-space: nowrap;
}
.fc-daygrid-day {
    height: var(--ae-cell-h, 120px);
    max-height: var(--ae-cell-h, 120px);
    min-height: var(--ae-cell-h, 120px);
}
.ae-person-icon {
    vertical-align: middle;
    margin-right: 6px;
    color: #666;
}

.ae-person-row {
    font-size: 18px;
    font-weight: 500;
    color:gray;
}

.ae-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    gap: 8px;
}
.fc .fc-daygrid-day-number {
    font-weight: 800;
    color: #8b94a0;
    padding: 6px 8px;
    text-align: left; /* Sola hizala */
    justify-content: flex-start; /* Flex ise gerekebilir */
    width: 100%; /* Tüm kutucuğu kaplasın */
    display: block; /* Gerekirse block yap */
}
.ae-deadline-note {
    display: block;
    margin-top: 18px;
    font-size: 13px;
    color: #888;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.ae-summary {
    font-size: 15px;
    color: dimgray;
    margin: 14px 0 10px 0;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
}




