@import url("/assets/fonts.css");

@font-face {
  font-family: "Font Awesome Free Solid";
  src: url("/assets/font-awesome-solid-6.7.2.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: block;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --panel: #121216;
  --text: #faf9ff;
  --accent: #c8ff5c;
  --secondary: #ad95fd;
  --on-accent: #151912;
  --heading: "Space Grotesk", "Arial", sans-serif;
  --body: "Inter", "Arial", sans-serif;
}
:root, .appearance-preview {
  --line: color-mix(in srgb, var(--panel), var(--text) 9%);
  --muted: color-mix(in srgb, var(--text) 67%, var(--bg));
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1320px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; z-index: 20; left: 1rem; top: 1rem; background: var(--accent); color: var(--on-accent); padding: .65rem 1rem; transform: translateY(-160%); border-radius: .5rem; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--heading); font-weight: 700; font-size: 1.48rem; letter-spacing: -.078em; line-height: 1; white-space: nowrap; }
.brand-default { display: inline-flex; align-items: center; gap: inherit; }
.brand-image { --brand-logo-height: 46px; width: auto; height: var(--brand-logo-height); max-width: min(240px, 46vw); object-fit: contain; object-position: left center; }
.brand-image-expanded { width: calc(var(--brand-logo-height) * var(--brand-logo-ratio)); object-fit: fill; }
.brand-last { color: var(--muted); }
.brand-mark { background: var(--accent); color: var(--on-accent); width: 34px; height: 34px; border-radius: 9px; display: grid; grid-template-columns: 5px 5px; grid-template-rows: 5px 5px; place-content: center; gap: 3px; transform: rotate(-8deg); flex-shrink: 0; }
.brand-mark i { background: currentColor; border-radius: 1px; }
.brand-mark i:nth-child(2) { transform: translate(2px, -2px); }
nav { display: flex; align-items: center; gap: .45rem; }
nav a { padding: .56rem .95rem; color: var(--muted); font-size: .875rem; font-weight: 500; border: 1px solid transparent; border-radius: 8px; white-space: nowrap; }
nav a:hover { color: var(--text); }
nav .nav-home { border-color: var(--line); background: var(--panel); color: var(--text); }
#icerik { padding-top: 28px; }
.carousel { position: relative; height: clamp(415px, 37vw, 540px); overflow: hidden; isolation: isolate; border: 1px solid color-mix(in srgb, var(--secondary) 18%, var(--panel)); border-radius: 22px; background: #171023; }
.slides, .slide, .slide-link, .slide-visual { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide { background: #171023; pointer-events: none; visibility: hidden; }
.slide.leaving { visibility: visible; }
.slide.active { z-index: 1; pointer-events: auto; visibility: visible; }
.slide.arriving, .slide.leaving { animation-duration: 720ms; animation-timing-function: cubic-bezier(.3, .75, .28, 1); animation-fill-mode: both; }
.slide.arriving { animation-name: banner-arrive; --slide-offset: 100%; }
.slide.leaving { animation-name: banner-leave; --slide-offset: -100%; }
.slide.arriving.backward { --slide-offset: -100%; }
.slide.leaving.backward { --slide-offset: 100%; }
@keyframes banner-arrive { from { transform: translateX(var(--slide-offset)); } to { transform: translateX(0); } }
@keyframes banner-leave { from { transform: translateX(0); } to { transform: translateX(var(--slide-offset)); } }
@keyframes banner-dissolve { from { opacity: 0; } to { opacity: 1; } }
.slide-visual { object-fit: contain; object-position: center; }
.slide-link:focus-visible { z-index: 1; outline: 2px solid var(--accent); outline-offset: -3px; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 1px solid transparent; border-radius: 8px; padding: .7rem 1rem; color: var(--on-accent); background: var(--accent); font-weight: 700; font-size: .875rem; line-height: 1.35; }
.primary:hover { filter: brightness(1.1); }
.sponsor-section { margin-block: 48px 64px; scroll-margin-top: 24px; }
.sponsor-group + .sponsor-group { margin-top: 42px; }
.section-heading { margin-bottom: 22px; text-align: center; }
.section-heading :is(h1, h2), .admin-title { margin: 0; font: 700 clamp(2.25rem, 4.1vw, 3.8rem)/1.05 var(--heading); letter-spacing: -.068em; overflow-wrap: anywhere; }
.sponsor-section-icon { display: inline-block; margin-inline-end: .38em; color: var(--accent); font: 900 .64em/1 "Font Awesome Free Solid"; vertical-align: .12em; }
.sponsor-section-icon-after { margin-inline: .38em 0; }
.sponsor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sponsor-grid.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sponsor-card { display: flex; flex-direction: column; min-height: 138px; min-width: 0; padding: 15px 16px 12px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, color-mix(in srgb, var(--panel), var(--text) 3%), var(--panel) 76%); transition: border-color .2s, background .2s, transform .2s; overflow: hidden; }
.logo-box { min-width: 0; flex: 1; min-height: 70px; display: grid; place-items: center; }
.logo-box img { width: min(100%, 175px); height: 60px; object-fit: contain; }
.wordmark { display: inline-flex; align-items: center; justify-content: center; gap: .42rem; max-width: 100%; text-align: center; font: 700 clamp(1.03rem, 2.15vw, 1.85rem)/1 var(--heading); letter-spacing: -.065em; overflow-wrap: anywhere; color: var(--text); }
.wordmark .symbol::before { display: block; }
.wordmark .symbol { font-weight: 700; flex-shrink: 0; }
.wordmark.tempo { font-style: italic; letter-spacing: -.09em; }
.wordmark.tempo .symbol::before { content: "∕∕"; color: #c8ff5c; letter-spacing: -.28em; margin-right: .2em; }
.wordmark.orbit { text-transform: lowercase; font-weight: 600; }
.wordmark.orbit .symbol::before { content: "◉"; color: #6cdeff; }
.wordmark.nocta { letter-spacing: .105em; }
.wordmark.nocta .symbol::before { content: "✳"; color: #eb8dc0; }
.wordmark.north .symbol::before { content: "▲"; color: #83b9ff; }
.wordmark.forma { font-family: Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: -.09em; }
.wordmark.forma .symbol::before { content: "◒"; color: #fcc9a1; }
.wordmark.mono { letter-spacing: .055em; font-size: clamp(1rem, 1.7vw, 1.5rem); }
.wordmark.mono .symbol::before { content: "◩"; color: #d6b8ff; }
.wordmark.flux .symbol::before { content: "ϟ"; color: #70eedb; }
.wordmark.nova .symbol::before { content: "✦"; color: #ffb589; }
.card-meta { display: flex; gap: .5rem; align-items: center; justify-content: center; min-height: 1.45rem; color: var(--muted); font-size: .8125rem; text-align: center; overflow-wrap: anywhere; }
.empty { padding: 1.1rem; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); }
.contact-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); gap: 1.3rem; margin-bottom: 55px; padding: clamp(1.05rem, 3vw, 2rem); scroll-margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.contact-section h2 { margin: 0; font: 700 clamp(1.9rem, 3.8vw, 3.25rem)/1.05 var(--heading); letter-spacing: -.055em; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.contact-item { min-width: 0; border-top: 1px solid var(--line); padding-top: .55rem; }
.contact-item dt { color: var(--muted); font-size: .875rem; }
.contact-item dd { margin: .15rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.contact-item a { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--muted); }
.contact-item a:hover { text-decoration-color: var(--accent); }
.footer-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-brand { font-size: 1.18rem; }
.footer-brand .brand-image { --brand-logo-height: 34px; }
.footer-brand .brand-mark { width: 26px; height: 26px; border-radius: 6px; grid-template-columns: 4px 4px; grid-template-rows: 4px 4px; gap: 2px; }
.footer-inner p { min-width: 0; color: var(--muted); font-size: .8125rem; text-align: end; overflow-wrap: anywhere; }

.admin-main { max-width: 1100px; padding-block: 46px 70px; }
.admin-main.narrow { max-width: 560px; }
.admin-title { font-size: clamp(2.1rem, 4vw, 3rem); }
.admin-intro { color: var(--muted); margin: .6rem 0 1.4rem; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: .45rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); margin: 1.7rem 0 1rem; }
.secondary { display: inline-flex; justify-content: center; align-items: center; border: 1px solid #363641; border-radius: 8px; padding: .6rem .8rem; color: var(--text); background: #19191e; font-size: .875rem; font-weight: 550; text-align: center; }
.secondary:hover, .secondary[aria-pressed=true] { background: #242231; border-color: #6c6186; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-block: 1.1rem; }
.admin-toolbar h2 { margin: 0; font: 700 1.4rem var(--heading); }
.admin-list { display: grid; gap: .55rem; }
.admin-sponsor-group + .admin-sponsor-group { margin-top: .9rem; }
.admin-sponsor-group h3 { margin: .25rem 0; font: 700 1.2rem var(--heading); overflow-wrap: anywhere; }
.admin-sponsor-group .empty { margin: 0; }
.admin-row { display: grid; grid-template-columns: 90px minmax(110px, 1fr) auto auto; align-items: center; gap: .85rem; padding: .65rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.admin-row.admin-group-row { grid-template-columns: minmax(0, 1fr) auto; padding: .8rem; }
.admin-thumb { width: 90px; height: 54px; object-fit: contain; border-radius: 5px; background: #211a30; color: var(--muted); display: grid; place-items: center; text-align: center; font: 600 .8rem var(--heading); padding: .15rem; }
.admin-row strong { display: block; overflow-wrap: anywhere; }
.admin-row small, .help { color: var(--muted); }
.admin-row small { overflow-wrap: anywhere; }
.row-actions { display: flex; flex-wrap: wrap; gap: .3rem; }
.row-actions .secondary { padding: .45rem .6rem; }
.row-actions .secondary:disabled { cursor: default; }
.active-tag { color: #c8ff92; font-size: .8125rem; white-space: nowrap; }
.active-tag.inactive { color: var(--muted); }
dialog { width: min(610px, calc(100% - 24px)); max-height: calc(100dvh - 36px); padding: 24px; background: #15151b; border: 1px solid #3c3a47; border-radius: 15px; color: var(--text); }
dialog::backdrop { background: #050506b8; }
dialog h2 { margin: 0 0 .85rem; font: 700 1.65rem var(--heading); letter-spacing: -.04em; }
.fields { display: grid; gap: .75rem; }
.group-icon-control { display: flex; gap: .5rem; }
.group-icon-control button { flex-shrink: 0; }
#group-icon-help { margin: 0; }
.group-icon-preview { padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: 700 1.25rem var(--heading); overflow-wrap: anywhere; }
#page-content-help { line-height: 1.55; }
.admin-page .sponsor-section-icon { color: var(--admin-accent, var(--accent)); }
.field { display: grid; gap: .3rem; font-size: .875rem; color: #ddd9e8; }
.field :is(input:not([type=checkbox]), textarea, select) { width: 100%; min-width: 0; padding: .6rem .65rem; border: 1px solid #3d3a49; border-radius: 7px; background: #0e0d12; color: var(--text); }
.field select { appearance: none; padding-right: 2rem; background: linear-gradient(45deg, transparent 50%, #ddd9e8 50%) right 16px center / 5px 5px no-repeat, linear-gradient(135deg, #ddd9e8 50%, transparent 50%) right 11px center / 5px 5px no-repeat #0e0d12; }
.slider-settings { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem; padding: .8rem; margin-bottom: .9rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.slider-settings input { max-width: 100px; }
.field input[type=file] { padding: .4rem; }
input::file-selector-button { margin-right: .6rem; padding: .28rem .5rem; font: inherit; color: var(--text); background: #262233; border: 1px solid #514765; border-radius: 4px; cursor: pointer; }
.check { display: flex; gap: .5rem; align-items: center; font-size: .875rem; }
.check input { width: 1rem; height: 1rem; accent-color: var(--accent); }
.form-preview { max-width: 100%; max-height: 110px; object-fit: contain; align-self: flex-start; border-radius: 5px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .55rem; margin-top: 1.05rem; }
.status { color: var(--accent); font-size: .875rem; margin: .55rem 0; }
.status:empty { display: none; }
.status.error { color: #ffabb7; }
.danger { color: #ffabb7; }
.appearance-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem; align-items: start; }
.appearance-form { display: grid; gap: .9rem; }
.contact-form { max-width: 760px; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.contact-form .help { margin: 0 0 .9rem; font-size: .875rem; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.contact-address { grid-column: 1 / -1; }
.appearance-form fieldset { min-width: 0; margin: 0; padding: .9rem 1rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.appearance-form legend, .appearance-preview-wrap h3 { padding: 0 .3rem; font: 700 1.1rem var(--heading); }
.appearance-form .help { margin: .45rem 0; font-size: .875rem; }
.color-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.appearance-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.appearance-preview-wrap h3 { margin: 0 0 .6rem; }
.appearance-preview { min-width: 0; overflow: hidden; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px; }
.preview-browser-tab { display: flex; align-items: center; gap: .55rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line); background: var(--panel); font-size: .875rem; }
.preview-browser-tab img { flex: none; object-fit: contain; }
.preview-browser-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-header { display: flex; align-items: center; min-height: 61px; padding: .6rem 1rem; border-bottom: 1px solid var(--line); }
.preview-body { padding: 1rem; }
.preview-footer { padding: .6rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; text-align: end; overflow-wrap: anywhere; }
.preview-heading { font: 700 1.55rem var(--heading); }
.preview-card { align-items: center; justify-content: center; gap: .5rem; min-height: 90px; margin: .65rem 0 .9rem; color: var(--muted); }
.preview-card-mark { width: 19px; height: 19px; border: 3px solid var(--secondary); border-radius: 50%; }
@media (max-width: 1020px) {
  .shell { width: calc(100% - 64px); }
}
@media (max-width: 740px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 65px; gap: .6rem; }
  .brand { font-size: 1.25rem; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-image { --brand-logo-height: 37px; }
  nav { gap: .1rem; }
  nav a { padding: .44rem .55rem; font-size: .8rem; }
  #icerik { padding-top: 16px; }
  .carousel { border-radius: 15px; height: 500px; }
  .sponsor-section { margin-block: 34px 44px; }
  .contact-section { grid-template-columns: minmax(0, 1fr); margin-bottom: 38px; }
  .sponsor-grid { gap: 9px; }
  .sponsor-card { min-height: 111px; padding: 9px 8px; }
  .logo-box img { height: 48px; }
  .wordmark { font-size: clamp(1rem, 4.4vw, 1.7rem); }
  .wordmark.mono { font-size: clamp(.94rem, 3.6vw, 1.4rem); }
  .columns-4 .sponsor-card { padding-inline: 5px; }
  .columns-4 .wordmark { gap: .22rem; font-size: clamp(.75rem, 2.9vw, 1.35rem); }
  .columns-4 .card-meta { font-size: .75rem; line-height: 1.35; }
  .admin-row { grid-template-columns: 68px minmax(0, 1fr) auto; gap: .55rem; }
  .admin-row.admin-group-row { grid-template-columns: minmax(0, 1fr); }
  .admin-thumb { width: 68px; }
  .row-actions { grid-column: 1 / -1; }
  .appearance-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .columns-4 .wordmark { flex-direction: column; }
  .contact-fields, .contact-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 355px) {
  .shell { width: calc(100% - 22px); }
  .brand { gap: .38rem; font-size: 1.13rem; }
  nav a { padding-inline: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .slide.arriving { animation: banner-dissolve 200ms ease both; }
  .slide.leaving { animation: none; }
}
