/* FRC/FTC header: ana sitedeki header'ın (components/header) birebir kopyası. ai/frc-ftc-2026-11-08/ortak_header_v2.py üretir, elle değiştirme */
:root { --sh-canvas: #FFFFFF; --sh-s1: #F8F9FA; --sh-s2: #F3F4F6; --sh-line: #E5E7EB; --sh-ink1: #0F172A; --sh-ink2: #4B5563; --sh-ink3: #677589; --sh-ink4: #9CA3AF; --sh-h: 92px }
html.dark { --sh-canvas: #0E0E10; --sh-s1: #161618; --sh-s2: #1E1E21; --sh-line: #2C2C30; --sh-ink1: #FAFAFA; --sh-ink2: #BABFC7; --sh-ink3: #8E96A3; --sh-ink4: #6C727F }
/* header yüksekliği: TÜRSAB çubuğu + 64px satır (kayınca 56px) + çizgi */
html.sh-scrolled { --sh-h: 84px }
@media (max-width: 639px) { :root { --sh-h: 87px } html.sh-scrolled { --sh-h: 79px } }
html { scroll-padding-top: var(--sh-h) }
.sh-head { position: fixed; top: 0; left: 0; right: 0; z-index: 60; width: 100%; font-family: 'Inter', system-ui, sans-serif; border-bottom: 1px solid var(--sh-line); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); transition: border-color 0.5s, box-shadow 0.5s, color 0.5s }
/* zemin ayrı katmanda: backdrop-filter header'ın kendisinde olursa telefon menüsü (fixed) header'a hapsolur */
.sh-head::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); transition: background 0.5s, opacity 0.5s }
html.dark .sh-head::before { background: rgba(14, 14, 16, 0.9) }
.sh-head a { text-decoration: none }
.sh-top { position: relative; border-bottom: 1px solid var(--sh-line); background: var(--sh-s1); padding: 4px 8px; transition: background 0.5s, border-color 0.5s }
.sh-topin { margin: 0 auto; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 8px; width: max-content; white-space: nowrap; font-size: 10px; line-height: 1.25; color: var(--sh-ink3); transition: color 0.5s }
.sh-topin a { color: inherit } .sh-topin a:hover { text-decoration: underline; text-underline-offset: 2px }
.sh-strong { font-weight: 500; color: var(--sh-ink1) }
.sh-shield { width: 12px; height: 12px; flex: 0 0 auto }
.sh-row { width: 100%; box-sizing: border-box; margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; justify-content: space-between; transition: height 0.3s }
.sh-left { display: flex; align-items: center; gap: 14px; flex: 0 0 auto }
.sh-logo { display: flex; align-items: center; height: 32px; transition: opacity 0.2s } .sh-logo:hover { opacity: 0.8 }
.sh-logo img { height: 100%; width: auto; display: block; object-fit: contain }
.sh-partners { display: flex; align-items: center; gap: 6px; padding-left: 14px; border-left: 1px solid var(--sh-line) }
.sh-partners a { display: block }
.sh-partners img { height: 24px; width: auto; display: block; padding: 3px 6px; background: #FFFFFF }
.sh-nav { display: none; align-items: center; gap: 2px }
.sh-link { position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 6px 0; font-size: 13.5px; font-weight: 500; letter-spacing: -0.025em; white-space: nowrap; color: var(--sh-ink2); transition: color 0.15s }
.sh-link:hover { color: var(--sh-ink1) }
.sh-ul { pointer-events: none; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 1px; background: var(--sh-ink1); transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease-out }
.sh-link:hover .sh-ul { transform: scaleX(1); transform-origin: left }
.sh-div { width: 1px; height: 16px; flex: 0 0 auto; background: var(--sh-line) }
.sh-quote { margin-left: 8px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 6px 0; background: #5B1A2B; color: #FFFFFF !important; font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); transition: background 0.15s }
.sh-quote:hover { background: #74233A }
.sh-right { display: flex; align-items: center; gap: 4px; flex: 0 0 auto }
.sh-dd, .sh-mm { position: relative }
.sh-dd > summary, .sh-mm > summary { list-style: none; cursor: pointer } .sh-dd > summary::-webkit-details-marker, .sh-mm > summary::-webkit-details-marker { display: none }
.sh-langbtn { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sh-ink2); transition: color 0.15s, background 0.15s }
.sh-langbtn:hover { color: var(--sh-ink1); background: var(--sh-s1) }
.sh-flag4 { display: flex; width: 16px; height: 16px; overflow: hidden } .sh-flag4 svg, .sh-flag5 svg { width: 100%; height: 100%; display: block }
.sh-chev { width: 12px; height: 12px; color: var(--sh-ink3); transition: transform 0.2s } .sh-dd[open] .sh-chev { transform: rotate(180deg) }
.sh-ddpanel { position: absolute; right: 0; top: 100%; margin-top: 8px; width: 192px; box-sizing: border-box; z-index: 50; padding: 4px; border: 1px solid var(--sh-line); background: var(--sh-canvas); box-shadow: 0 20px 50px -20px rgba(15, 15, 17, 0.18); animation: sh-in 0.3s ease-out }
html.dark .sh-ddpanel { background: var(--sh-s1); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6) }
.sh-opt { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: transparent; font: inherit; font-size: 13.5px; color: var(--sh-ink2); cursor: pointer; text-align: left }
.sh-opt:hover { background: var(--sh-s1); color: var(--sh-ink1) } html.dark .sh-opt:hover { background: var(--sh-s2) }
.sh-flag5 { display: flex; width: 20px; height: 20px; flex: 0 0 auto; overflow: hidden }
.sh-optlabel { flex: 1 }
.sh-check { width: 14px; height: 14px; color: var(--sh-ink1) }
.sh-short { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sh-ink4) }
.sh-head .sh-iconbtn { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 0; padding: 0; background: transparent; color: var(--sh-ink2); cursor: pointer; transition: color 0.15s, background 0.15s }
.sh-head .sh-iconbtn:hover { color: var(--sh-ink1); background: var(--sh-s1) }
.sh-ti { position: relative; display: block; width: 16px; height: 16px; transition: transform 0.5s ease-out } .sh-iconbtn:hover .sh-ti { transform: rotate(40deg) }
.sh-head .tema-gunes, .sh-head .tema-ay { display: block !important; position: absolute; inset: 0; width: 16px; height: 16px; transition: transform 0.3s ease-out, opacity 0.3s ease-out }
.sh-head .tema-gunes { transform: rotate(0) scale(1); opacity: 1 } .sh-head .tema-ay { transform: rotate(-90deg) scale(0); opacity: 0 }
html.dark .sh-head .tema-gunes { transform: rotate(90deg) scale(0); opacity: 0 } html.dark .sh-head .tema-ay { transform: rotate(0) scale(1); opacity: 1 }
.sh-ico5 { width: 20px; height: 20px }
.sh-auth { display: none; align-items: center; gap: 4px }
.sh-login, .sh-register { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; white-space: nowrap; font-size: 13px; font-weight: 500; transition: color 0.15s, background 0.15s }
.sh-login { padding: 6px 0; color: var(--sh-ink2) } .sh-login:hover { color: var(--sh-ink1); background: var(--sh-s1) }
.sh-register { padding: 8px 0; background: var(--sh-ink1); color: var(--sh-canvas) !important } .sh-register:hover { opacity: 0.9 }
.sh-desk { display: none } .sh-mob { display: block }
.sh-mmpanel { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; height: 100dvh; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); animation: sh-fade 0.5s ease-out }
html.dark .sh-mmpanel { background: rgba(14, 14, 16, 0.95) }
.sh-mmtop { display: flex; justify-content: flex-end; padding: 12px 20px 8px; max-width: 448px; width: 100%; box-sizing: border-box; margin: 0 auto }
.sh-mmclose { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--sh-line); border-radius: 999px; background: var(--sh-canvas); color: var(--sh-ink1); cursor: pointer }
.sh-mmlist { flex: 1; overflow-y: auto; padding: 0 20px 40px; display: flex; flex-direction: column; align-items: center; gap: 10px }
.sh-tile { display: flex; width: 100%; max-width: 320px; min-height: 48px; box-sizing: border-box; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid var(--sh-line); background: var(--sh-canvas); color: var(--sh-ink1) !important; font-size: 15px; font-weight: 500; letter-spacing: -0.025em; text-align: center; animation: sh-up 0.4s ease-out both }
html.dark .sh-tile { background: var(--sh-s1) }
.sh-tile:hover { background: var(--sh-s1) }
.sh-tile-quote { border: 0; background: #5B1A2B !important; color: #FFFFFF !important }
.sh-tilesep { width: 100%; max-width: 320px; height: 1px; margin: 14px 0 4px; background: var(--sh-line) }
.sh-tile-dark { border: 0; background: var(--sh-ink1) !important; color: var(--sh-canvas) !important; font-weight: 600 }
@keyframes sh-in { from { opacity: 0; transform: translateY(-8px) scale(0.96) } }
@keyframes sh-fade { from { opacity: 0 } }
@keyframes sh-up { from { opacity: 0; transform: translateY(12px) } }
@media (min-width: 640px) {
  .sh-top { padding: 6px 16px } .sh-topin { gap: 12px; font-size: 11px } .sh-strong:first-of-type { letter-spacing: 0.025em } .sh-shield { width: 14px; height: 14px }
}
@media (max-width: 759px) { .sh-partners { display: none } }
@media (min-width: 1200px) {
  .sh-nav, .sh-auth { display: flex } .sh-desk { display: block } .sh-mob, .sh-mm { display: none }
}
@media (min-width: 1500px) { .sh-row { max-width: 1500px } }
/* sayfa en üstteyken: fotoğrafın üstünde şeffaf (ana sayfadaki gibi). 60px kayınca tema.js <html>'e sh-scrolled koyar */
html:not(.sh-scrolled) .sh-row { height: 64px }
html:not(.sh-scrolled) .sh-head { border-bottom-color: transparent; box-shadow: none; --sh-line: rgba(255, 255, 255, 0.25) }
html:not(.sh-scrolled) .sh-head::before { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.45), transparent); -webkit-backdrop-filter: none; backdrop-filter: none }
html:not(.sh-scrolled) .sh-top { background: transparent; border-bottom-color: rgba(255, 255, 255, 0.1) }
html:not(.sh-scrolled) .sh-topin { color: rgba(255, 255, 255, 0.5) }
html:not(.sh-scrolled) .sh-topin .sh-strong { color: rgba(255, 255, 255, 0.8) }
html:not(.sh-scrolled) .sh-link { color: rgba(255, 255, 255, 0.9) }
html:not(.sh-scrolled) .sh-link:hover { color: #FFFFFF }
html:not(.sh-scrolled) .sh-ul { background: #FFFFFF }
html:not(.sh-scrolled) .sh-langbtn, html:not(.sh-scrolled) .sh-login { color: rgba(255, 255, 255, 0.8) }
html:not(.sh-scrolled) .sh-head .sh-iconbtn { color: rgba(255, 255, 255, 0.7) }
html:not(.sh-scrolled) .sh-langbtn:hover, html:not(.sh-scrolled) .sh-login:hover, html:not(.sh-scrolled) .sh-head .sh-iconbtn:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.1) }
html:not(.sh-scrolled) .sh-chev { color: rgba(255, 255, 255, 0.5) }
html:not(.sh-scrolled) .sh-register { background: #FFFFFF; color: #111827 !important }
html:not(.sh-scrolled) .sh-mmpanel .sh-tile, html:not(.sh-scrolled) .sh-mmpanel .sh-mmclose, html:not(.sh-scrolled) .sh-mmpanel .sh-tilesep { --sh-line: #E5E7EB }
html.dark:not(.sh-scrolled) .sh-mmpanel .sh-tile, html.dark:not(.sh-scrolled) .sh-mmpanel .sh-mmclose, html.dark:not(.sh-scrolled) .sh-mmpanel .sh-tilesep { --sh-line: #2C2C30 }
html:not(.sh-scrolled) .sh-ddpanel { --sh-line: #E5E7EB } html.dark:not(.sh-scrolled) .sh-ddpanel { --sh-line: #2C2C30 }
html.sh-mm-open { overflow: hidden }
/* header sabit ve fotoğrafın üstünde: hero içeriği header'ın altında başlasın; bölüm menüsü header'ın altına yapışsın */
.p-hero .p-heroin { padding-top: calc(88px + 92px) !important }
.h-hero .h-heroin { padding-top: calc(72px + 92px) !important }
.h-subnav { top: var(--sh-h) !important }
/* hub ve etkinlik sayfaları: ana fotoğraf açılışta tüm ekranı kaplar (ana sayfadaki hero gibi), içerik dikeyde ortada */
.p-hero > div, .h-hero > div { min-height: 100vh; min-height: 100svh; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center }
.p-hero .p-heroin, .h-hero .h-heroin { width: 100%; box-sizing: border-box }
@media (max-width: 640px) {
  .p-hero .p-heroin { padding-top: calc(48px + 86px) !important }
  .h-hero .h-heroin { padding-top: calc(56px + 86px) !important }
}
/* sabit boyut: dil değişince hub başlığı ve kart yazıları altındakileri kaydırmasın (TR/EN'nin çok satırlısına göre ölçüldü) */
.p-hero h1 { min-height: calc(4 * 1.08em) }
.p-card > div > span:last-child { min-height: 34px; align-items: flex-start }
@media (max-width: 640px) {
  .p-hero h1 { min-height: calc(5 * 1.08em) }
  .p-heroin > span:first-child { min-height: 28px }
  .p-heroin > div:last-child { min-height: 158px; align-content: flex-start }
  .p-card > div > strong { min-height: calc(2 * 1.25em) }
}
