/* ==========================================================================
   PROJECT_DETAIL.CSS - Project Detail Page Styles
   ========================================================================== */

.project-detail-hero {
  padding-top: calc(80px + 2rem);
  background: linear-gradient(to bottom, #000000, #0a0a0a);
  padding-bottom: 2rem;
}

@media (max-width: 991px) {
  .project-detail-hero {
    padding-top: calc(70px + 1.5rem);
    padding-bottom: 1.5rem;
  }
}

.project-detail-hero .breadcrumb {
  margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
  .project-detail-hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
  }
  
  .project-detail-hero .lead {
    font-size: 1rem;
  }
  
  .project-detail-hero .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Project Image */
.project-detail-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

.project-detail-img-placeholder {
  min-height: 400px;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cccccc;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

@media (max-width: 768px) {
  .project-detail-img-placeholder {
    min-height: 250px;
  }
}

/* Project Content */
.project-detail-content {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .project-detail-content {
    padding: 1.5rem;
    margin-top: 1.5rem;
  }
}

.project-detail-content h3 {
  color: #00d9ff;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

@media (max-width: 576px) {
  .project-detail-content h3 {
    font-size: 1.5rem;
  }
}

.project-detail-content .description-text {
  color: #cccccc;
  font-size: 1.05rem;
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 1rem;
}

@media (max-width: 768px) {
  .project-detail-content .description-text {
    font-size: 0.95rem;
    line-height: 1.7;
    max-height: 200px;
  }
}

@media (max-width: 576px) {
  .project-detail-content .description-text {
    max-height: 100px;
    padding-right: 0.5rem;
  }
}

/* Custom scrollbar per description */
.project-detail-content .description-text::-webkit-scrollbar {
  width: 8px;
}

.project-detail-content .description-text::-webkit-scrollbar-track {
  background: #000000;
  border-radius: 10px;
}

.project-detail-content .description-text::-webkit-scrollbar-thumb {
  background: #00d9ff;
  border-radius: 10px;
  border: 2px solid #000000;
}

.project-detail-content .description-text::-webkit-scrollbar-thumb:hover {
  background: #4dffff;
}

.project-detail-content .description-text p {
  margin-bottom: 1.25rem;
}

.project-detail-content .description-text p:last-child {
  margin-bottom: 0;
}

/* Sidebar */
.sticky-sidebar {
  position: static;
}

@media (max-width: 991px) {
  .sticky-sidebar {
    margin-top: 2rem;
  }
}

.project-info-card {
  background: #0a0a0a;
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .project-info-card {
    padding: 1.5rem;
  }
}

.project-info-card:hover {
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.1);
}

.project-info-card h4 {
  color: #00d9ff;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.project-info-label {
  color: #888888;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.project-info-value {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.sidebar-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h5 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #00d9ff;
}

/* Tech Tags */
.tech-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 8px;
  color: #00d9ff;
  font-size: 0.875rem;
  margin: 0.25rem;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(0, 217, 255, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .tech-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Links */
.link-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 217, 255, 0.1);
  border: 2px solid #00d9ff;
  border-radius: 12px;
  color: #00d9ff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.link-badge:hover {
  background: #00d9ff;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

/* Related Projects */
.related-projects-section {
  background: #0a0a0a;
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .related-projects-section {
    padding: 3rem 0;
  }
}

.related-projects-section h3 {
  color: #ffffff;
  margin-bottom: 3rem;
}

@media (max-width: 576px) {
  .related-projects-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
}

.related-project-card {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.related-project-card:hover {
  border-color: #00d9ff;
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.related-project-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
}

.breadcrumb-item {
  color: #cccccc;
  font-size: 0.9rem;
}

@media (max-width: 576px) {
  .breadcrumb-item {
    font-size: 0.8rem;
  }
}

.breadcrumb-item a {
  color: #00d9ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #4dffff;
}

.breadcrumb-item.active {
  color: #ffffff;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #888888;
  padding: 0 0.5rem;
}

/* Badges */
.project-category-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 217, 255, 0.1);
  color: #00d9ff;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

@media (max-width: 576px) {
  .project-category-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

.project-title-gradient {
  background: linear-gradient(135deg, #00d9ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.share-divider {
  border: 0;
  height: 2px;
  background: #00d9ff;
  opacity: 1;
  margin: 0 auto;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 2px solid;
  border-radius: 12px;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.25rem;
  cursor: pointer;
  transition: none;
}

.share-btn i {
  position: relative;
  z-index: 1;
}

/* LinkedIn */
.share-btn-linkedin {
  border-color: #0077b5;
  color: #0077b5;
}

/* WhatsApp */
.share-btn-whatsapp {
  border-color: #25d366;
  color: #25d366;
}

/* Facebook */
.share-btn-facebook {
  border-color: #1877f2;
  color: #1877f2;
}

/* Instagram */
.share-btn-instagram {
  border-color: #e4405f;
  color: #e4405f;
}

/* Copy Link */
.share-btn-copy {
  border-color: #00d9ff;
  color: #00d9ff;
}

/* Copy Notification */
.copy-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #00d9ff, #00a8cc);
  color: #000000;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 217, 255, 0.4);
  transform: translateY(150px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 9999;
  display: flex;
  align-items: center;
}

.copy-notification.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 576px) {
  .share-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .copy-notification {
    bottom: 20px;
    right: 20px;
    left: 20px;
    text-align: center;
    justify-content: center;
    font-size: 0.875rem;
    padding: 0.875rem 1rem;
  }
}
