/* 광고 캐러셀 스타일 */
#adCarousel .carousel-inner a {
  display: block;
  position: relative;
  transition: box-shadow 0.2s;
}
#adCarousel .carousel-inner img {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  background: #fff;
  object-fit: contain;
  width: 100%;
  height: auto;
  max-height: 180px;
}
#adCarousel .carousel-inner a:hover img,
#adCarousel .carousel-inner a:focus img {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(80, 100, 140, 0.22);
  filter: brightness(1.06) saturate(1.1);
}
#adCarousel .carousel-inner a:active img {
  transform: scale(0.98);
  filter: brightness(0.96);
}
#adCarousel .carousel-inner a::after {
  content: "↗";
  color: #e0a800;
  font-size: 1.2em;
  position: absolute;
  top: 13px;
  right: 18px;
  background: rgba(255, 255, 255, 0.65);
  padding: 2px 6px 2px 5px;
  border-radius: 9px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
#adCarousel .carousel-inner a:hover::after {
  opacity: 1;
}
@media (max-width: 600px) {
  #adCarousel .carousel-inner img {
    max-height: 120px;
  }
}

/* 전역 스타일 */
body {
  font-family: "Segoe UI", Arial, sans-serif;
}
.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.nav-tabs .nav-link.active {
  background: #fff8e1;
  color: #bc7700;
  border-color: #ffe082 #ffe082 #fff;
}
.footer {
  background: #f7f7fa;
}
.footer .btn {
  font-size: 0.95rem;
  padding: 0.25rem 0.7rem;
}
@media (max-width: 600px) {
  th,
  td {
    font-size: 13px;
    padding: 4px;
  }
  .footer .btn {
    font-size: 13px;
    padding: 2px 7px;
  }
}

/* 모바일용 플로팅 커피사기 버튼 */
#fab-coffee {
  display: none;
  position: fixed;
  z-index: 1050;
  right: 16px;
  bottom: 72px;
  background: #ffc107;
  color: #333;
  border-radius: 100px;
  box-shadow: 0 2px 12px rgba(40, 60, 80, 0.18);
  padding: 13px 25px 13px 16px;
  font-weight: bold;
  font-size: 17px;
  transition: background 0.18s, box-shadow 0.2s;
}
#fab-coffee:hover {
  background: #ffd451;
  color: #212529;
}
#fab-coffee i {
  font-size: 1.3em;
  margin-right: 4px;
  vertical-align: -2px;
}
@media (max-width: 991px) {
  #fab-coffee {
    display: block;
  }
  .navbar .btn[data-bs-target="#donateModal"] {
    display: none;
  }
}
@media (min-width: 992px) {
  #fab-coffee {
    display: none;
  }
}

.ad-card img:hover,
.ad-card img:focus {
  transform: scale(1.07);
  box-shadow: 0 4px 12px rgba(50, 50, 50, 0.2);
  filter: brightness(1.07);
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#btnBookmark {
  font-size: 1.08em;
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #b28300;
  border-radius: 12px;
  transition: background 0.18s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(250, 200, 50, 0.08);
}
#btnBookmark:hover,
#btnBookmark:focus {
  background: #ffe082;
  color: #bc7700;
}
