/* ==========================================================================
   Vibecoding Custom Theme for Material for MkDocs
   letsvibe.org Community Documentation
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom Color Palette
   -------------------------------------------------------------------------- */

:root {
  /* Primary colors - vibrant pink/magenta accent */
  --md-primary-fg-color: #E6496F;
  --md-primary-fg-color--light: #F06B8A;
  --md-primary-fg-color--dark: #C73A5C;
  --md-primary-bg-color: #FFFFFF;
  --md-primary-bg-color--light: #F5F5F5;

  /* Accent colors - matching the letsvibe.org signup button */
  --md-accent-fg-color: #E6496F;
  --md-accent-fg-color--transparent: rgba(230, 73, 111, 0.1);

  /* Override the hue for consistent theming */
  --md-hue: 340;
}

/* Force deep black background on slate scheme */
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #000000;
  --md-default-bg-color--light: #0A0A0A;
  --md-default-bg-color--lighter: #121212;
  --md-default-bg-color--lightest: #1A1A1A;

  /* Code block backgrounds */
  --md-code-bg-color: #0D0D0D;

  /* Footer */
  --md-footer-bg-color: #000000;
  --md-footer-bg-color--dark: #000000;

  /* Text colors for better contrast */
  --md-default-fg-color: rgba(255, 255, 255, 0.87);
  --md-default-fg-color--light: rgba(255, 255, 255, 0.54);
  --md-default-fg-color--lighter: rgba(255, 255, 255, 0.32);
  --md-default-fg-color--lightest: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   2. Typography - Google Fonts
   -------------------------------------------------------------------------- */

/* Import Noto Serif for headings */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;1,400&display=swap');

/* Headings use Noto Serif */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-family: "Noto Serif", serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.md-typeset h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.md-typeset h2 {
  font-size: 1.75rem;
}

.md-typeset h3 {
  font-size: 1.25rem;
}

/* Body text - Source Sans Pro (loaded via mkdocs.yml font config) */
.md-typeset {
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   3. Hero Section Styles
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  margin: -1rem -0.8rem 2rem -0.8rem;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(20, 10, 15, 0.98) 50%,
    rgba(0, 0, 0, 0.95) 100%
  );
  overflow: hidden;
}

/* Dark illustrated background with overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
}

/* Gradient overlay for depth */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
}

.hero-title {
  font-family: "Noto Serif", serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 1rem 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-subtitle {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 2.5rem 0;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   4. Hero CTA Buttons Container
   -------------------------------------------------------------------------- */

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   5. CTA Button Styles
   -------------------------------------------------------------------------- */

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #FFFFFF;
  background: #E6496F;
  border: 2px solid #E6496F;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 73, 111, 0.4);
}

.cta-button:hover {
  background: #F06B8A;
  border-color: #F06B8A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 73, 111, 0.5);
  color: #FFFFFF;
  text-decoration: none;
}

.cta-button:focus {
  outline: none;
  box-shadow:
    0 6px 20px rgba(230, 73, 111, 0.5),
    0 0 0 3px rgba(230, 73, 111, 0.3);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(230, 73, 111, 0.4);
}

/* Secondary/Outline Button */
.cta-button.cta-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.cta-button.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   6. Navigation Enhancements
   -------------------------------------------------------------------------- */

/* Header/nav bar styling */
[data-md-color-scheme="slate"] .md-header {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Search icon styling */
.md-search__icon {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.md-search__icon:hover {
  color: #E6496F;
}

/* Search input pop-over styling */
[data-md-color-scheme="slate"] .md-search__form {
  background: #1A1A1A;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-md-color-scheme="slate"] .md-search__input {
  background: transparent;
  color: #FFFFFF;
}

[data-md-color-scheme="slate"] .md-search__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Search results */
[data-md-color-scheme="slate"] .md-search__output {
  background: #0A0A0A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 8px 8px;
}

/* Navigation tabs */
[data-md-color-scheme="slate"] .md-tabs {
  background: transparent;
}

[data-md-color-scheme="slate"] .md-tabs__link {
  color: rgba(255, 255, 255, 0.7);
}

[data-md-color-scheme="slate"] .md-tabs__link:hover,
[data-md-color-scheme="slate"] .md-tabs__link--active {
  color: #E6496F;
}

/* --------------------------------------------------------------------------
   7. Content Cards Enhancement
   -------------------------------------------------------------------------- */

[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(230, 73, 111, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Card icons */
[data-md-color-scheme="slate"] .md-typeset .grid.cards .twemoji,
[data-md-color-scheme="slate"] .md-typeset .grid.cards .lg {
  color: #E6496F;
}

/* --------------------------------------------------------------------------
   8. Links and Interactive Elements
   -------------------------------------------------------------------------- */

[data-md-color-scheme="slate"] .md-typeset a {
  color: #E6496F;
  transition: color 0.2s ease;
}

[data-md-color-scheme="slate"] .md-typeset a:hover {
  color: #F06B8A;
}

/* Admonitions */
[data-md-color-scheme="slate"] .md-typeset .admonition {
  background: rgba(255, 255, 255, 0.03);
  border-left-color: #E6496F;
}

/* Code blocks */
[data-md-color-scheme="slate"] .md-typeset code {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

[data-md-color-scheme="slate"] .md-typeset pre > code {
  background: #0D0D0D;
}

/* --------------------------------------------------------------------------
   9. Footer Styling
   -------------------------------------------------------------------------- */

[data-md-color-scheme="slate"] .md-footer {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-md-color-scheme="slate"] .md-footer-meta {
  background: #000000;
}

/* --------------------------------------------------------------------------
   10. Responsive Adjustments
   -------------------------------------------------------------------------- */

@media screen and (max-width: 768px) {
  .hero {
    min-height: 70vh;
    padding: 3rem 1.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 280px;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 1.875rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
   11. Page Layout Adjustments
   -------------------------------------------------------------------------- */

/* Remove extra padding around hero on homepage */
.md-main__inner.md-grid {
  margin-top: 0;
}

/* Content area styling */
[data-md-color-scheme="slate"] .md-content {
  background: transparent;
}

/* Sidebar styling */
[data-md-color-scheme="slate"] .md-sidebar {
  background: transparent;
}

[data-md-color-scheme="slate"] .md-nav__link {
  color: rgba(255, 255, 255, 0.7);
}

[data-md-color-scheme="slate"] .md-nav__link:hover,
[data-md-color-scheme="slate"] .md-nav__link--active {
  color: #E6496F;
}
