/* Custom styles for Byron Vinueza's Quarto site */

/* General polish */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
}

/* About page avatar styling */
.about-image {
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.quarto-dark .about-image {
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.about-image:hover {
  transform: scale(1.04);
}

/* Hero tagline styling */
.hero-tagline {
  font-size: 1.15rem;
  font-weight: 400;
  color: #495057;
  max-width: 680px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}

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

/* Featured cards on Home & Projects */
.featured-card, .project-card {
  padding: 1.5rem;
  border-radius: 12px;
  background-color: rgba(44, 62, 80, 0.03);
  border: 1px solid rgba(44, 62, 80, 0.1);
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-card:hover, .project-card:hover {
  transform: translateY(-4px);
  border-color: #2c3e50;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

body.quarto-dark .featured-card, body.quarto-dark .project-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.quarto-dark .featured-card:hover, body.quarto-dark .project-card:hover {
  border-color: #375a7f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.project-card .project-description {
  font-size: 0.95rem;
  color: #495057;
  line-height: 1.6;
  margin: 0.75rem 0 1rem 0;
}

body.quarto-dark .project-card .project-description {
  color: #ced4da;
}

.project-card h5 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  margin-top: 0.5rem;
}

body.quarto-dark .project-card h5 {
  color: #adb5bd;
}

.project-card ul {
  padding-left: 1.2rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.project-card li {
  margin-bottom: 0.3rem;
}

/* Skills badge styling */
.badge-skill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  margin: 0.2rem 0.15rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 16px;
  background-color: rgba(44, 62, 80, 0.07);
  border: 1px solid rgba(44, 62, 80, 0.12);
  transition: all 0.2s ease;
}

.badge-skill:hover {
  background-color: #2c3e50;
  color: #fff;
  transform: translateY(-2px);
}

/* Dark mode adjustments for badges */
body.quarto-dark .badge-skill {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8f9fa;
}

body.quarto-dark .badge-skill:hover {
  background-color: #375a7f;
  color: #fff;
}

/* Inline Tech Stack tags for CV items */
.badge-tech {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  margin: 0.15rem 0.1rem;
  border-radius: 6px;
  background-color: rgba(44, 62, 80, 0.08);
  color: #2c3e50;
}

body.quarto-dark .badge-tech {
  background-color: rgba(255, 255, 255, 0.12);
  color: #e9ecef;
}

/* CV Header Card with High Contrast in Light and Dark Mode */
.cv-header-card {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background-color: rgba(44, 62, 80, 0.05);
  border: 1px solid rgba(44, 62, 80, 0.12);
  margin-bottom: 1.5rem;
}

.cv-header-card h3 {
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--bs-primary, #2c3e50);
}

.cv-header-card .cv-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bs-body-color, #34495e);
  margin-bottom: 0.35rem;
}

.cv-header-card .cv-contact-info {
  font-size: 0.9rem;
  color: var(--bs-secondary-color, #6c757d);
  margin-bottom: 0;
}

.cv-header-card .cv-contact-info a {
  color: var(--bs-link-color, #2c3e50);
  text-decoration: none;
  font-weight: 500;
}

.cv-header-card .cv-contact-info a:hover {
  text-decoration: underline;
}

/* Universal Dark Mode Overrides */
body.quarto-dark .cv-header-card,
.quarto-dark .cv-header-card,
[data-bs-theme="dark"] .cv-header-card {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

body.quarto-dark .cv-header-card h3,
.quarto-dark .cv-header-card h3,
[data-bs-theme="dark"] .cv-header-card h3 {
  color: #5bc0de !important;
}

body.quarto-dark .cv-header-card .cv-subtitle,
.quarto-dark .cv-header-card .cv-subtitle,
[data-bs-theme="dark"] .cv-header-card .cv-subtitle {
  color: #ffffff !important;
}

body.quarto-dark .cv-header-card .cv-contact-info,
.quarto-dark .cv-header-card .cv-contact-info,
[data-bs-theme="dark"] .cv-header-card .cv-contact-info {
  color: #f8f9fa !important;
}

body.quarto-dark .cv-header-card .cv-contact-info a,
.quarto-dark .cv-header-card .cv-contact-info a,
[data-bs-theme="dark"] .cv-header-card .cv-contact-info a {
  color: #5bc0de !important;
}

/* Quick Stats Bar in CV */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  background-color: rgba(44, 62, 80, 0.04);
  border: 1px solid rgba(44, 62, 80, 0.1);
  text-align: center;
}

body.quarto-dark .stats-bar {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.2;
}

body.quarto-dark .stat-number {
  color: #5bc0de;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}

body.quarto-dark .stat-label {
  color: #adb5bd;
}

/* Year badge */
.badge-year {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  background-color: rgba(44, 62, 80, 0.1);
  color: #2c3e50;
}

body.quarto-dark .badge-year {
  background-color: rgba(255, 255, 255, 0.15);
  color: #e9ecef;
}

/* Card hover effect in listings */
.quarto-grid-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quarto-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* CV Layout & Timeline styling */
.cv-item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  border-left: 2px solid rgba(44, 62, 80, 0.2);
}

body.quarto-dark .cv-item {
  border-left: 2px solid rgba(255, 255, 255, 0.25);
}

.cv-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #2c3e50;
  border: 2px solid #fff;
}

body.quarto-dark .cv-item::before {
  background-color: #375a7f;
  border-color: #222;
}

.cv-item h4 {
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}

.cv-item h5 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.cv-item ul {
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.cv-item li {
  margin-bottom: 0.4rem;
}

/* Tabset pill styling */
.nav-pills .nav-link.active, .nav-tabs .nav-link.active {
  font-weight: 600;
}

/* Print-Friendly Rules */
@media print {
  .navbar, .page-footer, .nav-tabs, .btn, .d-flex.justify-content-between {
    display: none !important;
  }
  
  body {
    font-size: 10pt;
    line-height: 1.4;
    color: #000 !important;
    background: #fff !important;
  }
  
  .cv-item {
    border-left: 2px solid #333 !important;
    page-break-inside: avoid;
    margin-bottom: 1.2rem;
  }
  
  .cv-item::before {
    background-color: #000 !important;
    border-color: #fff !important;
  }
  
  .badge-skill, .badge-tech, .badge-year {
    border: 1px solid #999 !important;
    background-color: #f0f0f0 !important;
    color: #000 !important;
  }
}
