/* ProjectDetailPage Styles */

/* Project Detail Page Styles - Redesigned */
.project-detail-page {
  min-height: 100vh;
  background: var(--bg-primary);
}

/* Hero Section - New Layout */
.project-hero {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: var(--space-2xl) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
}

.project-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f3f4f6' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: var(--space-2xl);
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-md);
}

.breadcrumb-link:hover {
  color: var(--color-primary);
  background: var(--bg-secondary);
}

.breadcrumb-icon {
  width: 16px;
  height: 16px;
}

/* Hero Grid Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* Project Image Container */
.project-image-container {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--bg-secondary);
}

.project-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-image-container:hover .image-overlay {
  opacity: 1;
}

/* Project Info */
.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
}

.project-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.project-category {
  background: var(--color-primary);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.project-date {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  border: var(--border-width) solid var(--border-color);
}

.project-title {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-4xl));
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
}

.project-description {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-2xl);
  color: var(--text-secondary);
}

/* Actions */
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Content Section */
.project-content {
  padding: var(--space-4xl) 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-4xl);
}

.main-content {
  min-width: 0;
}

.content-section {
  margin-bottom: var(--space-4xl);
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 3px solid var(--color-primary);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-secondary);
}

.section-content {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.project-long-description {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xl);
  line-height: var(--line-height-relaxed);
}

/* Features */
.features-list {
  margin-top: var(--space-2xl);
}

.features-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  border: var(--border-width) solid var(--border-color);
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
}

.feature-item:hover {
  transform: translateX(4px);
  border-color: var(--color-primary);
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: var(--color-success);
  flex-shrink: 0;
}

/* Technologies */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.tech-item {
  animation: fadeInUp 0.6s ease-out;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.gallery-item {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
  background: var(--bg-secondary);
  position: relative;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  backdrop-filter: blur(2px);
}

.gallery-expand-icon {
  width: 2rem;
  height: 2rem;
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Info Card */
.info-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-xl);
  padding: var(--space-xl);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.info-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: var(--border-width) solid var(--border-color);
}

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

.info-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
}

.info-value {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

/* Related Projects */
.related-projects {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-xl);
  padding: var(--space-xl);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.related-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.related-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
  border: var(--border-width) solid transparent;
}

.related-item:hover {
  background: var(--bg-primary);
  border-color: var(--border-color);
  transform: translateX(4px);
}

.related-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  flex-shrink: 0;
}

.related-content {
  flex: 1;
  min-width: 0;
}

.related-project-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  line-height: var(--line-height-tight);
}

.related-project-description {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 350px 1fr;
    gap: var(--space-2xl);
  }

  .content-grid {
    grid-template-columns: 1fr 280px;
    gap: var(--space-3xl);
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .project-image-container {
    max-width: 500px;
    margin: 0 auto;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .project-hero {
    padding: var(--space-xl) 0 var(--space-2xl);
  }

  .hero-grid {
    gap: var(--space-xl);
  }

  .project-image {
    height: 250px;
  }

  .project-info {
    min-height: auto;
  }

  .project-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .project-actions .btn,
  .project-actions .btn-outline {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .related-item {
    flex-direction: column;
    text-align: center;
  }

  .related-image {
    width: 100%;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .project-meta {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .project-category,
  .project-date {
    display: inline-block;
    width: fit-content;
  }

  .features {
    gap: var(--space-sm);
  }

  .feature-item {
    padding: var(--space-sm);
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
