/* Uzay İneği Araştırma Enstitüsü - Ana Stil Dosyası */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,500;8..60,700&display=swap');

:root {
  --bg: #07111d;
  --bg-elev: #0d1c2d;
  --bg-soft: #12263b;
  --text: #eef3ff;
  --muted: #b2bed0;
  --accent: #8be04e;
  --accent-2: #70bf3a;
  --line: rgba(255, 255, 255, 0.14);
  --card: rgba(8, 19, 31, 0.78);
  --shadow: 0 18px 40px rgba(2, 6, 10, 0.42);
  --cream: #f5f4ee;
  --cream-text: #131a23;
  --danger: #ff6b6b;
  --radius: 18px;
}

body.theme-light {
  --bg: #f2f5f9;
  --bg-elev: #ffffff;
  --bg-soft: #e8eef7;
  --text: #0f1b2a;
  --muted: #48556a;
  --line: rgba(11, 28, 42, 0.14);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 14px 30px rgba(11, 28, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  background: radial-gradient(circle at 20% 10%, #14263a 0, var(--bg) 42%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
  opacity: 0.07;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-top: 0;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 78px 0;
}

.section-cream {
  background: var(--cream);
  color: var(--cream-text);
}

.section-title {
  margin: 0 0 12px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.1;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.accent {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 12, 20, 0.78);
}

body.theme-light .site-header {
  background: rgba(242, 245, 249, 0.9);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.brand-title {
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 0.98rem;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.75rem;
}

.main-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 10px;
  justify-content: center;
  position: static !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.nav-link {
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  color: color-mix(in srgb, var(--text) 88%, white 12%);
  transition: 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 17%, transparent 83%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border: 1px solid transparent;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transition: 0.22s ease;
}

.btn-primary {
  background: var(--accent);
  color: #10200a;
}

.btn-primary:hover {
  background: var(--accent-2);
}

.btn-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  font-size: 1.18rem;
}

.hamburger {
  display: none !important;
}

.hero {
  position: relative;
  min-height: 74vh;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, rgba(2, 8, 14, 0.88) 22%, rgba(5, 12, 20, 0.48) 64%), url('../images/hero.jpg') center/cover no-repeat;
  z-index: -2;
}

body.theme-light .hero {
  --text: #eef3ff;
  --muted: #b2bed0;
  color: var(--text);
}

body.theme-light .hero .stat-label {
  color: var(--muted);
}

#star-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: end;
  padding: 52px 0;
}

.hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2.5rem, 5.8vw, 5rem);
  line-height: 0.97;
  margin: 0 0 14px;
}

.hero p {
  max-width: 620px;
  margin-bottom: 26px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 10px;
  max-width: 680px;
}

.stat-item {
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}

.stat-number {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 76%, white 24%);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-right {
  display: grid;
  gap: 16px;
  justify-items: end;
}

.quote-card {
  background: rgba(7, 16, 28, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  max-width: 330px;
  box-shadow: var(--shadow);
}

body.theme-light .quote-card {
  background: rgba(255, 255, 255, 0.88);
}

.quote-card blockquote {
  margin: 0 0 8px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.24rem;
  font-style: italic;
}

.road-sign {
  transform: rotate(-3deg);
  background: rgba(214, 211, 191, 0.9);
  color: #202631;
  border: 3px solid #6f6f6f;
  border-radius: 8px;
  padding: 18px 20px;
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.35rem;
  line-height: 1.1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

body.theme-light .card {
  background: #ffffff;
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 18px;
}

.card h3 {
  margin: 0 0 8px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.9rem;
  line-height: 1.2;
}

.card p {
  margin-bottom: 12px;
  color: var(--muted);
}

.read-more {
  color: var(--accent);
  font-weight: 700;
}

.witness-section .section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.witness-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.witness-card {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(16, 30, 42, 0.1);
  box-shadow: 0 10px 24px rgba(16, 30, 42, 0.1);
  overflow: hidden;
  color: #1d2735;
  display: grid;
  grid-template-columns: 94px 1fr;
  min-height: 176px;
}

.witness-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.witness-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.witness-meta {
  margin-top: auto;
  font-size: 0.86rem;
  color: #415163;
}

.play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #15273d;
  color: #fff;
  cursor: pointer;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(139, 224, 78, 0.15);
  color: #a4f569;
  font-size: 0.74rem;
  font-weight: 700;
}

body.theme-light .badge {
  background: rgba(139, 224, 78, 0.2);
  color: #224915;
}

.science-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: center;
}

.science-wrap img {
  border-radius: 20px;
  border: 1px solid var(--line);
}

.bulletin {
  margin-top: 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(139, 224, 78, 0.12);
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  overflow: hidden;
}

.bulletin strong {
  white-space: nowrap;
  color: var(--accent);
}

.bulletin-track {
  white-space: nowrap;
  animation: ticker 17s linear infinite;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-32%);
  }
}

.page-hero {
  padding: 60px 0 34px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
}

.page-hero p {
  max-width: 780px;
  color: var(--muted);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}

.strip-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 14px;
  text-align: center;
}

.strip-item .n {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.deep-evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.deep-evidence .card h3 {
  font-size: 1.55rem;
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.94rem;
}

.simple-table th,
.simple-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 9px 8px;
}

.simple-table th {
  color: var(--accent);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent 84%);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.evidence-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 14px;
  box-shadow: var(--shadow);
}

.evidence-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.file-code {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.evidence-title {
  margin: 4px 0 5px;
  font-size: 1.2rem;
  font-weight: 700;
}

.evidence-meta {
  font-size: 0.86rem;
  color: var(--muted);
}

.evidence-visual {
  border-radius: 12px;
  height: 150px;
  margin: 10px 0;
  background: #111c2e;
  border: 1px solid var(--line);
  overflow: hidden;
}

.evidence-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.reliability {
  margin: 10px 0;
}

.reliability-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  overflow: hidden;
}

.reliability-bar {
  height: 100%;
  background: linear-gradient(90deg, #6bbdf3, var(--accent));
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.meta-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.transcript-modal .player-strip {
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(139, 224, 78, 0.2), rgba(139, 224, 78, 0.04));
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.transcript-modal .player-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: strip 2.6s linear infinite;
}

@keyframes strip {
  from {
    left: -35%;
  }

  to {
    left: 110%;
  }
}

.transcript-lines {
  max-height: 340px;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.transcript-line {
  border-left: 3px solid var(--accent);
  padding: 8px 10px;
  background: rgba(139, 224, 78, 0.08);
  border-radius: 10px;
}

.calc-box,
.translator-box,
.contact-box,
.faq-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

body.theme-light input,
body.theme-light select,
body.theme-light textarea {
  background: #fff;
  color: #1a2633;
}

.result-box {
  margin-top: 12px;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(139, 224, 78, 0.09);
}

.progress-ring {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  margin: 8px 0;
}

.progress-ring span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #5aa9e9, var(--accent));
  transition: width 0.8s ease;
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 14px 4px;
  background: transparent;
  color: var(--text);
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--muted);
}

.timeline {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  display: grid;
  gap: 14px;
}

.timeline-item h4 {
  margin: 0 0 3px;
}

.gallery-grid,
.portrait-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px;
  font-size: 0.82rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
}

.archive-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(16, 24, 36, 0.74);
  border: 1px solid var(--line);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 14, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1800;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: min(1000px, 94vw);
  width: 100%;
  border: 1px solid var(--line);
  background: #050d17;
  border-radius: 16px;
  overflow: hidden;
}

.lightbox-img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #000;
}

.lightbox-info {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.lightbox-nav {
  display: flex;
  gap: 8px;
}

.lightbox-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 8, 14, 0.8);
  z-index: 1600;
  padding: 18px;
}

.modal.open {
  display: flex;
}

.modal-content {
  width: min(760px, 96vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 18px;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.modal-close {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.team-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--card);
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(139, 224, 78, 0.2);
  color: var(--accent);
  margin-bottom: 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding-top: 30px;
  background: rgba(5, 12, 20, 0.55);
}

body.theme-light .site-footer {
  background: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 20px;
}

.footer-col h4 {
  margin: 0 0 10px;
  font-family: 'Source Serif 4', serif;
  font-size: 1.2rem;
}

.footer-col p,
.footer-col li,
.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-bottom {
  margin-top: 24px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--muted) 80%, transparent 20%);
  opacity: 0.8;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.hide {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1080px) {
  .main-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    position: static !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    overflow-x: auto;
  }

  .main-nav.open {
    display: flex !important;
  }

  .hamburger {
    display: none !important;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .hero-grid,
  .science-wrap,
  .deep-evidence,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .witness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid,
  .portrait-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 78px;
  }

  .brand-title {
    font-size: 0.84rem;
  }

  .brand-sub {
    font-size: 0.68rem;
  }

  .stats,
  .stat-strip,
  .meta-grid,
  .form-grid,
  .evidence-grid,
  .team-grid,
  .gallery-grid,
  .portrait-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .witness-grid {
    grid-template-columns: 1fr;
  }

  .witness-card {
    grid-template-columns: 110px 1fr;
  }

  .road-sign {
    font-size: 1rem;
  }

  .section {
    padding: 54px 0;
  }
}