/* Custom styles for Binchen's Tech Blog */

/* Hide right-side code tools panel */
.quarto-code-tools {
  display: none !important;
}

.quarto-code-tools-container {
  display: none !important;
}

.quarto-code-tools-content {
  display: none !important;
}

/* Hide any code-related right panels */
[data-quarto-code-tools] {
  display: none !important;
}

/* Fix right-side shadow issue */
body {
  overflow-x: hidden;
}

.quarto-layout-row {
  overflow-x: hidden;
}

.quarto-layout-row > * {
  overflow-x: hidden;
}

.main-content {
  overflow-x: hidden;
}

/* Remove any unwanted shadows from the right side */
.quarto-container {
  box-shadow: none !important;
}

.quarto-layout-row {
  box-shadow: none !important;
}

/* Card hover effects */
.card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(45deg, #007bff, #0056b3);
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #0056b3, #004085);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,123,255,0.4);
}

.btn-outline-primary {
  border: 2px solid #007bff;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,123,255,0.4);
}

/* Badge styles */
.badge {
  font-size: 0.8rem;
  padding: 0.5em 0.8em;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.badge:hover {
  transform: scale(1.05);
}

/* Icon styles */
.bi {
  transition: transform 0.3s ease;
}

.bi:hover {
  transform: scale(1.2);
}

/* Research focus cards */
.d-flex.align-items-start:hover .bi {
  transform: scale(1.1);
}

/* Custom link styles */
a {
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0056b3;
}

/* Header styling */
h1 {
  background: linear-gradient(45deg, #007bff, #28a745);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

/* Section headers */
h2 {
  border-bottom: 3px solid #007bff;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

/* Card title styling */
.card-title {
  color: #2c3e50;
  font-weight: 600;
}

/* Research Grid Styles */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.research-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
}

.research-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: #007bff;
}

.research-item h4 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.research-item p {
  color: #6c757d;
  margin: 0;
  line-height: 1.5;
}

/* Tech Grid Styles */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.tech-category {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.tech-category h5 {
  color: #495057;
  margin-bottom: 15px;
  font-size: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tech-tag {
  background: #e9ecef;
  color: #495057;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: #007bff;
  color: white;
  transform: scale(1.05);
}

/* Contact Grid Styles */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin: 30px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.contact-icon {
  font-size: 1.5rem;
  width: 30px;
  text-align: center;
}

.contact-item a {
  color: #495057;
  font-weight: 500;
}

.contact-item a:hover {
  color: #007bff;
}

/* Latest Posts Styles */
.latest-posts h3 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.latest-posts p {
  color: #6c757d;
  margin-bottom: 15px;
  line-height: 1.6;
}

.latest-posts a {
  color: #007bff;
  font-weight: 500;
}

.latest-posts a:hover {
  text-decoration: underline;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .card {
    margin-bottom: 20px;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .research-grid,
  .tech-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer styling */
.page-footer {
  background: #f8f9fa;
  padding: 20px 0;
  margin-top: 50px;
  border-top: 1px solid #dee2e6;
}

/* Search bar styling */
.quarto-search {
  border-radius: 25px;
}

/* Navigation improvements */
.navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Sidebar styling */
.sidebar {
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
}

/* Code block improvements */
pre {
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

/* Table improvements */
.table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #007bff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}
