/* ========================================
   Project Detail Page Styles
   Extracted from inline styles in project-detail.html
   ======================================== */

/* Hero Section with Gradient */
.detail-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff 50%, #fff5f3 100%);
  position: relative;
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(254, 102, 78, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Detail Card - Glassmorphism */
.detail-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.detail-image {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.detail-card:hover .detail-image img {
  transform: scale(1.02);
}

.detail-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
}

/* Content Section */
.detail-content {
  padding: 40px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.detail-badge {
  background: linear-gradient(135deg, #fe664e, #ff8066);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-date {
  color: #afafaf;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-date i {
  color: #fe664e;
}

/* Title */
.detail-content h1 {
  font-size: 36px;
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 25px;
  line-height: 1.3;
  background: linear-gradient(135deg, #2a2a2a, #5a5a5a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description */
.detail-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 30px;
}

/* Feature Items */
.detail-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: #f8f9ff;
  border-radius: 16px;
  border: 1px solid #eef1ff;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: #fe664e;
}

.feature-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #fe664e, #ff8066);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.feature-text {
  flex: 1;
}

.feature-text strong {
  display: block;
  color: #2a2a2a;
  font-weight: 600;
  margin-bottom: 5px;
}

.feature-text {
  color: #666;
  font-size: 14px;
}

/* Highlights Section */
.detail-highlights {
  background: #1a1a2e;
  border-radius: 16px;
  padding: 25px 30px;
  margin: 30px 0;
}

.highlights-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.highlights-list li {
  color: #ddd;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.highlights-list li i {
  color: #4ade80;
  font-size: 12px;
}

/* Tech Stack */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0;
}

.tech-tag {
  background: #f0f4ff;
  color: #4a5568;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: #fe664e;
  color: #fff;
  transform: translateY(-2px);
}

/* Buttons */
.back-btn {
  display: flex;
  gap: 15px;
  margin-top: 35px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.btn-primary-custom,
.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary-custom {
  background: linear-gradient(135deg, #fe664e, #ff8066);
  color: #fff;
  box-shadow: 0 4px 15px rgba(254, 102, 78, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(254, 102, 78, 0.4);
}

.btn-outline-custom {
  background: transparent;
  color: #2a2a2a;
  border: 2px solid #2a2a2a;
}

.btn-outline-custom:hover {
  background: #2a2a2a;
  color: #fff;
}

/* ========================================
   Dark Mode Support
   ======================================== */

html.dark-mode .detail-hero {
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
}

html.dark-mode .detail-hero::before {
  background: radial-gradient(
    circle,
    rgba(254, 102, 78, 0.1) 0%,
    transparent 70%
  );
}

html.dark-mode .detail-card {
  background: rgba(30, 30, 50, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

html.dark-mode .detail-content h1 {
  background: linear-gradient(135deg, #fff, #ccc);
  -webkit-background-clip: text;
  background-clip: text;
}

html.dark-mode .detail-desc {
  color: var(--text-secondary);
}

html.dark-mode .feature-item {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

html.dark-mode .feature-text strong {
  color: var(--text-primary);
}

html.dark-mode .feature-text {
  color: var(--text-secondary);
}

html.dark-mode .tech-tag {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

html.dark-mode .btn-outline-custom {
  color: #fff;
  border-color: #fff;
}

html.dark-mode .btn-outline-custom:hover {
  background: #fff;
  color: #2a2a2a;
}

/* ========================================
   Responsive Styles
   ======================================== */

/* Small Desktop / Large Tablet (max-width: 992px) */
@media (max-width: 992px) {
  .detail-hero {
    padding: 140px 0 60px;
  }

  .detail-image {
    height: 350px;
  }

  .detail-content {
    padding: 30px;
  }

  .detail-content h1 {
    font-size: 30px;
  }
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
  .detail-hero {
    padding: 120px 0 50px;
  }

  .detail-image {
    height: 280px;
  }

  .detail-content {
    padding: 25px;
  }

  .detail-content h1 {
    font-size: 26px;
  }

  .detail-desc {
    font-size: 15px;
  }

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

  .feature-item {
    padding: 15px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .highlights-list {
    grid-template-columns: 1fr;
  }

  .back-btn {
    flex-direction: column;
  }

  .back-btn a {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .detail-hero {
    padding: 100px 0 40px;
  }

  .detail-image {
    height: 200px;
  }

  .detail-content {
    padding: 20px 15px;
  }

  .detail-content h1 {
    font-size: 22px;
    line-height: 1.4;
  }

  .detail-desc {
    font-size: 14px;
    line-height: 1.7;
  }

  .detail-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .detail-badge {
    font-size: 11px;
    padding: 5px 12px;
  }

  .feature-item {
    padding: 12px;
    gap: 12px;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
    border-radius: 10px;
  }

  .feature-text strong {
    font-size: 14px;
  }

  .feature-text {
    font-size: 12px;
  }

  .detail-highlights {
    padding: 20px;
  }

  .highlights-title {
    font-size: 16px;
  }

  .highlights-list li {
    font-size: 13px;
  }

  .tech-stack {
    gap: 8px;
  }

  .tech-tag {
    padding: 6px 12px;
    font-size: 12px;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    padding: 12px 20px;
    font-size: 13px;
  }

  .back-btn {
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
  }
}

/* Extra small mobile (max-width: 360px) */
@media (max-width: 360px) {
  .detail-image {
    height: 160px;
  }

  .detail-content h1 {
    font-size: 20px;
  }

  .detail-content {
    padding: 15px 12px;
  }

  .feature-icon {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}
