/* MINDSETOR Docs - Matching App Theme */
:root {
  --primary: #FF6B5B;
  --primary-light: #FF8A7A;
  --gold: #FFB347;
  --background: #FAFAFA;
  --surface: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
}

.logo img {
  border-radius: 8px;
}

nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s;
}

nav a:hover {
  background: rgba(255, 107, 91, 0.1);
}

/* Main */
main {
  flex: 1;
  padding: 48px 0;
}

.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Article Page Styles */
article {
  background: var(--surface);
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

article h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-primary);
}

article h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

article h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

article p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

article ul,
article ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text-secondary);
}

article li {
  margin-bottom: 8px;
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

article th,
article td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

article th {
  background: var(--background);
  font-weight: 600;
  color: var(--text-primary);
}

article td {
  color: var(--text-secondary);
}

.highlight-box {
  background: linear-gradient(135deg, rgba(255, 107, 91, 0.1), rgba(255, 179, 71, 0.1));
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 24px 0;
}

.highlight-box p {
  margin: 0;
  color: var(--text-primary);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 24px;
}

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

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}

footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  article {
    padding: 24px;
  }

  article h1 {
    font-size: 1.5rem;
  }
}