/* VideoCloud — static club site styles */
:root {
  --bg: #f7fafc;
  --bg-alt: #eef4f9;
  --surface: #ffffff;
  --text: #1a2a3a;
  --text-muted: #5a6f82;
  --primary: #1e4a6e;
  --primary-hover: #163a57;
  --accent: #3a8fc4;
  --accent-soft: #d6ebf7;
  --ice: #7eb8da;
  --graphite: #2c3e50;
  --border: #d0dde8;
  --shadow: 0 4px 20px rgba(30, 74, 110, 0.08);
  --shadow-lg: 0 12px 40px rgba(30, 74, 110, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 68px;
  --font: "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary); }

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(208, 221, 232, 0.6);
  box-shadow: 0 1px 12px rgba(30, 74, 110, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
}
.logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.logo:hover { color: var(--primary-hover); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}
.nav-list a,
.nav-list button {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), color var(--transition);
}
.nav-list a:hover,
.nav-list button:hover,
.nav-list a:focus-visible,
.nav-list button:focus-visible {
  background: var(--accent-soft);
  color: var(--primary);
  outline: none;
}
.nav-list a.active {
  background: var(--accent-soft);
  color: var(--primary);
}

.lang-switch {
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--surface);
}
.lang-switch:hover {
  border-color: var(--accent);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: center;
  background: var(--graphite) center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(20, 40, 60, 0.78) 0%, rgba(30, 70, 100, 0.45) 55%, rgba(20, 40, 60, 0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0;
  max-width: 640px;
}
.hero-motto {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.75rem;
}
.hero h1 {
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 1.75rem;
  max-width: 36em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #2f7aad;
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 36em;
  margin: 0 auto 2.25rem;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  background: var(--bg-alt);
}
.card-body {
  padding: 1.1rem 1.2rem 1.3rem;
}
.card-body h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}
.card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Publication cards */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.pub-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pub-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}
.pub-meta {
  padding: 1rem 1.15rem 1.25rem;
}
.pub-meta .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.pub-meta h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.pub-meta .info {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.pub-meta p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stat-item .num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.stat-item .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Content pages */
.page-hero {
  background: linear-gradient(135deg, #1e4a6e 0%, #2c6a9e 100%);
  color: #fff;
  padding: 2.75rem 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 0.4rem; }
.page-hero p { opacity: 0.9; max-width: 36em; margin: 0 auto; }

.content-block {
  max-width: 720px;
  margin: 0 auto;
}
.content-block p {
  margin-bottom: 1rem;
  color: var(--text);
}
.content-block ul {
  margin: 1rem 0 1.5rem 1.25rem;
}
.content-block li {
  margin-bottom: 0.45rem;
}

/* Rules list */
.rules-list {
  list-style: none;
  counter-reset: rule;
  max-width: 760px;
  margin: 0 auto;
}
.rules-list li {
  counter-increment: rule;
  position: relative;
  padding: 1rem 1rem 1rem 3.2rem;
  margin-bottom: 0.65rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.rules-list li::before {
  content: counter(rule);
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--accent-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contacts */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.contact-info h3 { margin-bottom: 0.75rem; }
.contact-info p { margin-bottom: 0.6rem; color: var(--text-muted); }
.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: var(--surface);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.form-msg {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--primary);
  margin-top: 0.75rem;
  font-size: 0.95rem;
}
.form-msg.visible { display: block; }

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--graphite);
  color: #c8d6e4;
  padding: 2.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .logo { color: #fff; margin-bottom: 0.6rem; }
.footer-brand p { font-size: 0.9rem; opacity: 0.85; max-width: 28em; }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; }
.footer-col a {
  color: #a8bdd0;
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  opacity: 0.8;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 35, 50, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  width: min(420px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover,
.modal-close:focus-visible {
  background: var(--accent-soft);
  color: var(--primary);
  outline: none;
}
.modal h2 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}
.modal label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.modal input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 0.9rem;
}
.modal input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.modal .btn { width: 100%; margin-top: 0.25rem; }
.modal-msg {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem;
  background: #fef3e8;
  border: 1px solid #f0c78a;
  border-radius: var(--radius-sm);
  color: #8a5a1a;
  font-size: 0.92rem;
}
.modal-msg.visible { display: block; }

/* Dashboard */
.dashboard-page {
  background: #0f1c2a;
  color: #e2eaf2;
  min-height: 100vh;
}
.dashboard-page .site-header {
  background: rgba(15, 28, 42, 0.9);
  border-bottom-color: rgba(255,255,255,0.08);
}
.dashboard-page .logo { color: #fff; }
.dashboard-page .nav-list a,
.dashboard-page .nav-list button {
  color: #c8d6e4;
}
.dashboard-page .nav-list a:hover,
.dashboard-page .nav-list button:hover {
  background: rgba(126, 184, 218, 0.15);
  color: #fff;
}
.dashboard-page .lang-switch {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: #c8d6e4;
}

.dash-header {
  padding: 1.75rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dash-header h1 { color: #fff; font-size: 1.5rem; }
.dash-badge {
  font-size: 0.75rem;
  background: rgba(126, 184, 218, 0.2);
  color: var(--ice);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
}
.dash-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dash-controls .btn {
  background: rgba(255,255,255,0.08);
  color: #e2eaf2;
  border-color: rgba(255,255,255,0.15);
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
}
.dash-controls .btn:hover {
  background: rgba(126, 184, 218, 0.2);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.kpi-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.kpi-card .kpi-label {
  font-size: 0.8rem;
  color: #8aa0b5;
  margin-bottom: 0.35rem;
}
.kpi-card .kpi-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
}
.kpi-card .kpi-sub {
  font-size: 0.78rem;
  color: #7a91a8;
  margin-top: 0.25rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.panel h3 {
  color: #c8d6e4;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.chart-wrap {
  height: 180px;
  position: relative;
}
.chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.progress-bar {
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--ice));
  border-radius: 999px;
  transition: width 0.6s ease;
}

.process-list {
  list-style: none;
}
.process-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.88rem;
}
.process-list li:last-child { border-bottom: none; }
.process-status {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(126, 184, 218, 0.2);
  color: var(--ice);
}

.events-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.events-table th,
.events-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.events-table th {
  color: #8aa0b5;
  font-weight: 500;
  font-size: 0.78rem;
}
.events-table td { color: #c8d6e4; }

.heatmap {
  display: grid;
  grid-template-columns: auto repeat(24, 1fr);
  gap: 2px;
  font-size: 0.65rem;
}
.heatmap .day-label {
  display: flex;
  align-items: center;
  color: #8aa0b5;
  padding-right: 0.4rem;
}
.heatmap .cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(126, 184, 218, 0.08);
  min-width: 0;
}
.heatmap .cell[data-level="1"] { background: rgba(126, 184, 218, 0.25); }
.heatmap .cell[data-level="2"] { background: rgba(126, 184, 218, 0.45); }
.heatmap .cell[data-level="3"] { background: rgba(126, 184, 218, 0.7); }
.heatmap .cell[data-level="4"] { background: rgba(126, 184, 218, 0.95); }

.dash-note {
  font-size: 0.8rem;
  color: #7a91a8;
  text-align: center;
  margin: 1.5rem 0 2rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
}

/* 404 */
.error-page {
  text-align: center;
  padding: 5rem 1rem;
}
.error-page .code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-page h1 { margin-bottom: 0.75rem; }
.error-page p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Privacy */
.privacy-content {
  max-width: 720px;
  margin: 0 auto;
}
.privacy-content h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.6rem;
}
.privacy-content p { margin-bottom: 0.85rem; color: var(--text-muted); }

/* Mobile */
@media (max-width: 900px) {
  .nav-list {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  }
  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-list a,
  .nav-list button {
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
  }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .dashboard-page .nav-list {
    background: rgba(15, 28, 42, 0.98);
  }
}

@media (max-width: 480px) {
  .hero-content { padding: 2.5rem 0; }
  .section { padding: 2.5rem 0; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 300;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0.5rem;
}
