/* Landing (welcome) page styles */
:root {
  --welcome-color: #7c3aed;
  --welcome-color-dark: #a78bfa;
  --card-bg: #0f172a;
  --card-border: #1f2937;
  --text-heading: #f8fafc;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
}

.welcome-page {
  min-height: 100vh;
  /* Local CSS variables for Welcome page */
  --bg-primary: #0b1220;
  --bg-secondary: #0f172a;
  --border-color: #1f2937;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-heading: #f8fafc;
  background: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.5;
  position: relative;
  padding-top: 60px; /* Add space for the fixed navbar */
}

/* Ensure navbar is visible on welcome page */
.welcome-page .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.welcome-page .welcome-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px;
  min-height: calc(100vh - 120px);
}

/* Card styles */
.welcome-page .card {
  margin: 24px 0;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

/* Two-column layout */
.two-col {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.two-col .col {
  flex: 1;
  min-width: 300px;
}

.two-col .text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.two-col .illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.two-col img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Reverse layout for alternating sections */
.two-col.reverse {
  flex-direction: row-reverse;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .two-col {
    flex-direction: column;
    gap: 24px;
  }
  
  .two-col .col {
    width: 100%;
  }
  
  .two-col.reverse {
    flex-direction: column;
  }
}

/* Welcome card specific styles */
.welcome-page .welcome-card {
  margin: 16px 0;
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.welcome-page .md h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  color: var(--text-heading);
  line-height: 1.2;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.welcome-page .md h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 2rem 0 1.5rem;
  color: var(--text-heading);
  position: relative;
  padding-bottom: 0.5rem;
}

.welcome-page .md h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  border-radius: 2px;
}

.welcome-page .md p {
  margin: 1.25rem 0;
  line-height: 1.7;
  color: var(--text-primary);
  font-size: 1.1rem;
}

/* List styling */
.welcome-page ol, 
.welcome-page ul {
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.welcome-page li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.welcome-page li strong {
  color: var(--text-heading);
  font-weight: 600;
}

/* Buttons */
.welcome-page .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.welcome-page .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.welcome-page .btn.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  margin-left: 1rem;
}

/* Apply outlined navbar style to landing page Login / Register button */
.welcome-page .button.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.welcome-page .button.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Dark theme variants */
@media (prefers-color-scheme: dark) {
  .welcome-page {
    background: linear-gradient(135deg, #0b1220, #0b1220);
  }
}

/* When data-theme="dark" is forced */
html[data-theme="dark"] .welcome-page .md code {
  background: rgba(167, 139, 250, 0.1);
  color: #c4b5fd;
}

/* Gallery styles */
.welcome-page .gallery {
  margin: 24px 0 8px;
}

.welcome-page .gallery h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-heading);
}

.welcome-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 900px) {
  .welcome-page .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.welcome-page .gallery-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.welcome-page .gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.welcome-page .gallery-item figcaption {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
}

/* Two-column sections */
.welcome-page .two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

@media (min-width: 760px) {
  .welcome-page .two-col {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
  }
  .welcome-page .two-col.reverse {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.welcome-page .two-col .col.text h1 {
  font-size: 2rem;
  margin: 0 0 12px;
}

.welcome-page .two-col .col.text h2 {
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.welcome-page .two-col .col.text p,
.welcome-page .two-col .col.text li {
  color: var(--text-primary);
}

.welcome-page .two-col .col.text ol,
.welcome-page .two-col .col.text ul {
  padding-left: 1.25rem;
}

.welcome-page .two-col .col.illustration img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}
