﻿/* Design Detail Page Styling */

.detail-hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.detail-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
}

.detail-hero-content {
  position: absolute;
  bottom: 50px;
  left: 50px;
  right: 50px;
  z-index: 2;
  max-width: 100%;
}

.detail-back-link {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.detail-back-link:hover {
  transform: translateX(-4px);
  color: white;
}

.detail-hero-content h1 {
  font-size: 54px;
  font-weight: 400;
  color: white;
  margin: 0 0 16px 0;
  line-height: 1.2;
  font-family: var(--font-display);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-pill {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-pill.residential {
  background: rgba(100, 200, 150, 0.2);
  border-color: rgba(100, 200, 150, 0.5);
}

.hero-pill.commercial {
  background: rgba(150, 180, 255, 0.2);
  border-color: rgba(150, 180, 255, 0.5);
}

.hero-pill.hospitality {
  background: rgba(255, 180, 100, 0.2);
  border-color: rgba(255, 180, 100, 0.5);
}

.hero-pill.specialized {
  background: rgba(200, 150, 255, 0.2);
  border-color: rgba(200, 150, 255, 0.5);
}

.section-main {
  background: #f8f8f8;
  padding: 80px 0;
}

.detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.detail-content {
  flex: 1;
}

.detail-section {
  background: white;
  padding: 40px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detail-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: #1a1a1a;
  border-bottom: 3px solid #ff6b00;
  padding-bottom: 16px;
}

.detail-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin: 0 0 20px 0;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.feature-item {
  padding: 16px;
  background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
  border-radius: 6px;
  border-left: 4px solid #ff6b00;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
  transform: translateX(4px);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.highlight-item {
  padding: 20px;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-radius: 6px;
  text-align: center;
  border-top: 3px solid #ff6b00;
}

.highlight-item h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #e65100;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.benefit-item {
  padding: 20px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 6px;
  text-align: center;
  border-top: 3px solid #4caf50;
}

.benefit-item h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.design-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.design-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.design-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f0f0f0;
}

.design-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.design-card:hover .design-card-image img {
  transform: scale(1.1);
}

.design-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 16px;
  line-height: 1.4;
}

.design-card .btn-small {
  display: inline-block;
  margin: 0 16px 16px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  background: #ff6b00;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.design-card .btn-small:hover {
  background: #e55a00;
  transform: translateX(2px);
}

/* Sidebar */
.detail-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px 0;
  border-bottom: 2px solid #ff6b00;
  padding-bottom: 12px;
}

.sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  border: 1px solid #e0e0e0;
}

.sidebar-cta {
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.sidebar-cta .btn-primary {
  width: 100%;
  justify-content: center;
  background: white !important;
  color: #ff6b00 !important;
}

.sidebar-cta .btn-primary:hover {
  background: #f0f0f0 !important;
}

.detail-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: white !important;
  text-align: center;
  padding: 60px 40px !important;
  border-radius: 12px;
}

.detail-cta h2 {
  color: white;
  border-color: #ff6b00;
}

.detail-cta p {
  color: #ccc !important;
  font-size: 18px !important;
  margin-bottom: 30px;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f0f0f0;
  aspect-ratio: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

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

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 48px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 300;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--gold);
  transform: scale(1.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    font-size: 32px;
  }
}

/* Responsive Gallery Grid */
@media (max-width: 1024px) {
  .detail-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-sidebar {
    position: static;
    top: auto;
  }

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

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .detail-hero {
    height: 350px;
    margin-bottom: 0;
  }

  .detail-hero-content {
    bottom: 30px;
    left: 30px;
    right: 30px;
  }

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

  .section-main {
    padding: 60px 0;
  }

  .detail-wrapper {
    padding: 0 20px;
    gap: 20px;
  }

  .detail-section {
    padding: 24px;
    margin-bottom: 24px;
  }

  .detail-section h2 {
    font-size: 22px;
  }

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

  .sidebar-section {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .detail-hero {
    height: 280px;
    margin-bottom: 0;
  }

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

  .detail-section {
    padding: 16px;
    margin-bottom: 16px;
  }

  .detail-section h2 {
    font-size: 18px;
  }

  .detail-section p {
    font-size: 14px;
  }

  .features-grid,
  .highlights-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-pill {
    font-size: 11px;
    padding: 6px 12px;
  }
}
