/* =============================================
   album.css - 강아지.com 애견미용샵 앨범 전용
   정리된 최종 버전 (2026.04)
   ============================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', system-ui, sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #fffaf5;
}

/* ==================== 공통 헤더 ==================== */
header {
  background: linear-gradient(135deg, #81d4fa, #b3e5fc);
  color: white;
  text-align: center;
  padding: 2.5rem 1rem;
  box-shadow: 0 4px 15px rgba(129, 212, 250, 0.4);
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

/* ==================== 앨범 목록 페이지 ==================== */
.search-container {
  max-width: 600px;
  margin: 30px auto;
  padding: 0 20px;
  position: relative;
}

.search-container input {
  width: 100%;
  padding: 18px 25px 18px 55px;
  font-size: 1.15rem;
  border: 3px solid #81d4fa;
  border-radius: 50px;
  outline: none;
  background: white;
}

.search-container::before {
  content: "🔎";
  position: absolute;
  left: 35px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #81d4fa;
}

.dog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px 20px 60px;
  max-width: 1300px;
  margin: 0 auto;
}

.dog-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: all 0.3s;
  cursor: pointer;
}

.dog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(129, 212, 250, 0.25);
}

.dog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.dog-info {
  padding: 15px 12px;
  text-align: center;
}

.dog-info h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

/* ==================== 관리자 버튼 ==================== */
#adminBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #0288d1;
  color: white;
  border: none;
  font-size: 2.2rem;
  box-shadow: 0 10px 25px rgba(2, 136, 209, 0.4);
  cursor: pointer;
  z-index: 999;
}

#adminBtn:hover {
  transform: scale(1.15);
}

/* ==================== dog-detail 페이지 ==================== */
.detail-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

#dogFullName {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 35px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px;
}

.media-card {
  background: white;
  border: 3px solid #81d4fa;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.media-card:hover {
  transform: translateY(-5px);
}

.media-card img,
.media-card iframe {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
}

.description-box {
  background: #f0f8ff;
  padding: 25px;
  border-radius: 16px;
  margin: 50px 20px 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 5px 15px rgba(129, 212, 250, 0.15);
}

.date {
  font-size: 1.2rem;
  color: #0288d1;
  margin-bottom: 12px;
}

.desc {
  font-size: 1.22rem;
  line-height: 1.75;
  color: #333;
}

/* ==================== 반응형 ==================== */
@media (max-width: 768px) {
  .dog-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  
  #dogFullName {
    font-size: 2.2rem;
  }
}

/* ==================== dog-detail 페이지 (class-album 스타일 참고) ==================== */
.album-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px;
}

.album-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.3s;
  border: 3px solid #a1e3cb;
  display: flex;
  flex-direction: column;
}

.thumbnail-container {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.album-thumbnail, .album-item iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-info-bar {
  padding: 8px 12px;
  background: #f0f8ff;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}

.album-description {
  padding: 10px 12px;
  font-size: 1.05rem;
  color: #2c3e50;
  line-height: 1.6;
  flex-grow: 1;
}

/* dog-detail - 학교 앨범 스타일 참고 */
.album-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px;
}

.album-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.3s;
  border: 3px solid #a1e3cb;
  display: flex;
  flex-direction: column;
}

.thumbnail-container {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.album-thumbnail, .album-item iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-info-bar {
  padding: 8px 12px;
  background: #f0f8ff;
  font-size: 0.95rem;
  color: #555;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.like-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #e74c3c;
}

.views-count {
  color: #74b9ff;
}

.album-description {
  padding: 10px 12px;
  font-size: 1.05rem;
  color: #2c3e50;
  line-height: 1.6;
  flex-grow: 1;
}

/* 조회수 + 좋아요 스타일 */
.album-info-bar {
  padding: 8px 12px;
  background: #f0f8ff;
  font-size: 0.95rem;
  color: #555;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.like-btn {
  background: none;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  color: #e74c3c;
  display: flex;
  align-items: center;
  gap: 4px;
}

.views-count {
  color: #74b9ff;
  font-size: 1rem;
}

.album-description {
  padding: 10px 12px;
  font-size: 1.05rem;
  color: #2c3e50;
  line-height: 1.6;
  flex-grow: 1;
}

