/**
 * Project Details Page Styles
 * Modern, clean styling for individual project pages
 */

/* ====== Breadcrumbs ====== */
.breadcrumbs {
  padding: 20px 0;
  background: #f5f8fb;
  min-height: auto;
}

.breadcrumbs h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #272829;
  margin: 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.breadcrumbs ol li {
  display: flex;
  align-items: center;
}

.breadcrumbs ol li + li::before {
  content: "/";
  padding: 0 10px;
  color: #6c757d;
}

.breadcrumbs ol li a {
  color: #149ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs ol li a:hover {
  color: #0d6ebd;
}

/* ====== Project Details Section ====== */
.project-details {
  padding: 60px 0;
}

/* ====== Project Info Card ====== */
.project-info-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 20px;
  margin-bottom: 2rem;
}

.project-info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #272829;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #149ddd;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-info-card h3 i {
  color: #149ddd;
}

/* Project Meta Info */
.project-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.project-meta li {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.project-meta li:last-child {
  border-bottom: none;
}

.project-meta li strong {
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.project-meta li strong i {
  color: #149ddd;
}

.project-meta li span {
  color: #272829;
  font-size: 1rem;
  font-weight: 500;
}

/* Technology Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: linear-gradient(135deg, #149ddd 0%, #0d6ebd 100%);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
}

/* Project Links */
.project-links {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.project-links h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #272829;
  margin-bottom: 1rem;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  color: #272829;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: #149ddd;
  color: #fff;
  transform: translateX(5px);
}

.project-link i {
  font-size: 1.25rem;
}

.project-link span {
  font-weight: 500;
}

/* ====== Project Gallery ====== */
.project-gallery {
  margin-bottom: 2rem;
}

.project-gallery .main-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-gallery .main-image:hover {
  transform: scale(1.02);
}

/* Gallery grid for multiple images */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ====== Project Description ====== */
.project-description {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.project-description h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #272829;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.project-description h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #149ddd;
  border-radius: 3px;
}

.project-description p {
  color: #555;
  line-height: 1.8;
  font-size: 1rem;
}

/* ====== Key Features ====== */
.project-features {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.project-features h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #272829;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.project-features h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #149ddd;
  border-radius: 3px;
}

.project-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-features ul li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  color: #555;
  line-height: 1.6;
}

.project-features ul li::before {
  content: "\f26a";
  font-family: bootstrap-icons;
  position: absolute;
  left: 0;
  top: 0.75rem;
  color: #149ddd;
  font-size: 1rem;
}

/* ====== Related Publications ====== */
.related-publications {
  background: linear-gradient(135deg, #f5f8fb 0%, #fff 100%);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #eee;
}

.related-publications h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #272829;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-publications h3 i {
  color: #149ddd;
}

.publication-link {
  display: block;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #eee;
  margin-bottom: 0.75rem;
}

.publication-link:hover {
  border-color: #149ddd;
  box-shadow: 0 4px 15px rgba(20, 157, 221, 0.1);
  transform: translateY(-2px);
}

.publication-link:last-child {
  margin-bottom: 0;
}

.publication-link .pub-title {
  color: #272829;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.publication-link .pub-venue {
  color: #6c757d;
  font-size: 0.9rem;
  font-style: italic;
}

/* ====== Project Navigation ====== */
.project-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  text-align: center;
}

.project-navigation .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.project-navigation .btn-outline-primary {
  border-color: #149ddd;
  color: #149ddd;
}

.project-navigation .btn-outline-primary:hover {
  background: #149ddd;
  color: #fff;
  transform: translateX(-5px);
}

/* ====== Code Blocks ====== */
.project-description pre,
.project-features pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 1rem 0;
}

.project-description code {
  background: #f5f5f5;
  color: #d63384;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ====== Responsive Design ====== */
@media (max-width: 991px) {
  .project-info-card {
    position: static;
    margin-bottom: 2rem;
  }
  
  .breadcrumbs h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .breadcrumbs .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .project-details {
    padding: 40px 0;
  }
  
  .project-info-card,
  .project-description,
  .project-features {
    padding: 1.5rem;
  }
  
  .project-description h3,
  .project-features h3 {
    font-size: 1.25rem;
  }
}

/* ====== Dark Mode Support ====== */
[data-theme="dark"] .breadcrumbs {
  background: var(--dark-bg-secondary, #242526);
}

[data-theme="dark"] .breadcrumbs h2 {
  color: var(--dark-text-primary, #e4e6eb);
}

[data-theme="dark"] .project-info-card,
[data-theme="dark"] .project-description,
[data-theme="dark"] .project-features {
  background: var(--dark-bg-secondary, #242526);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .project-info-card h3,
[data-theme="dark"] .project-description h3,
[data-theme="dark"] .project-features h3 {
  color: var(--dark-text-primary, #e4e6eb);
}

[data-theme="dark"] .project-meta li {
  border-color: #3a3b3c;
}

[data-theme="dark"] .project-meta li span {
  color: var(--dark-text-primary, #e4e6eb);
}

[data-theme="dark"] .project-description p,
[data-theme="dark"] .project-features ul li {
  color: var(--dark-text-secondary, #b0b3b8);
}

[data-theme="dark"] .project-link {
  background: #3a3b3c;
  color: var(--dark-text-primary, #e4e6eb);
}

[data-theme="dark"] .project-link:hover {
  background: #149ddd;
  color: #fff;
}

[data-theme="dark"] .project-links,
[data-theme="dark"] .project-navigation {
  border-color: #3a3b3c;
}

/* .project-links h4 is hardcoded to near-black above, which disappears against
   the dark card background. */
[data-theme="dark"] .project-links h4 {
  color: var(--text-primary, #e4e6eb);
}

[data-theme="dark"] .related-publications {
  background: linear-gradient(135deg, #3a3b3c 0%, #242526 100%);
  border-color: #3a3b3c;
}

[data-theme="dark"] .publication-link {
  background: #242526;
  border-color: #3a3b3c;
}

[data-theme="dark"] .publication-link .pub-title {
  color: var(--dark-text-primary, #e4e6eb);
}
