/* Telehub shared UI — typography, buttons, header, footer */

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

:root {
  --bg-deep: #0b0d12;
  --bg-elevated: #13161f;
  --bg-card: #1a1f2c;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --text-muted: #9aa3b2;
  --accent-tg: #2aabee;
  --accent-tg-hover: #4dc4ff;
  --accent-dc: #5865f2;
  --accent-dc-hover: #7289da;
  --accent-warn: #f59e0b;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1100px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(42, 171, 238, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(88, 101, 242, 0.06), transparent 45%);
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 14px;
  background: var(--bg-card);
  border-radius: 8px;
  z-index: 1000;
}

.info-bar {
  width: 100%;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: #1a1206;
  background: linear-gradient(90deg, #fcd34d, #fbbf24, #fcd34d);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Banner variant when the strip sits below the hero (not flush to viewport top) */
.info-bar--banner {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 520px) {
  .info-bar {
    font-size: 0.62rem;
    letter-spacing: 0.02em;
    padding: 0.55rem 0.75rem;
  }
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
}

.site-logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.site-logo span {
  color: var(--accent-tg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.wrap {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn--telegram {
  color: #fff;
  background: linear-gradient(135deg, #229ed9, #2aabee);
  box-shadow: 0 4px 20px rgba(42, 171, 238, 0.35);
}

.btn--telegram:hover {
  background: linear-gradient(135deg, #1d8fc7, var(--accent-tg-hover));
  box-shadow: 0 6px 28px rgba(42, 171, 238, 0.45);
}

.btn--discord {
  color: #fff;
  background: linear-gradient(135deg, #4752c4, var(--accent-dc));
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
}

.btn--discord:hover {
  background: linear-gradient(135deg, #3c45a5, var(--accent-dc-hover));
  box-shadow: 0 6px 28px rgba(88, 101, 242, 0.45);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-subtle);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-footer {
  margin-top: auto;
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--text);
}
