/* Next Match Up — base styles. Claude Design override pour brand spécifique. */

:root {
  --primary: #0066cc;
  --primary-dark: #004499;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #e0e0e0;
  --radius: 8px;
  --shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

html { font-size: 16px; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

header, main, footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

header { border-bottom: 1px solid var(--border); margin-bottom: 2rem; }

header h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

nav a { color: var(--primary); text-decoration: none; }
nav a:hover { text-decoration: underline; }

main { padding: 1rem; min-height: 50vh; }

section { margin-bottom: 2.5rem; }

h2 { font-size: 1.4rem; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.75rem; margin-top: 1.5rem; }

p { margin-bottom: 1rem; }

button, input[type="submit"] {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s;
}

button:hover, input[type="submit"]:hover { background: var(--primary-dark); }

input[type="text"], input[type="number"], select, textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

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

@media (max-width: 480px) {
  html { font-size: 15px; }
  header h1 { font-size: 1.3rem; }
  h2 { font-size: 1.2rem; }
}

/* === Share bar === */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin: 2.5rem 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.share-label {
  font-weight: 600;
  font-size: .9rem;
  color: #475569;
  margin-right: .5rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .7rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1e293b;
  font-size: .85rem;
  text-decoration: none;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}
.share-btn:hover { background: #f1f5f9; border-color: #94a3b8; }
.share-btn svg { flex-shrink: 0; }
.share-twitter:hover { background: #000; color: #fff; border-color: #000; }
.share-facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-linkedin:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.share-whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-reddit:hover { background: #ff4500; color: #fff; border-color: #ff4500; }
.share-email:hover { background: #475569; color: #fff; border-color: #475569; }
.share-copy:hover { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.share-copy.copied {
  background: #10b981 !important;
  color: #fff !important;
  border-color: #10b981 !important;
}
@media (max-width: 600px) {
  .share-name { display: none; }
  .share-btn { padding: .55rem; }
}

/* TBS network interlink list (in About page) */
.tbs-network-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.tbs-network-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border, #ddd);
}
.tbs-network-list li:last-child { border-bottom: none; }
.tbs-network-list a strong {
  color: var(--text, inherit);
  text-decoration: underline;
  text-underline-offset: 3px;
}
