/* ============================================
   KazkaCraft - Colorful Craft Studio Design
   ============================================ */

/* CSS Variables - Colorful Palette */
:root {
  --primary: #00a8a8;      /* vibrant teal */
  --secondary: #ff6b6b;    /* warm coral */
  --accent: #ffd93d;       /* sunny yellow */
  --extra: #a78bfa;        /* soft purple */
  --surface: #ffffff;      /* light surface */
  --surface-alt: #f8f9fa;  /* alternate surface */
  --text: #1a1a1a;         /* dark text */
  --text-light: #4a5568;   /* lighter text */
  --border: #e2e8f0;       /* subtle border */
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--surface);
}

/* Typography */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text);
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header & Navigation */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--extra) 100%);
  padding: 1rem 0;
  box-shadow: 0 2px 8px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid white;
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.25rem;
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: white;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  padding: 3rem 2rem;
  border-radius: 20px;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/pattern-confetti.svg');
  background-repeat: repeat;
  opacity: 0.1;
  pointer-events: none;
}

.hero h1 {
  position: relative;
  z-index: 1;
  color: var(--text);
}

.hero p {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Cards & Sections */
.section {
  margin-bottom: 3rem;
}

.section-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--extra) 100%);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 16px 16px 0 0;
  margin-bottom: 0;
}

.section-content {
  background: var(--surface);
  padding: 2rem;
  border-radius: 0 0 16px 16px;
  border: 2px solid var(--border);
  border-top: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--shadow-hover);
}

.card h3 {
  margin-top: 0;
  color: var(--primary);
}

/* Sticker Badges */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--text);
  margin-bottom: 1rem;
}

.badge-primary {
  background: var(--primary);
  color: white;
}

.badge-secondary {
  background: var(--secondary);
  color: white;
}

.badge-extra {
  background: var(--extra);
  color: white;
}

/* Callout Boxes */
.callout {
  background: linear-gradient(135deg, var(--surface-alt) 0%, white 100%);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  position: relative;
}

.callout-accent {
  border-left-color: var(--accent);
  background: linear-gradient(135deg, #fff9e6 0%, white 100%);
}

.callout-secondary {
  border-left-color: var(--secondary);
  background: linear-gradient(135deg, #fff0f0 0%, white 100%);
}

/* Steps / Process */
.steps {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-content {
  flex: 1;
  background: var(--surface-alt);
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid var(--border);
}

/* Character Grid */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.character-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.character-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--shadow);
}

.character-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.character-trait {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.character-detail {
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
}

/* Template Cards */
.template-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.template-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--extra));
  border-radius: 16px 16px 0 0;
}

.template-field {
  margin: 1rem 0;
  padding: 0.75rem;
  border: 2px dashed var(--border);
  border-radius: 8px;
  background: var(--surface-alt);
  min-height: 40px;
}

/* Game Cards */
.game-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.game-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.game-title::before {
  content: '🎲';
  font-size: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: #008a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-accent {
  background: var(--accent);
  color: var(--text);
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--text) 0%, #2d3748 100%);
  color: white;
  padding: 3rem 1rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.breadcrumbs a {
  color: var(--primary);
}

.breadcrumbs span {
  margin: 0 0.5rem;
  color: var(--text-light);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.blog-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--shadow-hover);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card h3 {
  margin-top: 0;
}

.blog-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.article-header {
  margin-bottom: 2rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.checklist {
  background: var(--surface-alt);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.checklist ul {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* FAQ */
.faq-list {
  margin: 2rem 0;
}

.faq-item {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--shadow);
}

.faq-question {
  background: var(--surface-alt);
  padding: 1.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background: var(--border);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  color: var(--text);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 1000px;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Pattern Background */
.pattern-bg {
  position: relative;
  background-image: url('../img/pattern-confetti.svg');
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.05;
}

.pattern-bg > * {
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .nav-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--extra) 100%);
    padding: 1rem;
    box-shadow: 0 4px 8px var(--shadow);
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  nav a {
    display: block;
    padding: 1rem;
    border-radius: 8px;
  }

  .header-container {
    position: relative;
  }

  .hero {
    padding: 2rem 1.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .character-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
  }

  .step-number {
    align-self: flex-start;
  }

  main {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 1.5rem 1rem;
  }

  .section-content {
    padding: 1.5rem;
  }
}


