/* Custom styles for modern, minimal design */

/* Typography improvements */
body {
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

/* Social links section */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.social-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.btn-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* CV improvements */
.cv-meta {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.cv-date-location {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.cv-position {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #159957;
}

.publication-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-left: 3px solid #159957;
  border-radius: 4px;
}

.publication-item strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
}

.publication-item a {
  color: #159957;
  text-decoration: none;
}

.publication-item a:hover {
  text-decoration: underline;
}

/* Contact form improvements */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.required {
  color: #d73a49;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e4e8;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #159957;
  box-shadow: 0 0 0 3px rgba(21, 153, 87, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  background-color: #159957;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background-color: #13884a;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.form-status {
  padding: 1rem;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  color: #155724;
  margin-top: 1.5rem;
}

.form-status p {
  margin: 0;
}

/* Blog improvements */
.blog-posts {
  margin-top: 2rem;
}

.blog-post-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e1e4e8;
}

.blog-post-item:last-child {
  border-bottom: none;
}

.blog-post-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.blog-post-title a {
  color: #159957;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-post-title a:hover {
  color: #13884a;
  text-decoration: underline;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9em;
  color: #666;
}

.blog-post-meta time {
  font-weight: 500;
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #f1f3f5;
  border-radius: 12px;
  font-size: 0.85em;
  color: #495057;
}

.blog-post-excerpt {
  margin: 1rem 0;
  color: #555;
  line-height: 1.6;
}

.btn-read-more {
  display: inline-block;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
}

.btn-read-more:hover {
  transform: translateX(4px);
}

/* Section separators */
hr {
  border: none;
  border-top: 2px solid #e1e4e8;
  margin: 2rem 0;
}

/* Navigation improvements */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.main-nav .btn {
  transition: all 0.2s ease;
}

.main-nav .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Footer improvements */
.site-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e1e4e8;
  text-align: center;
  color: #666;
  font-size: 0.9em;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-social .social-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.footer-social a:hover {
  color: #159957;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .contact-form {
    margin: 1rem 0;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .blog-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .main-nav {
    flex-direction: column;
    align-items: center;
  }
  
  .main-nav .btn {
    width: 100%;
    max-width: 200px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus improvements for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #159957;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .main-nav,
  .site-footer,
  .btn {
    display: none;
  }
}
