/* ===== Portfolio Detail Page Styles ===== */

/* Hero Section */
.portfolio-detail-hero {
  position: relative;
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--tech)) 100%);
  color: hsl(var(--primary-foreground));
  overflow: hidden;
}

.portfolio-detail-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.portfolio-detail-hero .container {
  position: relative;
  z-index: 1;
}

.portfolio-hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Status Badge */
.portfolio-status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: hsl(var(--primary-foreground));
}

.portfolio-status-badge.status-active {
  background: rgba(73, 255, 120, 0.3);
  color: #49ff78;
}

.portfolio-status-badge.status-completed {
  background: rgba(255, 255, 255, 0.3);
  color: hsl(var(--primary-foreground));
}

/* Title */
.portfolio-title-large {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: hsl(var(--primary-foreground));
}

@media (min-width: 640px) {
  .portfolio-title-large {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .portfolio-title-large {
    font-size: 4.5rem;
  }
}

.portfolio-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Meta Grid */
.portfolio-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.portfolio-meta-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.portfolio-meta-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.meta-icon {
  font-size: 2rem;
  line-height: 1;
}

.meta-content {
  flex: 1;
}

.meta-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.meta-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
}

/* Breadcrumbs styles are now in the global breadcrumb component template */

/* Detail Text Section */
.portfolio-detail-section {
  padding: 4rem 0;
}

.portfolio-detail-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: hsl(var(--foreground));
}

.portfolio-detail-content h2,
.portfolio-detail-content h3,
.portfolio-detail-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.portfolio-detail-content p {
  margin-bottom: 1.5rem;
}

.portfolio-detail-content ul,
.portfolio-detail-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.portfolio-detail-content li {
  margin-bottom: 0.5rem;
}

/* Technologies Section */
.portfolio-technologies-section {
  padding: 4rem 0;
}

.technologies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.tech-badge {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid hsl(var(--border));
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.tech-badge:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Challenges Section */
.portfolio-challenges-section {
  padding: 4rem 0;
}

.challenges-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.challenge-item {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: hsl(var(--card));
  border-radius: var(--radius);
  border-left: 4px solid hsl(var(--primary));
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.challenge-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.challenge-item > div {
  display: flex;
  align-items: start;
  gap: 1rem;
}

.challenge-item span:last-child {
  flex: 1;
  color: hsl(var(--foreground));
  line-height: 1.6;
}

/* Solutions Section */
.portfolio-solutions-section {
  padding: 4rem 0;
}

.solutions-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.solution-item {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: hsl(var(--card));
  border-radius: var(--radius);
  border-left: 4px solid hsl(var(--success));
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.solution-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.solution-item > div {
  display: flex;
  align-items: start;
  gap: 1rem;
}

.solution-item span:last-child {
  flex: 1;
  color: hsl(var(--foreground));
  line-height: 1.6;
}

/* Results Section */
.portfolio-results-section {
  padding: 4rem 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.result-card {
  padding: 2rem;
  background: hsl(var(--card));
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid hsl(var(--border));
}

.result-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.result-card > div:first-child {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.result-card p {
  color: hsl(var(--foreground));
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Features Section */
.portfolio-features-section {
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  padding: 1.5rem;
  background: hsl(var(--card));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid hsl(var(--border));
}

.feature-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-item > div {
  display: flex;
  align-items: start;
  gap: 1rem;
}

.feature-item span:first-child {
  font-size: 1.5rem;
  line-height: 1;
  color: hsl(var(--primary));
}

.feature-item span:last-child {
  flex: 1;
  color: hsl(var(--foreground));
  line-height: 1.6;
}

/* Gallery Section */
.portfolio-gallery-section {
  padding: 4rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  aspect-ratio: 16 / 9;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

/* Testimonial Section */
.portfolio-testimonial-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--tech)) 100%);
  color: hsl(var(--primary-foreground));
}

.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  background: hsl(var(--card));
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.testimonial-card > div:first-child {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.testimonial-card blockquote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
  line-height: 1.8;
}

.testimonial-card > div:last-child {
  font-weight: 600;
  color: hsl(var(--primary));
  font-size: 1.125rem;
}

/* CTA Section */
.portfolio-cta-section {
  padding: 4rem 0;
}

.cta-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  background: hsl(var(--card));
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid hsl(var(--border));
}

.cta-card .section-heading {
  margin-bottom: 1rem;
}

.cta-card .section-subtitle {
  margin-bottom: 2rem;
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
}

/* Section Title */
.section-title {
  margin-bottom: 3rem;
}

.section-title.text-center {
  text-align: center;
}

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

@media (min-width: 640px) {
  .section-heading {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .section-heading {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* Error Message */
.error-message {
  text-align: center;
  padding: 3rem;
  max-width: 600px;
  margin: 0 auto;
}

.error-message h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.error-message p {
  margin-bottom: 2rem;
  color: hsl(var(--muted-foreground));
}

/* Background Utilities */
.bg-secondary {
  background-color: hsl(var(--secondary));
}

.bg-gradient-primary {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--tech)) 100%);
}

/* Section Spacing */
.section-large {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .section-large {
    padding: 6rem 0;
  }
}

/* Animation Utilities */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].fade-in {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.2s;
}

.fade-in-delay-2 {
  transition-delay: 0.4s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .portfolio-title-large {
    font-size: 2rem;
  }

  .portfolio-meta-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .testimonial-card,
  .cta-card {
    padding: 2rem 1.5rem;
  }

  .section-heading {
    font-size: 1.75rem;
  }
}
