/* Reset and global variables */

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

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-alt: #11161d;
  --border: #30363d;
  --text: #e6edf3;
  --text2: #8b949e;
  --accent: #58a6ff;
  --accent-soft: rgba(88, 166, 255, 0.2);
  --green: #3fb950;
  --green-soft: rgba(63, 185, 80, 0.2);
  --red: #f85149;
  --red-soft: rgba(248, 81, 73, 0.2);
  --orange: #d29922;
  --orange-soft: rgba(210, 153, 34, 0.2);
  --purple: #a371f7;
  --cyan: #39c5cf;
  --ttft: #f778ba;
  --teal: #2fbf9f;
  --radius: 10px;
}

html {
  font-size: 15px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text2);
  font-size: 0.8rem;
  text-align: center;
}

h1 {
  margin-bottom: 0.35rem;
  font-size: 1.65rem;
}

h2 {
  font-size: 1.15rem;
  color: var(--text2);
}

p {
  margin: 0;
}

.link-button {
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
}

.link-button:hover {
  text-decoration: underline;
}

.loading-skeleton {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.loading-skeleton-text {
  display: block;
  color: var(--text2);
  font-size: 0.9rem;
}

.section-loading {
  min-height: 120px;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (max-width: 760px) {
  main {
    margin: 1rem auto;
    padding: 0 1rem;
  }
}
