/* css styles */

/* About Page Enhancements */
.about-entity .about-link {
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

.about-entity .about-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Profile image styling */
.about-entity img {
  border: 4px solid #e9ecef;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.about-entity img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* Typography improvements */
.about-entity .about-contents h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.5rem;
}

.about-entity .about-contents h3 {
  margin-top: 1.5rem;
  font-weight: 500;
  color: #495057;
}

/* Grid styling for interests section */
.grid {
  gap: 1.5rem;
}

.grid > div {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Dark mode adjustments */
body.quarto-dark .grid > div {
  background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

body.quarto-dark .about-entity img {
  border-color: #495057;
}

body.quarto-dark .about-entity .about-contents h3 {
  color: #adb5bd;
}

/* Quote styling */
blockquote {
  border-left: 4px solid #0d6efd;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6c757d;
}

/* Smooth transitions for all interactive elements */
* {
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* List styling in about page */
.about-entity .about-contents ul {
  list-style: none;
  padding-left: 0;
}

.about-entity .about-contents ul li::before {
  content: "▹ ";
  color: #0d6efd;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* ============================================
   HOME PAGE STYLING
   ============================================ */

/* Hero section */
.hero-section {
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section h3 {
  font-size: 1.4rem;
  font-weight: 400;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #495057;
}

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

.hero-buttons .btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
  border: none;
  color: white;
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.hero-buttons .btn-outline-secondary {
  border: 2px solid #6c757d;
  color: #6c757d;
  background: transparent;
}

.hero-buttons .btn-outline-secondary:hover {
  background: #6c757d;
  color: white;
  transform: translateY(-2px);
}

/* Dark mode hero */
body.quarto-dark .hero-section {
  background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

body.quarto-dark .hero-section h1 {
  background: linear-gradient(135deg, #4da3ff 0%, #6edcff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.quarto-dark .hero-section h3 {
  color: #adb5bd;
}

body.quarto-dark .hero-section p {
  color: #ced4da;
}

/* Section headers on home page */
#quarto-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

#quarto-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd 0%, #0dcaf0 100%);
  border-radius: 2px;
}

/* Callout styling */
.callout {
  border-radius: 12px;
  margin: 2rem 0;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.callout-note {
  border-left: 4px solid #0d6efd;
}

.callout h2 {
  margin-top: 0 !important;
  font-size: 1.3rem;
}

.callout ul {
  margin-bottom: 0;
}

/* Post grid improvements */
.quarto-listing-grid {
  gap: 2rem;
}

.quarto-post.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.quarto-post.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.quarto-post.card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.quarto-post.card .card-body {
  padding: 1.5rem;
}

.quarto-post.card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.quarto-post.card .card-text {
  color: #6c757d;
  line-height: 1.6;
}

.quarto-post.card .listing-categories {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quarto-post.card .listing-category {
  background: #e9ecef;
  color: #495057;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.quarto-post.card .listing-category:hover {
  background: #0d6efd;
  color: white;
}

/* Dark mode post cards */
body.quarto-dark .quarto-post.card {
  background: #212529;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.quarto-dark .quarto-post.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

body.quarto-dark .quarto-post.card .card-text {
  color: #adb5bd;
}

body.quarto-dark .quarto-post.card .listing-category {
  background: #343a40;
  color: #ced4da;
}

body.quarto-dark .quarto-post.card .listing-category:hover {
  background: #0d6efd;
  color: white;
}

/* Listing controls (sort/filter) */
.quarto-listing-controls {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
}

body.quarto-dark .quarto-listing-controls {
  background: #212529;
}

/* Reading time badge */
.listing-reading-time {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section h3 {
    font-size: 1.1rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}

/* Social links on home page */
.social-links-home {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0 3rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.social-links-home .social-icon {
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-links-home .social-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  color: #0d6efd;
  background: #e7f1ff;
}

body.quarto-dark .social-links-home {
  background: #212529;
}

body.quarto-dark .social-links-home .social-icon {
  background: #343a40;
  color: #ced4da;
}

body.quarto-dark .social-links-home .social-icon:hover {
  color: #4da3ff;
  background: #1a2b3c;
}
