/**
 * Duyurular — Etkileşimli vitrin + zaman çizelgesi
 */

.duyuru-hub {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(165deg, #f8f9fc 0%, #fff 45%, #f4f6f9 100%);
    overflow: hidden;
    overflow-anchor: none;
}

.duyuru-hub__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.duyuru-hub__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.duyuru-hub__orb--1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: rgba(43, 143, 199, 0.2);
}

.duyuru-hub__orb--2 {
    width: 360px;
    height: 360px;
    bottom: -100px;
    left: -60px;
    background: rgba(110, 197, 240, 0.18);
}

.duyuru-hub__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.duyuru-hub__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-maroon);
    margin-bottom: 0.5rem;
}

.duyuru-hub__eyebrow i {
    color: var(--brand-gold);
}

.duyuru-hub__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    line-height: 1.1;
}

.duyuru-hub__subtitle {
    margin: 0;
    max-width: 32rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

.duyuru-hub__header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.duyuru-hub__count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-navy);
    background: rgba(26, 61, 77, 0.08);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
}

.duyuru-hub__all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    background: linear-gradient(135deg, var(--brand-maroon) 0%, var(--brand-maroon-dark) 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(43, 143, 199, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.duyuru-hub__all:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(43, 143, 199, 0.38);
    color: #fff !important;
}

/* Layout */
.duyuru-hub__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr minmax(300px, 380px);
    gap: 1.75rem;
    align-items: stretch;
}

/* Spotlight */
.duyuru-spotlight {
    position: relative;
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow:
        0 4px 6px rgba(15, 40, 53, 0.04),
        0 24px 48px rgba(15, 40, 53, 0.08);
}

.duyuru-spotlight__stage {
    position: relative;
    min-height: 440px;
}

.duyuru-spotlight__pane {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    min-height: 440px;
    animation: duyuruPaneIn 0.45s ease;
}

.duyuru-spotlight__pane[hidden] {
    display: none !important;
}

@keyframes duyuruPaneIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.duyuru-spotlight__visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--brand-navy-dark), var(--brand-maroon-dark));
}

.duyuru-spotlight__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.duyuru-spotlight__pane.is-active .duyuru-spotlight__visual img {
    transform: scale(1.06);
}

.duyuru-spotlight__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 440px;
    font-size: 4rem;
    color: rgba(110, 197, 240, 0.35);
}

.duyuru-spotlight__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 40, 53, 0.2) 0%,
        rgba(15, 40, 53, 0.55) 45%,
        rgba(26, 111, 163, 0.92) 100%
    );
    pointer-events: none;
}

.duyuru-spotlight__content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 2rem 2rem 1.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 55%;
    justify-content: flex-end;
}

.duyuru-spotlight__date-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 72px;
    background: var(--brand-gold);
    color: var(--brand-navy-dark);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    line-height: 1;
}

.duyuru-spotlight__day {
    font-size: 1.65rem;
    font-weight: 800;
}

.duyuru-spotlight__month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.duyuru-spotlight__tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.25rem 0.65rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.duyuru-spotlight__heading {
    margin: 0;
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.duyuru-spotlight__excerpt {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.duyuru-spotlight__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0.7rem 1.35rem;
    background: #fff;
    color: var(--brand-maroon) !important;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.duyuru-spotlight__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    color: var(--brand-maroon-dark) !important;
}

.duyuru-spotlight__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.duyuru-spotlight__arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--brand-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.duyuru-spotlight__arrow:hover {
    background: var(--brand-maroon);
    border-color: var(--brand-maroon);
    color: #fff;
}

.duyuru-spotlight__dots {
    display: flex;
    gap: 0.4rem;
}

.duyuru-spotlight__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.duyuru-spotlight__dot.is-active {
    background: var(--brand-maroon);
    transform: scale(1.25);
}

.duyuru-spotlight__progress {
    height: 3px;
    background: var(--border-color);
}

.duyuru-spotlight__progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-maroon), var(--brand-gold));
    transition: width 0.1s linear;
}

/* Timeline */
.duyuru-timeline {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(15, 40, 53, 0.06);
    overflow: hidden;
}

.duyuru-timeline__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0;
    padding: 1.15rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dark);
    background: linear-gradient(90deg, var(--brand-maroon-dark), var(--brand-navy-dark));
    color: #fff;
}

.duyuru-timeline__hint {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.7;
    font-size: 0.7rem;
}

.duyuru-timeline__track {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    padding: 0.75rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-maroon) transparent;
}

.duyuru-timeline__item {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    width: calc(100% - 1.5rem);
    margin: 0 0.75rem 0.5rem;
    padding: 0.85rem 0.75rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.duyuru-timeline__item:hover {
    background: var(--bg-light);
    border-color: var(--border-color);
}

.duyuru-timeline__item.is-active {
    background: linear-gradient(135deg, rgba(43, 143, 199, 0.08) 0%, rgba(110, 197, 240, 0.1) 100%);
    border-color: rgba(43, 143, 199, 0.25);
    box-shadow: 0 4px 16px rgba(43, 143, 199, 0.08);
}

.duyuru-timeline__line {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
}

.duyuru-timeline__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border-color);
    transition: background 0.2s, transform 0.2s;
}

.duyuru-timeline__item.is-active .duyuru-timeline__dot {
    background: var(--brand-gold);
    box-shadow: 0 0 0 2px var(--brand-maroon);
    transform: scale(1.2);
}

.duyuru-timeline__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
    line-height: 1.1;
}

.duyuru-timeline__date strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-maroon);
}

.duyuru-timeline__date span {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
}

.duyuru-timeline__title {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.duyuru-timeline__go {
    color: var(--text-light);
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.duyuru-timeline__item:hover .duyuru-timeline__go,
.duyuru-timeline__item.is-active .duyuru-timeline__go {
    opacity: 1;
    transform: translateX(2px);
    color: var(--brand-maroon);
}

.duyuru-timeline__footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-maroon);
    text-decoration: none;
    background: var(--bg-light);
    transition: background 0.2s;
}

.duyuru-timeline__footer-link:hover {
    background: var(--brand-gold-muted);
    color: var(--brand-maroon-dark);
}

/* Mobil chip şeridi */
.duyuru-chips {
    display: none;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.duyuru-chips::-webkit-scrollbar {
    display: none;
}

.duyuru-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    max-width: 220px;
}

.duyuru-chip.is-active {
    background: var(--brand-maroon);
    border-color: var(--brand-maroon);
    color: #fff;
}

.duyuru-chip__num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.duyuru-chip.is-active .duyuru-chip__num {
    background: rgba(255, 255, 255, 0.2);
}

.duyuru-chip__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 991px) {
    .duyuru-hub__layout {
        grid-template-columns: 1fr;
    }

    .duyuru-timeline {
        order: 2;
    }

    .duyuru-timeline__track {
        max-height: 280px;
    }

    .duyuru-timeline__hint {
        display: none;
    }

    .duyuru-chips {
        display: flex;
    }

    .duyuru-spotlight__stage,
    .duyuru-spotlight__pane {
        min-height: 400px;
    }
}

@media (max-width: 575px) {
    .duyuru-hub {
        padding: 3rem 0;
    }

    .duyuru-hub__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .duyuru-hub__header-actions {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .duyuru-spotlight__content {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .duyuru-timeline__item {
        grid-template-columns: auto 1fr auto;
    }

    .duyuru-timeline__line {
        display: none;
    }

    .duyuru-timeline__date {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .duyuru-spotlight__pane {
        animation: none;
    }

    .duyuru-spotlight__pane.is-active .duyuru-spotlight__visual img {
        transform: none;
    }
}
