/* Sport în România — design tokens lifted from the Claude design export.
   Full visual treatment lands in step 5; for now just the base theme. */

:root {
  --bg: #0d1b0f;
  --bg-panel: #0f1f11;
  --bg-card: #142a17;
  --bg-hover: #16281a;
  --border: #1c331f;
  --border-strong: #2a4a2f;
  --text: #f4f1e8;
  --text-soft: #d8e6d9;
  --text-muted: #a9c8ab;
  --text-faint: #8fae90;
  --text-dim: #6f8f72;
  --accent: #39ff88;
  --accent-hover: #6bffa8;
  --danger: #ff8a6b;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Space Grotesk', var(--font-body);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.error { color: var(--danger); }

/* Shared building blocks */
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-head { text-align: center; }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  margin: 8px 0 0;
}
.section-subtitle {
  font-size: 14px;
  color: var(--text-faint);
  margin: 8px auto 0;
  max-width: 560px;
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 27, 15, 0.92);
  backdrop-filter: blur(6px);
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: none;
}
.brand-logo--sm { width: 32px; height: 32px; border-radius: 8px; font-size: 16px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}
.brand-name--sm { font-size: 15px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}
.site-nav a:hover { color: var(--accent); }
.btn-add {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-display);
  white-space: nowrap;
}
.btn-add:hover { background: var(--accent-hover); }

/* Hero */
.hero {
  position: relative;
  padding: 90px 32px 70px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg,
    rgba(57, 255, 136, 0.05) 0px, rgba(57, 255, 136, 0.05) 2px,
    transparent 2px, transparent 26px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--accent);
  margin: 0;
}
.hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.btn-primary {
  text-decoration: none;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 10px;
  font-family: var(--font-display);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-display);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Calendar section */
.cal-section { padding: 56px 32px 60px; max-width: 1280px; margin: 0 auto; }
.cal-section .section-head { margin-bottom: 24px; }

/* About */
.about {
  padding: 70px 32px 80px;
  border-top: 1px solid var(--border);
  background: #0a1610;
}
.about-inner { max-width: 900px; margin: 0 auto; }
.about .section-head { margin-bottom: 40px; }
.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 680px;
  margin: 0 auto 44px;
}
.about-text p { margin: 0; }
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.feature-icon { font-size: 26px; margin-bottom: 10px; }
.feature-title {
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 6px;
}
.feature-body { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 32px 28px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-blurb { font-size: 13px; color: var(--text-faint); line-height: 1.6; margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px;
  text-decoration: none;
  color: var(--text-soft);
}
.footer-col a:hover { color: var(--accent); }
.footer-note { font-size: 12px; color: var(--text-dim); max-width: 260px; line-height: 1.5; margin: 0; }
.footer-bottom {
  max-width: 1080px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

/* Calendar toolbar */
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cal-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 36px 10px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  max-width: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238fae90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.filter-select:hover { border-color: var(--accent); }

/* Empty state */
.cal-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px;
  margin-bottom: 18px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.cal-empty-icon { font-size: 32px; }
.cal-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 6px 8px;
}
.cal-nav-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
}
.cal-nav-btn:hover { color: var(--accent); }
.cal-period {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 130px;
  text-align: center;
  text-transform: capitalize;
}

/* Calendar grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.cal-grid--header {
  border-radius: 12px 12px 0 0;
  border-bottom: none;
  padding: 1px 1px 0;
  overflow: hidden;
}
.cal-grid--body {
  border-radius: 0 0 12px 12px;
  border-top: none;
  padding: 0 1px 1px;
  overflow: hidden;
}
.cal-weekday {
  background: var(--bg-panel);
  padding: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.cal-cell {
  background: var(--bg-panel);
  min-width: 0;
  min-height: 108px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-cell--today { background: var(--bg-hover); }
.cal-date {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display);
}
.cal-cell--outside .cal-date { color: #4a6b4c; }
.cal-cell--today .cal-date { color: var(--accent); }

/* Event chips */
.event-chip {
  cursor: pointer;
  background: var(--chip-bg);
  border-left: 2px solid var(--chip-accent);
  border-radius: 4px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}
.event-chip:hover { filter: brightness(1.3); }
.chip-emoji { font-size: 11px; flex: none; }
.chip-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-more {
  font-size: 10px;
  color: var(--text-faint);
  font-weight: 600;
  padding: 0 2px;
}

/* Event detail modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 6, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-head {
  padding: 26px 26px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.modal-emoji { font-size: 34px; }
.modal-head-main { flex: 1; }
.modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
}
.modal-badges {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.badge--plain { background: var(--border); color: var(--text-muted); }
.badge--ok { background: rgba(57, 255, 136, 0.14); color: var(--accent); }
.badge--progress { background: rgba(77, 201, 255, 0.14); color: #4dc9ff; }
.badge--warn { background: rgba(255, 138, 107, 0.14); color: var(--danger); }
.modal-close {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-body {
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-description {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
}
.modal-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-panel);
  border-radius: 10px;
  padding: 14px 16px;
}
.detail-row {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-soft);
}
.detail-icon { width: 18px; flex: none; }
.detail-strong { color: var(--text); font-weight: 600; }
.modal-footer { padding: 0 26px 26px; }

/* Add-event form */
.modal--form { max-width: 520px; max-height: 88vh; }
.modal-head--form {
  padding: 22px 26px;
  align-items: center;
  justify-content: space-between;
}
.modal-head--form .modal-title { font-size: 18px; }
.form-row { display: flex; gap: 10px; }
.form-field { flex: 1; min-width: 0; }
.form-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-body);
}
.form-input:focus { outline: none; border-color: var(--accent); }
textarea.form-input { resize: vertical; }
select.form-input { cursor: pointer; }
.form-error {
  font-size: 12px;
  color: var(--danger);
  font-weight: 600;
  min-height: 0;
}
.form-error:empty { display: none; }
.modal-cta--btn { border: none; width: 100%; cursor: pointer; margin-top: 4px; }
.modal-cta {
  display: block;
  text-align: center;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  padding: 13px;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font-display);
}
.modal-cta:hover { background: var(--accent-hover); color: var(--bg); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Feedback widget */
.feedback-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.feedback-toggle:hover { background: var(--accent-hover); }
.feedback-panel {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 95;
  width: 320px;
  max-width: calc(100vw - 44px);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.feedback-panel[hidden] { display: none; }
.feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.feedback-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}
.feedback-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  max-height: 260px;
  overflow-y: auto;
}
.feedback-bubble {
  font-size: 13px;
  line-height: 1.45;
  padding: 9px 12px;
  border-radius: 12px;
  max-width: 85%;
}
.feedback-bubble--bot {
  background: var(--bg-panel);
  color: var(--text-soft);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.feedback-bubble--user {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.feedback-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
}
.feedback-input { flex: 1; font-size: 13px; }
.feedback-send {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: var(--bg);
  font-size: 16px;
  cursor: pointer;
  flex: none;
}
.feedback-send:hover { background: var(--accent-hover); }

/* Mobile: calendar becomes a vertical agenda-style stack of days with events */
@media (max-width: 700px) {
  .site-header { padding: 12px 16px; gap: 10px; }
  .site-nav { display: none; }
  .hero { padding: 56px 20px 48px; }
  .hero-title { font-size: 30px; }
  .cal-section { padding: 32px 12px 40px; }
  .about { padding: 48px 20px 56px; }
  .cal-grid--header { display: none; }
  .cal-grid--body { display: flex; flex-direction: column; border-radius: 12px; border-top: 1px solid var(--border); }
  .cal-cell { min-height: 0; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .cal-cell:empty, .cal-cell--outside { display: none; }
  .cal-date { min-width: 28px; }
  .chip-name { white-space: normal; }
}
