/* Custom Purple Theme for Quarto Blog */

:root {
  --purple-primary: #5f1f7f;
  --purple-light: #905ea9;
  --purple-lighter: #8A7A92;
  --purple-dark: #443540;
  --purple-darker: #2F252E;
  --text-dark: #2d3748;
  --text-light: #49628f;
  --background-light: #fafafa;
}

/* Navbar styling with purple theme */
.navbar {
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-light) 100%);
  border-bottom: 1px solid var(--purple-lighter);
}

.navbar-brand, .navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: var(--purple-lighter) !important;
  transition: color 0.3s ease;
}

.navbar-toggler {
  border-color: var(--purple-lighter);
}

/* Title banner styling */
.quarto-title-banner {
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%);
  color: white;
}

.title-block-banner .quarto-title-banner {
  padding: 2rem 0;
}

/* Hero section styling */
.hero-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  padding: 2rem;
}

.hero-section h1 {
  color: var(--purple-darker);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-section p {
  color: var(--text-dark);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* About page specific styling */
.about-container {
  max-width: 800px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.profile-section {
  text-align: center;
}

.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 4px solid var(--purple-primary);
  box-shadow: 0 4px 20px rgba(154, 123, 176, 0.3);
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

.about-content {
  text-align: center;
  max-width: 600px;
}

.about-content h1 {
  color: var(--purple-darker);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  font-weight: 600;
}

.about-content h2 {
  color: var(--purple-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-content ul {
  text-align: left;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.about-content ul li {
  margin-bottom: 0.5rem;
}

/* Newsletter button styling */
.newsletter-section {
  margin: 2rem 0;
}

.newsletter-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(154, 123, 176, 0.3);
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(154, 123, 176, 0.4);
  color: white;
  text-decoration: none;
}

/* Sidebar TOC styling */
.sidebar-toc {
  position: sticky;
  top: 2rem;
  float: right;
  width: 250px;
  margin-left: 2rem;
  margin-bottom: 2rem;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--purple-lighter);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-toc h3 {
  color: var(--purple-dark);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--purple-lighter);
  padding-bottom: 0.5rem;
}

.sidebar-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-toc ul li {
  margin-bottom: 0.25rem;
}

.sidebar-toc ul li a {
  color: var(--purple-primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.sidebar-toc ul li a:hover {
  color: var(--purple-dark);
  text-decoration: underline;
}

/* Code blocks styling */
pre {
  border-radius: 8px;
  border: 1px solid var(--purple-lighter);
  background: #f8f9fa;
}

code {
  color: var(--purple-dark);
  background: var(--purple-lighter);
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

/* Post cards styling */
.card {
  transition: all 0.3s ease;
  border: 1px solid var(--purple-lighter);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(154, 123, 176, 0.2);
  border-color: var(--purple-primary);
}

/* Links styling */
a {
  color: var(--purple-primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--purple-dark);
}

/* Button styling */
.btn-primary {
  background: var(--purple-primary);
  border-color: var(--purple-primary);
}

.btn-primary:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
}

/* Footer styling */
.nav-footer {
  background: var(--background-light);
  border-top: 1px solid var(--purple-lighter);
  color: var(--text-light);
}

/* Hide Quarto's built-in TOC elements */
.toc-title,
.table-of-contents,
#toc,
.quarto-toc,
.toc-container,
div[role="doc-toc"] {
  display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .about-container {
    margin: 1rem;
    padding: 0 1rem;
  }

  .profile-image {
    width: 200px;
    height: 200px;
  }

  .sidebar-toc {
    display: none;
  }

  .about-content h1 {
    font-size: 2rem;
  }
}