/*
 * Lider Metal - Proje Detay Sayfası Stilleri
 * Hakkimizda.css ile uyumlu tasarım
 * Professional project detail page with gallery and lightbox
 */

/* ============================================
   Project Number Badge (Sidebar)
   ============================================ */

.project-number-badge {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #31508E 0%, #2C4475 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.2);
  pointer-events: all;
}

/* ============================================
   Project Detail Content
   ============================================ */

.project-detail-title {
  font-size: 42px;
  font-weight: 700;
  color: #31508c;
  margin-bottom: 16px;
  line-height: 1.3;
}

.project-detail-subtitle {
  font-size: 28px;
  font-weight: 400;
  color: #777;
  margin-bottom: 32px;
  line-height: 1.4;
}

.project-detail-description {
  margin-top: 24px;
}

.project-detail-description p {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 20px;
}

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

/* ============================================
   Project Gallery Section
   ============================================ */

.project-gallery-section {
  position: relative;
  padding: 0 0 60px;
  z-index: 2;
  width: 100%;
}

.gallery-title {
  font-size: 32px;
  font-weight: 700;
  color: #31508c;
  margin-bottom: 50px;
  text-align: center;
}

/* Gallery Grid */
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

/* Gallery Item */
.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 20px;
  background: #f0f0f0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Gallery Image Wrapper */
.gallery-image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  border-radius: 20px;
}

.gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(49, 80, 142, 0.85) 0%, rgba(44, 68, 117, 0.90) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
}

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

.zoom-icon {
  color: #ffffff;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

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

/* ============================================
   Lightbox Modal
   ============================================ */

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.lightbox-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Lightbox Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  padding: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

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

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Lightbox Counter */
.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 10px 24px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 10001;
}

/* ============================================
   Back Section
   ============================================ */

.back-section {
  position: relative;
  padding: 0 0 80px;
  z-index: 2;
  width: 100%;
}

.back-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: fit-content;
  gap: 12px;
  padding: 8px 20px;
  background: #31508c;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(49, 80, 142, 0.2);
}

.back-button:hover {
  background: #2C4475;
  color: #ffffff;
  transform: translateX(-4px);
  box-shadow: 0 6px 16px rgba(49, 80, 142, 0.3);
}

.back-button svg {
  transition: transform 0.3s ease;
}

.back-button:hover svg {
  transform: translateX(-4px);
}

/* ============================================
   RESPONSIVE - TABLET (768px - 991px)
   ============================================ */

@media (max-width: 991px) {
  .project-number-badge {
    width: 100px;
    height: 100px;
    font-size: 40px;
    bottom: 35px;
  }

  .project-detail-title {
    font-size: 36px;
    margin-bottom: 14px;
  }

  .project-detail-subtitle {
    font-size: 24px;
    margin-bottom: 28px;
  }

  .project-detail-description p {
    font-size: 14.5px;
    margin-bottom: 18px;
  }

  .project-gallery-section {
    padding: 70px 0 90px;
  }

  .gallery-title {
    font-size: 28px;
    margin-bottom: 45px;
  }

  .project-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    margin-bottom: 55px;
  }

  .gallery-image-wrapper {
    padding-bottom: 80%;
  }

  .zoom-icon {
    width: 36px;
    height: 36px;
  }

  .lightbox-image-container {
    padding: 50px;
  }

  .back-section {
    padding: 0 0 70px;
  }

  .back-button {
    padding: 13px 26px;
    font-size: 15px;
  }
}

/* ============================================
   RESPONSIVE - MOBILE (576px - 767px)
   ============================================ */

@media (max-width: 767px) {
  .project-number-badge {
    width: 90px;
    height: 90px;
    font-size: 36px;
    bottom: 30px;
  }

  .project-detail-title {
    font-size: 32px;
    margin-bottom: 12px;
  }

  .project-detail-subtitle {
    font-size: 22px;
    margin-bottom: 26px;
  }

  .project-detail-description p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .project-gallery-section {
    padding: 60px 0 80px;
  }

  .gallery-title {
    font-size: 26px;
    margin-bottom: 40px;
  }

  .project-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 50px;
  }

  .gallery-item {
    border-radius: 16px;
  }

  .gallery-image-wrapper,
  .gallery-overlay {
    border-radius: 16px;
  }

  .zoom-icon {
    width: 32px;
    height: 32px;
  }

  .lightbox-image-container {
    padding: 40px 20px;
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    padding: 10px;
  }

  .lightbox-close svg,
  .lightbox-prev svg,
  .lightbox-next svg {
    width: 24px;
    height: 24px;
  }

  .lightbox-counter {
    font-size: 14px;
    padding: 8px 20px;
  }

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

  .back-button {
    padding: 12px 24px;
    font-size: 14.5px;
  }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (≤ 575px)
   ============================================ */

@media (max-width: 575px) {
  .project-number-badge {
    width: 80px;
    height: 80px;
    font-size: 32px;
    bottom: 25px;
  }

  .project-detail-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .project-detail-subtitle {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .project-detail-description {
    margin-top: 20px;
  }

  .project-detail-description p {
    font-size: 13.5px;
    margin-bottom: 14px;
  }

  .project-gallery-section {
    padding: 50px 0 70px;
  }

  .gallery-title {
    font-size: 24px;
    margin-bottom: 35px;
  }

  .project-gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 45px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .gallery-item {
    border-radius: 14px;
  }

  .gallery-image-wrapper,
  .gallery-overlay {
    border-radius: 14px;
    padding-bottom: 75%;
  }

  .zoom-icon {
    width: 30px;
    height: 30px;
  }

  .lightbox-image-container {
    padding: 30px 15px;
  }

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

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-counter {
    font-size: 13px;
    padding: 7px 18px;
    bottom: 20px;
  }

  .back-section {
    padding: 0 0 50px;
  }

  .back-button {
    padding: 11px 22px;
    font-size: 14px;
    gap: 10px;
  }

  .back-button svg {
    width: 18px;
    height: 18px;
  }
}

/* ============================================
   RESPONSIVE - EXTRA SMALL (≤ 379px)
   ============================================ */

@media (max-width: 379px) {
  .project-number-badge {
    width: 70px;
    height: 70px;
    font-size: 28px;
    bottom: 20px;
  }

  .project-detail-title {
    font-size: 24px;
  }

  .project-detail-subtitle {
    font-size: 18px;
    margin-bottom: 22px;
  }

  .project-detail-description p {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .project-gallery-section {
    padding: 45px 0 65px;
  }

  .gallery-title {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .project-gallery-grid {
    gap: 18px;
    margin-bottom: 40px;
  }

  .gallery-item {
    border-radius: 12px;
  }

  .gallery-image-wrapper,
  .gallery-overlay {
    border-radius: 12px;
  }

  .back-section {
    padding: 0 0 45px;
  }

  .back-button {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .project-number-badge,
  .gallery-overlay,
  .back-section,
  .lightbox-modal {
    display: none;
  }

  .project-gallery-section {
    padding: 40px 0;
  }

  .project-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .gallery-item {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
    opacity: 1;
    transform: none;
  }

  .gallery-item:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ============================================
   Animation Keyframes
   ============================================ */

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

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}