/*
 * 00 hét — One.hu AI Hackathon
 * Custom design layer — Hacker / Terminal aesthetic
 * Overrides hugo-conference/static/css/main.css
 *
 * Fonts loaded in layouts/index.html:
 *   Space Mono 400/700 — headings, monospace UI
 *   Inter 400/500/600   — body text
 */

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --bg:           #0a0a0f;
  --bg-surface:   #0d1117;
  --bg-elevated:  #161b22;
  --cyan:         #00d4ff;
  --cyan-dim:     rgba(0, 212, 255, 0.12);
  --cyan-glow:    rgba(0, 212, 255, 0.35);
  --violet:       #7c3aed;
  --text:         #e6edf3;
  --text-muted:   #8b949e;
  --border:       rgba(0, 212, 255, 0.14);
  --font-mono:    'Space Mono', 'Courier New', monospace;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Base reset ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(0, 212, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  color: var(--text);
}

p { color: var(--text); margin-top: 0; }
strong { color: var(--text); }
em { color: var(--cyan); font-style: normal; }
a { color: var(--cyan); }
a:hover { color: #fff; }

/* ── Wrapper ───────────────────────────────────────────── */
.wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Nav ───────────────────────────────────────────────── */
#nav {
  background: rgba(13, 17, 23, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 30px rgba(0, 212, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#nav ul.wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

#nav ul.wrapper::before,
#nav ul.wrapper::after {
  display: none;
}

.nav-item {
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-muted) !important;
  text-decoration: none !important;
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.1rem;
  display: block;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--cyan) !important;
  border-bottom-color: var(--cyan);
  background: var(--cyan-dim);
}

/* ── Hero / Header ─────────────────────────────────────── */
.header {
  background-image: url('../img/hero.jpg') !important;
  background-color: var(--bg-surface) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 10, 15, 0.90) 0%,
    rgba(13, 17, 23, 0.78) 50%,
    rgba(10, 10, 15, 0.92) 100%
  );
  z-index: 0;
}

.header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 212, 255, 0.015) 3px,
    rgba(0, 212, 255, 0.015) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.header .wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem 1.5rem;
  width: 100%;
}

.header-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin: 0 0 1.5rem;
  opacity: 0.8;
}

.logo-name {
  margin: 0 0 1rem;
  line-height: 1;
}

.logo-link {
  font-family: var(--font-mono) !important;
  font-size: clamp(3.5rem, 12vw, 7rem) !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-decoration: none !important;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-shadow:
    0 0 30px rgba(0, 212, 255, 0.7),
    0 0 80px rgba(0, 212, 255, 0.3),
    0 0 120px rgba(0, 212, 255, 0.15);
  display: block;
}

.tagline {
  font-family: var(--font-mono) !important;
  font-size: clamp(0.8rem, 2.2vw, 1rem) !important;
  color: var(--cyan) !important;
  letter-spacing: 0.06em;
  margin: 1.25rem 0 0 !important;
  opacity: 0.9;
}

.tagline::after {
  content: '_';
  animation: cursor-blink 1.2s step-end infinite;
  margin-left: 3px;
  color: var(--cyan);
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.call-action-area {
  margin-top: 2.5rem;
}

.price {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.call-action-link,
.call-action-link:visited {
  display: inline-block;
  background: transparent !important;
  background-image: none !important;
  filter: none !important;
  border: 2px solid var(--cyan) !important;
  color: var(--cyan) !important;
  padding: 0.9rem 2.75rem !important;
  font-family: var(--font-mono) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border-radius: 2px !important;
  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.25),
    inset 0 0 20px rgba(0, 212, 255, 0.04) !important;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s !important;
}

.call-action-link:hover {
  background: var(--cyan) !important;
  color: #0a0a0f !important;
  box-shadow:
    0 0 35px rgba(0, 212, 255, 0.55),
    inset 0 0 10px rgba(0, 212, 255, 0.1) !important;
}

/* ── Content area ──────────────────────────────────────── */
.content {
  background: transparent;
}

section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-child {
  border-bottom: none;
}

/* ── Section titles ────────────────────────────────────── */
.section-title {
  font-family: var(--font-mono) !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--cyan) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 2.25rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid var(--border) !important;
}

.section-title::before {
  content: '> ';
  opacity: 0.55;
}

/* ── About ─────────────────────────────────────────────── */
.about {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

.about p {
  color: var(--text);
  max-width: 760px;
  line-height: 1.75;
}

.about__lead {
  font-size: 1.15rem !important;
  border-left: 3px solid var(--cyan);
  padding-left: 1.25rem;
  margin-bottom: 1.75rem !important;
  color: var(--text) !important;
}

.about__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.25rem 0 1.5rem;
}

@media (max-width: 680px) {
  .about__columns { grid-template-columns: 1fr; }
}

.about__col,
.about__note {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.5rem;
}

.about__note {
  margin-bottom: 1.5rem;
}

.about__note p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about__subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.9rem;
  font-weight: 700;
}

.about__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about__list li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.6rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.about__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.about__apply {
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 3px;
  padding: 1.5rem 1.75rem;
  margin-top: 0;
  line-height: 1.8;
}

.about__apply strong {
  color: var(--cyan);
  font-family: var(--font-mono);
}

.about__apply-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.35rem;
}

/* ── Schedule ──────────────────────────────────────────── */
.schedule-tbl {
  overflow-x: auto;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.schedule-tbl table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: var(--bg-surface);
}

.schedule-tbl thead th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.schedule-tbl tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}

.schedule-tbl tbody tr:hover {
  background: rgba(0, 212, 255, 0.04);
}

td.schedule-time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan);
  white-space: nowrap;
  padding: 1rem;
  width: 75px;
  vertical-align: top;
}

td.schedule-slot {
  font-weight: 500;
  padding: 1rem;
  color: var(--text);
  vertical-align: top;
}

td.schedule-description {
  color: var(--text-muted);
  padding: 1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  vertical-align: top;
}

.schedule-other td.schedule-slot {
  color: var(--text-muted);
  font-weight: 400;
}

.schedule-day-header td {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  color: var(--bg) !important;
  background: var(--cyan) !important;
  padding: 0.55rem 1rem !important;
}

.speakers-company {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.25rem;
  font-weight: 400;
}

/* ── Speakers ──────────────────────────────────────────── */
.speakers-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.speakers-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.speakers-item:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px var(--cyan-glow);
}

.speaker-photo {
  display: block;
  margin-bottom: 1rem;
}

.speaker-photo .photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px var(--cyan-dim);
}

.speech-title {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text);
  margin: 0 0 0.5rem;
  font-weight: 700;
  line-height: 1.4;
}

.speech-time {
  color: var(--cyan);
  margin-right: 0.5rem;
}

.speakers-name {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 0.6rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

.speakers-name a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  text-decoration: none;
}

.speakers-name a:hover {
  color: var(--cyan);
}

.speakers-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* ── Sponsors & Partners ───────────────────────────────── */
.sponsors-list,
.partners-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-start;
}

.sponsor-item,
.partner-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.5rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sponsor--link,
.partner-link {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  line-height: normal !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.sponsor-item:hover,
.partner-item:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-dim);
}

.sponsor-item .photo,
.partner-item .photo {
  max-height: 56px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s;
  display: block;
}

.sponsor-item:hover .photo,
.partner-item:hover .photo {
  opacity: 1;
}

/* ── Location ──────────────────────────────────────────── */
.location-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: start;
  max-width: 720px;
}

@media (max-width: 640px) {
  .location-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.location-card__icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.location-card__name {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.4rem;
}

.location-card__address {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.location-card__dates {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.location-card__date {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 3px;
}

.location-card__date-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  font-weight: 700;
}

.location-card__date-value {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 700;
}

.location-card__date-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface) !important;
  border-top: 1px solid var(--border) !important;
  padding: 2rem 1.5rem !important;
  text-align: center;
  color: var(--text-muted) !important;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  margin-top: 0 !important;
}

.footer p {
  color: var(--text-muted) !important;
  margin: 0;
}

.footer a {
  color: var(--text-muted) !important;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--cyan) !important;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 960px) {
  section { padding: 4rem 1.25rem; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 1rem; }

  .schedule-tbl thead { display: none; }
  .schedule-tbl tbody tr { display: grid; grid-template-columns: 70px 1fr; padding: 0.75rem 0; }
  .schedule-day-header { display: block !important; }
  .schedule-day-header td { display: block !important; }
  td.schedule-time { padding: 0 0.5rem; }
  td.schedule-slot { padding: 0 0.5rem; }
  td.schedule-description { display: none; }
}

@media (max-width: 480px) {
  .nav-link { font-size: 0.65rem !important; padding: 0.85rem 0.55rem !important; letter-spacing: 0.06em; }
  .logo-link { font-size: 3rem !important; }
}

/* ── Utility: hide HR after nav (theme artifact) ───────── */
#nav + hr { display: none; }
.header + hr { display: none; }
