/* ============================================
   Sidney Bissoli - Personal Website Styles
   Clean, minimal, professional design
   ============================================ */

/* Import elegant fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* Color palette */
:root {
  --primary-color: #2d3748;
  --secondary-color: #4a5568;
  --accent-color: #3182ce;
  --text-color: #2d3748;
  --light-gray: #f7fafc;
  --border-color: #e2e8f0;
  --blue-soft: #bee3f8;
  --blue-very-light: #ebf8ff;
  --grey-light: #edf2f7;
  --white: #ffffff;
}

/* ============================================
   Base Typography
   ============================================ */

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Crimson Text', Georgia, serif;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; color: var(--secondary-color); }

/* ============================================
   Hero Section (Home Page)
   ============================================ */

.hero-section {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 900px;
  width: 100%;
}

.hero-image-col {
  flex-shrink: 0;
}

.hero-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.02);
}

.hero-text-col {
  text-align: left;
}

.hero-section h1 {
  font-size: 3rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-quote {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1.15rem;
  color: var(--secondary-color);
  line-height: 1.8;
  max-width: 400px;
}

.hero-quote em {
  font-style: italic;
  color: var(--text-color);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  background-color: var(--white) !important;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--secondary-color) !important;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-color) !important;
}

.navbar-brand {
  font-family: 'Crimson Text', serif;
  font-weight: 600;
  font-size: 1.3rem;
}

/* ============================================
   Footer
   ============================================ */

.nav-footer {
  background-color: var(--light-gray) !important;
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

/* ============================================
   Links
   ============================================ */

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* ============================================
   Cards and Grid Layouts
   ============================================ */

.quarto-listing-category {
  border-left: 3px solid var(--blue-soft);
  padding-left: 1rem;
}

.card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
}

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

.card-img-top {
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-family: 'Crimson Text', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Category tags */
.quarto-category {
  background-color: var(--blue-very-light);
  color: var(--accent-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* ============================================
   Publication Styles (Research Page)
   ============================================ */

.publication {
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: var(--light-gray);
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

.publication strong {
  font-size: 1.1rem;
  color: var(--primary-color);
}

.publication em {
  color: var(--secondary-color);
  font-style: italic;
}

.publication-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.publication-links a {
  background: var(--accent-color);
  color: var(--white) !important;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none !important;
}

.publication-links a:hover {
  background: var(--primary-color);
}

/* ============================================
   CV Download Button
   ============================================ */

.cv-download {
  text-align: center;
  margin-top: 2rem;
}

.cv-download .btn-primary {
  background-color: var(--accent-color);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: 500;
}

.cv-download .btn-primary:hover {
  background-color: var(--primary-color);
}

/* ============================================
   Callouts
   ============================================ */

.callout {
  border-radius: 8px;
  margin: 1.5rem 0;
}

.callout-tip {
  border-left-color: var(--accent-color);
  background-color: var(--blue-very-light);
}

/* ============================================
   Content Pages
   ============================================ */

.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* Lists */
ul {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

li strong {
  color: var(--primary-color);
}

/* Horizontal rules */
hr {
  border: none;
  height: 1px;
  background: var(--border-color);
  margin: 2rem 0;
}

/* ============================================
   Language Switcher
   ============================================ */

.language-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.language-switcher a {
  font-size: 1.2rem;
  text-decoration: none;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 3rem 1.5rem;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-text-col {
    text-align: center;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

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

  .hero-quote {
    max-width: 100%;
  }

  .hero-image {
    width: 180px;
    height: 180px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .card-img-top {
    height: 150px;
  }
}

/* ============================================
   Dark Mode Support (Future)
   ============================================ */

/*
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #e2e8f0;
    --secondary-color: #a0aec0;
    --text-color: #e2e8f0;
    --light-gray: #1a202c;
    --border-color: #2d3748;
    --white: #171923;
  }
}
*/
