/* ================================
   review.css
   설치후기 페이지 전용 스타일
================================ */

body{
  margin:0;
  font-family:'SUIT', sans-serif;
  background:#f5f7fb;
  color:#222;
}

.title-section{
  text-align:center;
  padding:30px 20px 10px;
}

.title-section h1{
  font-size:34px;
  margin-bottom:8px;
  font-weight:900;
}

.title-section p{
  font-size:16px;
  color:#666;
  line-height:1.4;
}

.open-write-btn{
  margin-top:16px;
  border:0;
  background:#222;
  color:white;
  padding:13px 22px;
  border-radius:999px;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
}

.write-box{
  display:none;
  max-width:900px;
  margin:24px auto 30px;
  background:white;
  border-radius:24px;
  padding:26px;
  box-shadow:0 8px 24px rgba(0,0,0,0.07);
  box-sizing:border-box;
}

.write-box.show{
  display:block;
}

.write-box h2{
  margin:0 0 18px;
  font-size:24px;
  font-weight:900;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}

input,
select,
textarea{
  width:100%;
  padding:14px;
  border:1px solid #ddd;
  border-radius:14px;
  font-size:15px;
  font-family:'SUIT', sans-serif;
  box-sizing:border-box;
  outline:none;
}

textarea{
  margin-top:12px;
  min-height:120px;
  resize:vertical;
}

.file-box{
  margin-top:12px;
}

.notice{
  margin-top:8px;
  color:#888;
  font-size:13px;
  line-height:1.5;
}

.submit-btn{
  margin-top:16px;
  width:100%;
  border:0;
  background:#4bb3ff;
  color:white;
  padding:15px;
  border-radius:16px;
  font-size:17px;
  font-weight:900;
  cursor:pointer;
}

.submit-btn:hover{
  background:#2497ee;
}

.review-wrap{
  max-width:900px;
  margin:20px auto 70px;
  padding:0 20px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.review-card{
  background:white;
  border-radius:24px;
  padding:26px;
  box-shadow:0 8px 24px rgba(0,0,0,0.07);
  transition:0.3s;
  cursor:pointer;
  box-sizing:border-box;
  display:grid;
  grid-template-columns:220px 1fr;
  gap:22px;
  align-items:flex-start;
}

.review-card:hover{
  transform:translateY(-4px);
}

.thumb-wrap{
  width:220px;
  position:relative;
  flex-shrink:0;
}

.thumb{
  width:220px;
  height:170px;
  object-fit:cover;
  border-radius:16px;
  background:#eef7ff;
  display:block;
}

.media-count{
  position:absolute;
  right:10px;
  bottom:10px;
  background:rgba(0,0,0,0.65);
  color:white;
  padding:6px 10px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
}

.review-text{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}

.stars{
  font-size:22px;
  color:#facc15;
  line-height:1;
  margin:0;
}

.review-card h2{
  font-size:24px;
  margin:0;
  font-weight:900;
  line-height:1.3;
}

.review-preview{
  font-size:16px;
  color:#666;
  line-height:1.6;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.review-info{
  display:block;
  margin-top:4px;
  font-size:14px;
  color:#999;
  font-weight:800;
  line-height:1.5;
}

.empty{
  text-align:center;
  color:#888;
  padding:40px 0;
  font-weight:800;
}

.toast{
  position:fixed;
  left:50%;
  bottom:32px;
  transform:translateX(-50%);
  background:#222;
  color:white;
  padding:13px 20px;
  border-radius:999px;
  font-size:15px;
  font-weight:800;
  opacity:0;
  pointer-events:none;
  transition:0.25s;
  z-index:9999;
}

.toast.show{
  opacity:1;
  bottom:46px;
}

.modal-bg{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.45);
  display:none;
  justify-content:center;
  align-items:center;
  padding:20px;
  z-index:9998;
  box-sizing:border-box;
}

.modal-bg.show{
  display:flex;
}

.modal{
  width:100%;
  max-width:620px;
  max-height:88vh;
  overflow:auto;
  background:white;
  border-radius:24px;
  padding:26px;
  box-sizing:border-box;
  position:relative;
}

.modal-close{
  position:absolute;
  top:18px;
  right:18px;
  border:0;
  background:#f1f1f1;
  width:36px;
  height:36px;
  border-radius:50%;
  font-size:20px;
  cursor:pointer;
  z-index:3;
}

.modal h2{
  margin:0 46px 12px 0;
  font-size:26px;
  font-weight:900;
}

.modal .meta{
  color:#888;
  font-weight:800;
  margin-bottom:16px;
  line-height:1.5;
}

.modal .content{
  color:#555;
  font-size:17px;
  line-height:1.7;
  white-space:pre-wrap;
}

.media-viewer{
  position:relative;
  width:100%;
  margin:14px 0;
  border-radius:18px;
  overflow:hidden;
  background:#eef7ff;
}

.media-viewer img,
.media-viewer video{
  width:100%;
  max-height:520px;
  object-fit:contain;
  display:block;
  background:#eef7ff;
}

.slide-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:rgba(0,0,0,0.55);
  color:white;
  font-size:28px;
  font-weight:900;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
}

.slide-btn.prev{
  left:10px;
}

.slide-btn.next{
  right:10px;
}

.slide-indicator{
  position:absolute;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  background:rgba(0,0,0,0.6);
  color:white;
  padding:6px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  z-index:2;
}

.modal-actions{
  display:flex;
  gap:10px;
  margin-top:22px;
}

.modal-actions button{
  flex:1;
  border:0;
  padding:13px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
}

.edit-btn{
  background:#4bb3ff;
  color:white;
}

.delete-btn{
  background:#ff5c5c;
  color:white;
}

.cancel-btn{
  background:#eee;
  color:#333;
}

@media (max-width:768px){
  .title-section{
    padding:34px 20px 20px;
  }

  .title-section h1{
    font-size:36px;
  }

  .title-section p{
    font-size:18px;
  }

  .write-box{
    margin:20px 18px 28px;
    padding:24px;
  }

  .form-grid{
    grid-template-columns:1fr;
  }

  .review-wrap{
    padding:0 18px;
    gap:18px;
  }

  .review-card{
    display:flex;
    flex-direction:column;
    gap:16px;
    padding:26px;
    border-radius:24px;
  }

  .thumb-wrap{
    width:100%;
  }

  .thumb{
    width:100%;
    height:220px;
  }

  .review-card h2{
    font-size:24px;
  }

  .review-preview{
    font-size:17px;
    -webkit-line-clamp:3;
  }

  .slide-btn{
    width:38px;
    height:38px;
    font-size:24px;
  }
}
.review-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin:28px 0 10px;
  flex-wrap:wrap;
}

.review-pagination button{
  border:0;
  background:#ffffff;
  color:#111827;
  padding:10px 14px;
  border-radius:999px;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(15, 23, 42, 0.12);
}

.review-pagination button.active{
  background:#111827;
  color:#ffffff;
}

.review-pagination button:disabled{
  opacity:0.35;
  cursor:not-allowed;
}

@media(max-width:640px){
  .review-pagination{
    gap:6px;
    margin-top:22px;
  }

  .review-pagination button{
    padding:8px 12px;
    font-size:13px;
  }
}