/* ==================== After Bedtime Creations Website ==================== */
/* Night Sky Theme - Dreamy, soft aesthetic */

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

:root {
  /* Night Sky Theme Colors */
  --bg-primary: #0c1929;
  --bg-secondary: #1a2744;
  --bg-card: #0f1621;
  --text-primary: #f0f0f0;
  --text-secondary: #b8d4e8;
  --text-muted: #7a8fa5;
  --border-color: #5a7a9a;
  --border-hover: #7a9ab8;

  /* Soft Muted Palette */
  --color-light-blue: #b8d4e8;
  --color-muted-rose: #c9a0a0;
  --color-muted-sage: #a0c9a8;
  --color-muted-sky: #a0b8c9;
  --color-golden: #d4c78a;
  --color-frame: #5a7a9a;

  /* Night Sky Gradient */
  --night-sky-start: #1a2744;
  --night-sky-end: #0c1929;

  /* Legacy accent colors (softer versions) */
  --accent-blue: #a0b8c9;
  --accent-blue-hover: #b8d4e8;
  --accent-green: #a0c9a8;
  --accent-red: #c9a0a0;
  --accent-yellow: #d4c78a;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --glow: 0 0 20px rgba(212, 199, 138, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Comfortaa', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, var(--night-sky-start) 0%, var(--night-sky-end) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

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

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

/* Brand Colors (for styled title - softer versions) */
.brand-red { color: var(--color-muted-rose) !important; }
.brand-blue { color: var(--color-muted-sky) !important; }
.brand-green { color: var(--color-muted-sage) !important; }
.brand-yellow { color: var(--color-golden) !important; }

/* Container */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px;
}

.container-narrow {
  max-width: 700px;
}

/* ==================== Navigation ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.95) 0%, rgba(12, 25, 41, 0.95) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.nav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 18px;
}

.nav-brand svg {
  filter: drop-shadow(0 0 8px rgba(212, 199, 138, 0.3));
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--color-light-blue);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(90, 122, 154, 0.2);
  color: var(--text-primary);
}

.nav-link.active {
  background: rgba(212, 199, 138, 0.2);
  color: var(--color-golden);
  border: 1px solid var(--color-golden);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--night-sky-start) 0%, var(--night-sky-end) 100%);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-link {
    padding: 12px 16px;
  }
}

/* ==================== Hero Section ==================== */
.hero {
  padding: 100px 0 40px;
  text-align: center;
}

.hero-logo {
  margin-bottom: 16px;
}

.hero-logo svg {
  filter: drop-shadow(0 0 20px rgba(212, 199, 138, 0.3));
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: var(--color-light-blue);
}

.hero-tagline {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Banner Variant - uses img tag with baked-in text */
.hero-banner {
  padding-top: 96px;
  padding-bottom: 20px;
  text-align: center;
}

.hero-banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-banner-wrapper {
  position: relative;
  display: inline-block;
  max-width: 860px;
  width: 100%;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  border-radius: 32px;
  box-shadow: var(--shadow), var(--glow);
  border: 1px solid var(--border-color);
  display: block;
}

.hero-buttons-overlay {
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero icon buttons (uniform style) */
.hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(12, 25, 41, 0.7);
  border: 1px solid var(--border-color);
  color: var(--color-light-blue);
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'Comfortaa', sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.hero-icon:hover {
  background: rgba(212, 199, 138, 0.2);
  border-color: var(--color-golden);
  color: var(--color-golden);
}

.hero-icon-label {
  width: auto;
  padding: 0 16px;
  gap: 8px;
}

.hero-banner .hero-buttons {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .hero-banner-img {
    border-radius: 24px;
  }

  .hero-buttons-overlay {
    bottom: 12%;
    gap: 8px;
  }

  .hero-icon {
    width: 38px;
    height: 38px;
  }

  .hero-icon-label {
    padding: 0 14px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-banner-img {
    border-radius: 20px;
  }

  .hero-buttons-overlay {
    bottom: 18%;
    gap: 4px;
  }

  .hero-icon {
    width: 30px;
    height: 30px;
  }

  .hero-icon svg {
    width: 14px;
    height: 14px;
  }

  /* Hide "Projects" text on small screens, show only icon */
  .hero-icon-label {
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 0;
    gap: 0;
  }

  .hero-icon-label svg {
    width: 14px;
    height: 14px;
  }
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Comfortaa', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-golden);
  color: #1a2744;
}

.btn-primary:hover {
  background: #e0d49a;
  color: #1a2744;
  box-shadow: 0 0 15px rgba(212, 199, 138, 0.4);
}

.btn-secondary {
  background: rgba(90, 122, 154, 0.15);
  color: var(--color-light-blue);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(90, 122, 154, 0.25);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-patreon {
  background: var(--color-muted-rose);
  color: #1a2744;
}

.btn-patreon:hover {
  background: #d4b0b0;
  color: #1a2744;
  box-shadow: 0 0 15px rgba(201, 160, 160, 0.4);
}

/* ==================== Cards ==================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(160, 200, 168, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted-sage);
  border: 1px solid rgba(160, 200, 168, 0.2);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-light-blue);
}

.card-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.card-description {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.card-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==================== Sections ==================== */
.section {
  padding: 40px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-light-blue);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
}

/* ==================== Features Grid ==================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(184, 212, 232, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-light-blue);
  margin-bottom: 12px;
  border: 1px solid rgba(184, 212, 232, 0.2);
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-light-blue);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==================== Project Cards ==================== */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.project-card:hover {
  box-shadow: var(--glow);
}

.project-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.project-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-muted-sage);
  color: #1a2744;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
}

.project-badge.beta {
  background: var(--color-golden);
  color: #1a2744;
}

.project-badge.patreon {
  background: var(--color-muted-rose);
  color: #1a2744;
}

.project-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-light-blue);
}

.project-tagline {
  color: var(--text-secondary);
  font-size: 16px;
}

.project-content {
  padding: 24px;
}

.project-features {
  list-style: none;
  margin-bottom: 16px;
}

.project-features li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
}

.project-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-muted-sage);
  font-weight: bold;
}

.project-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==================== Changelog ==================== */
.changelog-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.changelog-entry:hover {
  border-color: var(--border-hover);
}

.changelog-version {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.changelog-version h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-light-blue);
}

.changelog-date {
  font-size: 14px;
  color: var(--text-muted);
}

.changelog-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.changelog-tag.added {
  background: rgba(160, 200, 168, 0.2);
  color: var(--color-muted-sage);
}

.changelog-tag.changed {
  background: rgba(160, 184, 201, 0.2);
  color: var(--color-muted-sky);
}

.changelog-tag.fixed {
  background: rgba(212, 199, 138, 0.2);
  color: var(--color-golden);
}

.changelog-tag.removed {
  background: rgba(201, 160, 160, 0.2);
  color: var(--color-muted-rose);
}

.changelog-tag.release {
  background: rgba(180, 160, 212, 0.25);
  color: #c0a0d4;
}

.changelog-list {
  list-style: none;
}

.changelog-list li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text-secondary);
  font-size: 14px;
}

.changelog-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ==================== About Page ==================== */
.about-hero {
  text-align: center;
  padding: 100px 0 32px;
}

.about-avatar {
  width: 120px;
  height: 120px;
  background: var(--bg-secondary);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--border-color);
  box-shadow: var(--glow);
}

.about-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.about-content h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--color-light-blue);
}

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

.about-content p:last-child {
  margin-bottom: 0;
}

/* ==================== Footer ==================== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  text-align: center;
  background: rgba(12, 25, 41, 0.5);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-light-blue);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-link:hover {
  color: var(--color-golden);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
}

/* ==================== Utilities ==================== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .hero {
    padding: 88px 0 32px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .section {
    padding: 32px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .project-header,
  .project-content {
    padding: 20px;
  }

  .project-title {
    font-size: 22px;
  }

  .about-hero {
    padding: 88px 0 24px;
  }
}
