/* =====================================================
   Öğretmen Gündemi — Design System
   Swiss Minimalist × Glassmorphism
   ===================================================== */

:root {
    --glass-bg-light: rgba(255, 255, 255, 0.72);
    --glass-bg-dark: rgba(18, 18, 18, 0.72);
    --glass-border-light: rgba(0, 0, 0, 0.06);
    --glass-border-dark: rgba(255, 255, 255, 0.06);
    --brand: #3B82F6;
    --gold: #FACC15;
}

/* ---- GLASS EFFECTS ---- */
.glass-header {
    background: var(--glass-bg-light);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}
.dark .glass-header {
    background: var(--glass-bg-dark);
}

.glass-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
}
.dark .glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border-dark);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* ---- SCROLLBAR ---- */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ---- NEWS CARD ---- */
.news-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.08);
    border-color: var(--brand);
}
.dark .news-card:hover {
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.4);
    border-color: rgba(59,130,246,0.3);
}

/* ---- NEW ITEM INDICATOR ---- */
.new-item-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(250,204,21,0.6);
    animation: glow-pulse 2s ease-in-out infinite;
}
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(250,204,21,0.4); }
    50% { box-shadow: 0 0 18px rgba(250,204,21,0.8); }
}

/* ---- FILTER BUTTONS ---- */
.filter-btn {
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(0,0,0,0.08);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    color: inherit;
}
.dark .filter-btn {
    border-color: rgba(255,255,255,0.08);
}
.filter-btn:hover {
    background: rgba(0,0,0,0.04);
}
.dark .filter-btn:hover {
    background: rgba(255,255,255,0.04);
}
.filter-btn.active {
    background: #111827;
    color: white;
    border-color: #111827;
}
.dark .filter-btn.active {
    background: white;
    color: #111827;
    border-color: white;
}

/* ---- CARD IMAGE ---- */
.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

/* ---- PROSE (Modal Content) ---- */
.prose p { margin-bottom: 1em; }
.prose a { color: var(--brand); text-decoration: underline; }

/* ---- MOBILE SEARCH ANIMATION ---- */
#mobileSearchBar {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#mobileSearchBar.show {
    max-height: 80px;
    opacity: 1;
}

/* ---- SKELETON SHIMMER ---- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton-card .animate-pulse > div {
    background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.06) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.dark .skeleton-card .animate-pulse > div {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ---- MODAL ---- */
#newsModal .prose { font-size: 0.9375rem; line-height: 1.7; }

/* ---- CASCADE SLIDER ---- */
.og-slider { position: relative; width: 100%; height: 320px; overflow: hidden; }
.og-slider__track { position: relative; width: 100%; height: 100%; }
.og-slider__item {
    position: absolute; top: 50%; left: 50%;
    transform: translateX(-50%) translateY(-50%) scale(0.3);
    width: 380px; max-width: 85vw;
    opacity: 0; z-index: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.og-slider__item.now {
    transform: translateX(-50%) translateY(-50%) scale(1);
    opacity: 1; z-index: 5;
}
.og-slider__item.prev {
    transform: translateX(-130%) translateY(-50%) scale(0.78);
    opacity: 0.7; z-index: 2; filter: brightness(0.85);
}
.og-slider__item.next {
    transform: translateX(30%) translateY(-50%) scale(0.78);
    opacity: 0.7; z-index: 2; filter: brightness(0.85);
}
.og-slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; background: rgba(255,255,255,0.9); border: none;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.2s;
}
.dark .og-slider__arrow { background: rgba(30,30,30,0.9); color: #fff; }
.og-slider__arrow:hover { transform: translateY(-50%) scale(1.1); }
.og-slider__arrow--left { left: 8px; }
.og-slider__arrow--right { right: 8px; }
.og-slider__dots { position: absolute; bottom: 8px; width: 100%; display: flex; justify-content: center; gap: 6px; z-index: 10; }
.og-slider__dot {
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid var(--gold); background: transparent;
    cursor: pointer; transition: all 0.3s;
}
.og-slider__dot.active { background: var(--gold); }
@media (max-width: 640px) {
    .og-slider { height: 280px; }
    .og-slider__item { width: 300px; }
    .og-slider__item.prev { transform: translateX(-110%) translateY(-50%) scale(0.6); opacity: 0.5; }
    .og-slider__item.next { transform: translateX(10%) translateY(-50%) scale(0.6); opacity: 0.5; }
    .og-slider__arrow { width: 36px; height: 36px; }
}
