/* Ortak: şerit, header animasyonu, çekmece, reveal */
@keyframes marquee-x {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.marquee-track {
    display: flex;
    width: max-content;
    --marquee-duration: 38s;
    animation: marquee-x var(--marquee-duration) linear infinite;
    animation-delay: calc(var(--marquee-duration) / -2);
    will-change: transform;
    backface-visibility: hidden;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes bar-drop {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.anim-bar-in { animation: bar-drop 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@keyframes nav-in {
    from { transform: translateY(-120%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.anim-nav-in {
    animation: nav-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
    opacity: 0;
}

/* Masaüstü: geniş, sade menü (segment / kapsül yok — düz metin + alt çizgi) */
.desktop-nav {
    min-width: 0;
}
.desktop-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.2rem;
    /* Laptop (lg): biraz daha küçük; geniş ekranda kademeli büyür */
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: rgb(71 85 105);
    text-decoration: none;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
@media (min-width: 1280px) {
    .desktop-nav-link {
        gap: 0.3rem;
        padding: 0.55rem 0.28rem;
        font-size: 0.875rem;
    }
}
@media (min-width: 1536px) {
    .desktop-nav-link {
        gap: 0.35rem;
        padding: 0.625rem 0.35rem;
        font-size: 0.9375rem;
    }
}
.desktop-nav-link:hover {
    color: rgb(15 23 42);
}
.desktop-nav-link.is-active {
    color: rgb(21 128 61);
    font-weight: 600;
    border-bottom-color: rgb(34 197 94);
}
button.desktop-nav-link {
    -webkit-appearance: none;
    appearance: none;
}
.desktop-nav-link svg {
    width: 0.9375rem;
    height: 0.9375rem;
}
@media (min-width: 1280px) {
    .desktop-nav-link svg {
        width: 1rem;
        height: 1rem;
    }
}
@media (min-width: 1536px) {
    .desktop-nav-link svg {
        width: 1.125rem;
        height: 1.125rem;
    }
}

/* Mobil çekmece: aktif sayfa */
.mobile-drawer-link.is-active {
    border-color: rgb(187 247 208 / 0.95) !important;
    background: linear-gradient(90deg, rgb(220 252 231 / 0.65), rgb(248 250 252 / 0.98)) !important;
    box-shadow: inset 3px 0 0 0 rgb(34 197 94);
}
.mobile-drawer-link.is-active .flex-1 {
    color: rgb(21 128 61);
}

.js-reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }

@keyframes float-wa {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.anim-float-wa { animation: float-wa 2.8s ease-in-out infinite; }

#mobileDrawer {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
}
#mobileDrawer.is-open {
    opacity: 1;
    pointer-events: auto;
}
#mobileDrawer .mobile-drawer-panel {
    transform: translateX(-105%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
#mobileDrawer.is-open .mobile-drawer-panel {
    transform: translateX(0);
}
#mobileDrawer .mobile-drawer-backdrop {
    opacity: 0;
    transition: opacity 0.32s ease;
}
#mobileDrawer.is-open .mobile-drawer-backdrop {
    opacity: 1;
}

/* Mobil çekmece: öne çıkan bağışlar yatay kaydırma */
.drawer-donations-scroll {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.drawer-donations-scroll::-webkit-scrollbar {
    display: none;
}
.drawer-donation-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.drawer-donation-card:active {
    transform: scale(0.98);
}

/* Projeler: kategori şeridi — tek satır, sağa kaydırma */
/* Mobilde dikey sayfa kaydırmayı korumak: snap kapalı (HTML'de md:), touch iki yönlü; x-contain sadece md+ */
.projeler-kategori-scroll {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    overscroll-behavior-y: auto;
}
@media (min-width: 768px) {
    .projeler-kategori-scroll {
        overscroll-behavior-x: contain;
    }
}
.projeler-kategori-scroll::-webkit-scrollbar {
    display: none;
}

/* Footer */
.site-footer a:focus-visible {
    outline: 2px solid rgb(34 197 94);
    outline-offset: 2px;
    border-radius: 2px;
}
.site-footer a {
    text-underline-offset: 3px;
}
.footer-iyzico-band:focus-visible {
    outline: 2px solid rgb(34 197 94);
    outline-offset: 3px;
    border-radius: 0.5rem;
}

body.volunteer-popup-open {
    overflow: hidden;
}

/* Anasayfa — gönüllü karşılama popup */
.volunteer-welcome-popup {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.volunteer-welcome-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.volunteer-welcome-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
}
.volunteer-welcome-popup__card {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 22rem);
    aspect-ratio: 1 / 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 42%, #eff6ff 100%);
    padding: 2rem 1.75rem 1.75rem;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(46, 134, 193, 0.12),
        0 25px 50px -12px rgba(15, 23, 42, 0.45),
        0 0 80px rgba(46, 134, 193, 0.15);
    transform: scale(0.92) translateY(12px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.volunteer-welcome-popup.is-open .volunteer-welcome-popup__card {
    transform: scale(1) translateY(0);
}
.volunteer-welcome-popup__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 100% 0%, rgba(106, 43, 134, 0.12), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(46, 134, 193, 0.14), transparent 50%);
    pointer-events: none;
}
.volunteer-welcome-popup__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    display: flex;
    height: 2.25rem;
    width: 2.25rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    line-height: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.volunteer-welcome-popup__close-icon {
    display: block;
    flex-shrink: 0;
}
.volunteer-welcome-popup__close:hover {
    background: #fff;
    color: #0f172a;
    transform: scale(1.05);
}
.volunteer-welcome-popup__close:focus-visible {
    outline: 2px solid #2e86c1;
    outline-offset: 2px;
}
.volunteer-welcome-popup__inner {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}
.volunteer-welcome-popup__logo {
    display: block;
    width: auto;
    max-width: 7.5rem;
    height: 3rem;
    object-fit: contain;
    margin-bottom: 0.25rem;
}
.volunteer-welcome-popup__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 9999px;
    border: 1px solid rgba(46, 134, 193, 0.25);
    background: rgba(255, 255, 255, 0.85);
    padding: 0.3rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1d6fa3;
}
.volunteer-welcome-popup__title {
    margin: 0;
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.volunteer-welcome-popup__slogan {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    color: #2e86c1;
}
.volunteer-welcome-popup__text {
    margin: 0;
    max-width: 16rem;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #64748b;
}
.volunteer-welcome-popup__cta {
    margin-top: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #2e86c1 0%, #6a2b86 100%);
    padding: 0.7rem 1.35rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(46, 134, 193, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.volunteer-welcome-popup__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(46, 134, 193, 0.4);
    color: #fff;
}

/* YouTube Shorts — anasayfa yatay slider */
.youtube-shorts-slider {
    -webkit-tap-highlight-color: transparent;
}
.youtube-shorts-modal.is-open {
    display: flex !important;
}
.youtube-shorts-modal[hidden] {
    display: none !important;
}
.youtube-shorts-play:focus-visible .absolute.inset-0.flex {
    opacity: 1;
}

/* Kadromuz — organizasyon şeması (dinamik üye sayısına uyumlu) */
.org-chart-panel {
    background-image:
        radial-gradient(circle at 50% 0%, rgb(220 252 231 / 0.35), transparent 55%),
        linear-gradient(180deg, rgb(248 250 252 / 0.5), transparent 40%);
}
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.org-tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.org-tier + .org-tier {
    margin-top: 0.25rem;
}
.org-tier-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.65rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgb(21 128 61);
    background: rgb(240 253 244);
    border: 1px solid rgb(187 247 208 / 0.9);
    border-radius: 9999px;
}
.org-tier-label__dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: rgb(34 197 94);
}
.org-tier-bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0.25rem 0 1rem;
}
.org-tier-bridge__line {
    width: 2px;
    height: 1.25rem;
    background: linear-gradient(180deg, rgb(203 213 225), rgb(134 239 172 / 0.85));
    border-radius: 1px;
}
.org-tier-bridge__node {
    width: 0.5rem;
    height: 0.5rem;
    margin: 0.15rem 0;
    border-radius: 9999px;
    background: rgb(34 197 94);
    box-shadow: 0 0 0 3px rgb(220 252 231);
}
.org-tier-rail {
    width: min(100%, calc(var(--org-member-count, 3) * 5.5rem));
    max-width: 100%;
    height: 2px;
    margin: 0 auto 0.85rem;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgb(203 213 225) 15%,
        rgb(134 239 172 / 0.75) 50%,
        rgb(203 213 225) 85%,
        transparent 100%
    );
    border-radius: 1px;
}
.org-tier-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.65rem 0.75rem;
    width: 100%;
    margin: 0 auto;
}
.org-tier-grid__cell {
    flex: 0 0 7.75rem;
    width: 7.75rem;
    max-width: 10.5rem;
}
.org-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100%;
    padding: 0.6rem 0.45rem 0.7rem;
    text-align: center;
    background: rgb(248 250 252 / 0.9);
    border: 1px solid rgb(226 232 240 / 0.95);
    border-radius: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.org-node:hover {
    border-color: rgb(187 247 208);
    box-shadow: 0 8px 20px -8px rgb(34 197 94 / 0.35);
    transform: translateY(-2px);
}
.org-node__avatar-wrap {
    margin-bottom: 0.45rem;
}
.org-node__avatar,
.org-node__avatar-img {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    object-fit: cover;
}
.org-node__avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgb(255 255 255);
    letter-spacing: 0.04em;
}
.org-node__name {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: rgb(15 23 42);
}
.org-node__role {
    margin-top: 0.2rem;
    font-size: 0.625rem;
    line-height: 1.4;
    color: rgb(100 116 139);
    hyphens: auto;
    overflow-wrap: anywhere;
}
@media (min-width: 480px) {
    .org-tier-grid {
        gap: 0.75rem 0.85rem;
    }
    .org-tier-grid__cell {
        flex-basis: 8.5rem;
        width: 8.5rem;
    }
    .org-node__avatar,
    .org-node__avatar-img {
        width: 3rem;
        height: 3rem;
    }
    .org-node__name {
        font-size: 0.8125rem;
    }
    .org-node__role {
        font-size: 0.6875rem;
    }
}

/* Gönüllü başvuru formu */
.volunteer-form__section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgb(241 245 249);
}
.volunteer-form__section:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}
.volunteer-form__legend {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: rgb(15 23 42);
}
.volunteer-form__legend-num {
    display: inline-flex;
    height: 1.75rem;
    width: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgb(46 134 193), rgb(106 43 134));
    font-size: 0.75rem;
    font-weight: 800;
    color: rgb(255 255 255);
}
.volunteer-form__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgb(51 65 85);
}
.volunteer-form__input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid rgb(203 213 225);
    background: rgb(248 250 252 / 0.6);
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    color: rgb(15 23 42);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.volunteer-form__input:focus {
    border-color: rgb(93 173 226);
    background: rgb(255 255 255);
    box-shadow: 0 0 0 3px rgb(46 134 193 / 0.2);
}
.volunteer-form__input:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}
textarea.volunteer-form__input {
    resize: vertical;
    min-height: 5.5rem;
}
.volunteer-form__error {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: rgb(190 18 60);
}

/* Anasayfa slider tipografi — Google Fonts */
#slider .slide-hero-title {
    font-family: "Fraunces", "Source Serif 4", Georgia, serif;
    font-weight: 600;
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 50, "WONK" 0.4;
    letter-spacing: -0.015em;
    text-wrap: balance;
}
#slider .slide-hero-desc,
.faaliyet-desc,
.haber-icerik,
.haber-icerik p,
.haber-icerik li {
    font-family: "Source Sans 3", "Plus Jakarta Sans", system-ui, sans-serif !important;
    font-weight: 400;
    letter-spacing: 0.005em;
    line-height: 1.7;
    text-wrap: pretty;
}
.haber-icerik.prose,
.haber-icerik.prose :where(p, li, blockquote, strong, em, a, td, th, span, div) {
    font-family: "Source Sans 3", "Plus Jakarta Sans", system-ui, sans-serif !important;
}
#slider .slide-hero-kicker {
    font-family: "Source Sans 3", "Plus Jakarta Sans", system-ui, sans-serif;
    font-weight: 600;
}

/* Sayfa loader — buzlu cam, logo + dönen halka, yüzde */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / 0.72);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.page-loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}
.page-loader__orb {
    position: relative;
    width: 7.25rem;
    height: 7.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-loader__ring {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    border: 2.5px solid rgb(15 23 42 / 0.08);
    border-top-color: rgb(46 134 193);
    border-right-color: rgb(46 134 193 / 0.35);
    animation: page-loader-spin 0.85s linear infinite;
    box-shadow: 0 0 0 8px rgb(255 255 255 / 0.45);
}
.page-loader__logo-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.88);
    box-shadow:
        0 1px 2px rgb(15 23 42 / 0.04),
        0 8px 24px rgb(15 23 42 / 0.06);
    border: 1px solid rgb(255 255 255 / 0.95);
}
.page-loader__logo {
    height: 2.35rem;
    width: auto;
    max-width: 3.75rem;
    object-fit: contain;
}
.page-loader__text {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgb(51 65 85);
}
.page-loader__pct {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    color: rgb(30 41 59);
}
.page-loader__bar {
    width: min(14rem, 68vw);
    height: 0.25rem;
    margin-top: 0.15rem;
    overflow: hidden;
    border-radius: 9999px;
    background: rgb(15 23 42 / 0.08);
    box-shadow: inset 0 1px 1px rgb(15 23 42 / 0.04);
}
.page-loader__bar-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgb(46 134 193), rgb(93 173 226));
    transition: width 0.08s linear;
    box-shadow: 0 0 8px rgb(46 134 193 / 0.35);
}
@keyframes page-loader-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .anim-nav-in {
        opacity: 1 !important;
        transform: none !important;
    }
    .desktop-nav-link.is-active {
        border-bottom-color: rgb(34 197 94);
    }
    .anim-bar-in,
    .anim-nav-in,
    .anim-float-wa,
    #mobileDrawer .mobile-drawer-panel,
    #mobileDrawer .mobile-drawer-backdrop {
        animation: none !important;
        transition: none !important;
    }
    #mobileDrawer.is-open .mobile-drawer-panel { transform: none !important; }
    .js-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .page-loader__ring {
        animation: none;
        border-color: rgb(46 134 193 / 0.45);
        border-top-color: rgb(46 134 193);
    }
    .page-loader {
        transition-duration: 0.01ms;
        backdrop-filter: none;
        background: rgb(255 255 255 / 0.92);
    }
}
