/* ======================================================
   univiz.org — Playful Educational Theme
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #f0f7ff;
  --color-card-bg: #ffffff;
  --color-primary: #1d6cc8;
  --color-primary-dark: #1558a8;
  --color-text: #1a1a2e;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --radius: 16px;
  --radius-pill: 100px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.14);
  --max-width: 1100px;
  --font: 'Nunito', system-ui, sans-serif;

  /* Per-tool accent colors (live tools) */
  --c-chatbot: #4f46e5;
  --c-graphs:  #059669;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* === HEADER === */

header {
  background: var(--color-primary);
  color: #fff;
  padding: 0 2rem;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 20px rgba(29, 108, 200, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo span { color: #93c5fd; }

nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
nav a:hover { color: #fff; }

/* === HERO === */

.hero {
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 50%, #c7d2fe 100%);
  padding: 5rem 2rem;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.hero h1 span { color: var(--color-primary); }

.hero p {
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.7;
}
.hero p a { color: var(--color-primary); font-weight: 700; }

/* === SECTIONS === */

section {
  padding: 4rem 2rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
}

.section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

/* === TOOLS GRID === */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

/* Colored top accent bar */
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--accent, #e5e7eb);
  transition: height 0.2s;
}

.tool-card[data-tool="chatbot"] { --accent: var(--c-chatbot); }
.tool-card[data-tool="graphs"]  { --accent: var(--c-graphs); }

.tool-card.live:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--accent, #e5e7eb);
}
.tool-card.live:hover::before { height: 7px; }

.tool-card.coming-soon {
  opacity: 0.7;
  cursor: default;
  background: #f9fafb;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
}
.badge.live { background: #dbeafe; color: #1e40af; }
.badge.soon { background: #fef9c3; color: #92400e; }

.tool-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex: 1;
}

.card-footer {
  font-size: 0.78rem;
  color: #9ca3af;
  border-top: 1px solid #f3f4f6;
  padding-top: 0.75rem;
  margin-top: auto;
}

.card-url {
  font-weight: 700;
  color: var(--accent, var(--color-primary));
}

/* === ABOUT === */

#about {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 24px;
  margin: 0 2rem 2rem;
  padding: 3rem 2rem;
}

#about .section-inner {
  max-width: calc(var(--max-width) - 4rem);
}

.about-inner {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.about-photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.about-text h2 { margin-bottom: 0.2rem; }

.about-role {
  display: block;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.about-text p {
  color: #374151;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.btn-link {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(29, 108, 200, 0.3);
}
.btn-link:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* === FOOTER === */

footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  border-radius: 24px 24px 0 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

footer a { color: rgba(255, 255, 255, 0.85); }
footer a:hover { color: #fff; }
footer p + p { margin-top: 0.5rem; }

/* === RESPONSIVE === */

@media (max-width: 600px) {
  nav { display: none; }
  .hero { padding: 3rem 1.5rem; }
  section { padding: 3rem 1.5rem; }
  #about { margin: 0 1rem 1rem; padding: 2rem 1.5rem; }
  .about-inner { flex-direction: column; align-items: center; text-align: center; }
}
