html, body {
  height: 100vh;
}
body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color: #e6e6e6;
  background: #0b0f14;
  overflow-y: auto;
}
body.builder-page {
  overflow: hidden;
}
main {
  max-width: 840px;
  margin: 48px auto;
  padding: 0 24px;
}
h1 {
  font-size: 2rem;
  margin: 0 0 16px;
}
ul {
  padding-left: 20px;
}
li {
  margin-bottom: 12px;
}

.home-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.3);
}
.home-link .home-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.reveal {
  background: #0a0a0a url("https://images.unsplash.com/photo-1659823449893-c1e106e10a98?auto=format&fit=crop&w=2400&q=80") center center / cover fixed;
  position: relative;
}
.reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 11, 15, 0.65);
  pointer-events: none;
  z-index: 0;
}
.reveal .slides {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.reveal a {
  color: #77d1ff;
}
.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  color: #f7f7f7;
}

/* Builder Styles */
.builder-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: 100vh;
}
.editor-pane {
  width: 40%;
  display: flex;
  flex-direction: column;
  background: #1a1f26;
  border-right: 1px solid #333;
  padding: 16px;
  box-sizing: border-box;
}
.preview-pane {
  width: 60%;
  position: relative;
  background: #000;
}
.editor-pane textarea {
  flex: 1;
  background: #0b0f14;
  color: #e6e6e6;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 12px;
  font-family: monospace;
  font-size: 14px;
  resize: none;
  outline: none;
}
.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.editor-header input {
  background: transparent;
  border: none;
  border-bottom: 1px solid #444;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 4px;
  flex: 1;
  margin-right: 12px;
}
.editor-footer {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}
button {
  background: #3498db;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
button:hover {
  background: #2980b9;
}
button.secondary {
  background: #555;
}
button.secondary:hover {
  background: #666;
}

/* Dashboard Styles */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.btn-create {
  background: #2ecc71;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s;
}
.btn-create:hover {
  background: #27ae60;
}
.slide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.slide-card {
  background: #1a1f26;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.slide-card:hover {
  transform: translateY(-4px);
  border-color: #3498db;
}
.slide-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.slide-card p {
  color: #999;
  font-size: 0.9rem;
  margin: 0 0 20px;
}
.card-actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
}
.card-actions a, .card-actions button {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-edit { background: #3498db; color: white; }
.btn-present { background: #9b59b6; color: white; }
.btn-delete { background: #e74c3c; color: white; }

.section-title {
  font-size: 1.5rem;
  margin: 40px 0 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
}

@media (max-width: 768px) {
  .builder-container {
    flex-direction: column;
  }
  .editor-pane, .preview-pane {
    width: 100%;
    height: 50%;
  }
  .home-link {
    width: 40px;
    height: 40px;
    top: 10px;
    left: 10px;
  }
  .reveal h1 {
    font-size: 1.6em;
    line-height: 1.2;
    word-break: break-word;
  }
  .reveal p {
    font-size: 1em;
    line-height: 1.5;
  }
}
@media (max-width: 480px) {
  .home-link {
    width: 36px;
    height: 36px;
    top: 8px;
    left: 8px;
  }
  .reveal h1 {
    font-size: 1.4em;
  }
  .reveal p {
    font-size: 0.95em;
  }
}
