/* ============================================================
   項目詳情頁樣式
   ============================================================ */

/* 篩選欄 */
.filter-bar {
  background: #fff;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.filter-bar .row {
  margin: 0 -8px;
}

.filter-bar [class*="col-"] {
  padding: 0 8px;
}

@media (max-width: 767px) {
  .filter-bar [class*="col-"] {
    margin-bottom: 10px;
  }
}

/* 項目詳情卡片 */
.project-detail-card {
  background: #fff;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
  transition: box-shadow 0.3s ease;
}

.project-detail-card:hover {
  box-shadow: 0 8px 32px rgba(168, 127, 58, 0.15);
}

.project-detail-card .row {
  margin: 0;
}

.project-detail-card [class*="col-"] {
  padding: 0;
}

@media (min-width: 992px) {
  .project-detail-card > .row {
    display: grid;
    grid-template-columns: 4fr 5fr 3fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "gallery info returns"
      "specs specs returns";
    align-items: stretch;
  }

  .project-detail-card > .row > [class*="col-"] {
    float: none;
    width: auto;
  }

  .project-detail-card > .row > .col-md-4 {
    grid-area: gallery;
  }

  .project-detail-card > .row > .col-md-5 {
    grid-area: info;
  }

  .project-detail-card > .row > .col-md-3 {
    grid-area: returns;
    border-left: 1px solid var(--border-gold);
  }

  .project-detail-card > .row > .pdc-specs-col {
    grid-area: specs;
  }
}

/* 圖片區域 */
.pdc-gallery {
  height: 100%;
}

.pdc-main-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

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

.project-detail-card:hover .pdc-main-img img {
  transform: scale(1.03);
}

.pdc-badge-risk {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}

.pdc-badge-risk.low { background: rgba(34, 197, 94, 0.9); color: #fff; }
.pdc-badge-risk.mid { background: rgba(234, 179, 8, 0.9); color: #fff; }
.pdc-badge-risk.high { background: rgba(239, 68, 68, 0.9); color: #fff; }

.pdc-badge-type {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(26, 20, 8, 0.75);
  color: var(--gold-1);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}

.pdc-thumb-row {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f5f3ef;
}

.pdc-thumb-row:empty {
  display: none;
}

.pdc-thumb-row img {
  flex: 1;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.pdc-thumb-row img:hover {
  opacity: 0.8;
}

/* 項目資訊 */
.pdc-info {
  padding: 24px;
  /* height: 100%; */
}

.pdc-header h3 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 24px;
  color: var(--text-dark);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pdc-location {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.pdc-location i {
  color: var(--gold-2);
  margin-right: 4px;
}

.pdc-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.pdc-specs {
  background: var(--bg-section);
  border-radius: 5px;
  margin: 0 10px;
  padding: 10px 24px 2px;
}

.pdc-specs h4 {
  margin: 0 0 12px;
}

.project-detail-card .pdc-specs-col {
  padding: 2px 0 2px;
}

.pdc-bottom-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 10px 20px;
}

.pdc-bottom-card {
  background: #fff;
  border: 1px solid rgba(208, 188, 101, 0.25);
  border-radius: 8px;
  min-height: 110px;
  box-shadow: var(--shadow-card);
  padding: 16px;
  text-align: center;
}

.pdc-bottom-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.pdc-bottom-card-line {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.pdc-bottom-card-line:last-child {
  margin-bottom: 0;
}

.pdc-specs .row {
  margin: 0 -10px;
}

.pdc-specs .row > [class*="col-"] {
  padding: 0 10px;
}

@media (min-width: 768px) {
  .pdc-specs .row > .col-sm-6 {
    width: 33.333333%;
  }
}

@media (max-width: 767px) {
  .pdc-bottom-cards {
    grid-template-columns: 1fr;
  }
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 22px;
}

.spec-label {
  font-size: 12px;
  color: var(--text-muted);
}

.spec-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

/* 回報區域 */
.pdc-returns {
  padding: 24px;
  background: linear-gradient(135deg, #1a1408, #2a1f0a);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pdc-returns .btn-gold.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.pdc-returns .btn-gold-outline.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.pdc-return-header {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(208, 188, 101, 0.2);
  margin-bottom: 16px;
}

.return-label {
  display: block;
  font-size: 13px;
  color: rgba(228, 226, 223, 0.5);
  margin-bottom: 4px;
}

.return-value {
  display: block;
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 40px;
  color: var(--gold-1);
  line-height: 1;
}

.pdc-return-items {
  flex: 1;
  margin-bottom: 16px;
}

.pdc-return-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(208, 188, 101, 0.1);
  font-size: 14px;
}

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

.pdc-return-item span {
  color: rgba(228, 226, 223, 0.55);
}

.pdc-return-item strong {
  color: #fff;
  font-weight: 600;
}

.pdc-progress {
  margin-bottom: 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(228, 226, 223, 0.55);
  margin-bottom: 6px;
}

.pdc-member-note {
  text-align: center;
  font-size: 13px;
  color: rgba(228, 226, 223, 0.45);
  margin-top: 10px;
}

.pdc-member-note i {
  color: var(--gold-2);
  margin-right: 4px;
}

.btn-completed {
  background: rgba(255,255,255,0.08) !important;
  color: rgba(228, 226, 223, 0.4) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 4px !important;
  font-family: 'Noto Sans HK', sans-serif !important;
  font-size: 15px !important;
  cursor: not-allowed !important;
}

/* VIP 項目 */
.card-vip-detail {
  border-color: rgba(208, 188, 101, 0.5) !important;
  background: linear-gradient(135deg, #fffdf7, #fff) !important;
}

.vip-banner {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-4));
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.vip-banner i {
  margin-right: 6px;
}

.vip-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(208, 188, 101, 0.2), rgba(173, 131, 60, 0.15));
  color: var(--gold-2);
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(208, 188, 101, 0.4);
}

.locked-img {
  position: relative;
}

.img-lock-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 20, 8, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: rgba(208, 188, 101, 0.7);
}

.blurred {
  filter: blur(4px);
  user-select: none;
}

.blurred-row strong {
  filter: blur(4px);
  user-select: none;
}

.vip-returns {
  background: linear-gradient(135deg, #2a1f0a, #1a1408) !important;
  border-left: 2px solid var(--gold-2);
}

/* 響應式 */
@media (max-width: 991px) {
  .pdc-main-img {
    height: 220px;
  }

  .pdc-info {
    border-right: none;
    border-bottom: 1px solid var(--border-gold);
  }

  .pdc-returns {
    border-radius: 0 0 10px 10px;
  }
}

@media (max-width: 767px) {
  .pdc-specs .row {
    margin: 0;
  }

  .pdc-specs .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  .pdc-info {
    padding: 16px;
  }

  .pdc-returns {
    padding: 16px;
  }

  .return-value {
    font-size: 32px;
  }

  .pdc-header h3 {
    font-size: 20px;
  }
}
