/* 우주 돌고래 파도 테마 - Chirpy 테마와 함께 작동 */

/* ===== 기본 배경 ===== */
html,
body {
  background: linear-gradient(
    135deg,
    #0a0a0a 0%,
    #1a1a2e 25%,
    #16213e 50%,
    #0f3460 75%,
    #533483 100%
  ) !important;
  background-attachment: fixed !important;
  min-height: 100vh !important;
}

/* ===== 우주 배경 요소 ===== */
.space-simple-background {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

/* 별들 */
.stars {
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  background: radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(
      1px 1px at 130px 80px,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
  background-repeat: repeat !important;
  background-size: 200px 100px !important;
  animation: twinkle 4s ease-in-out infinite !important;
}

/* 성운 */
.nebula {
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  background: radial-gradient(
    ellipse at center,
    rgba(120, 119, 198, 0.3) 0%,
    transparent 70%
  ) !important;
  filter: blur(3px) !important;
}

/* 파도 */
.waves {
  position: absolute !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100px !important;
  overflow: hidden !important;
}

.wave {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 200% !important;
  height: 100% !important;
  background: linear-gradient(
    45deg,
    rgba(0, 150, 255, 0.3),
    rgba(0, 200, 255, 0.2)
  ) !important;
  border-radius: 50% 50% 0 0 !important;
  animation: wave 6s ease-in-out infinite !important;
}

.wave:nth-child(2) {
  animation-delay: -2s !important;
  opacity: 0.7 !important;
}

.wave:nth-child(3) {
  animation-delay: -4s !important;
  opacity: 0.5 !important;
}

/* 돌고래 */
.dolphin {
  position: absolute !important;
  bottom: 120px !important;
  right: -100px !important;
  width: 80px !important;
  height: 40px !important;
  background: linear-gradient(45deg, #87ceeb, #4682b4) !important;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40% !important;
  animation: dolphin-swim 8s ease-in-out infinite !important;
}

/* ===== 글래스모피즘 효과 ===== */
.card,
.post,
.entry,
.content,
.access,
.trending-tags {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.4s ease !important;
}

/* 사이드바 */
#sidebar,
.sidebar,
.side-panel,
.aside {
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 20px !important;
}

/* 패널 */
#panel-wrapper,
.panel {
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 18px !important;
}

/* ===== 텍스트 색상 ===== */
body,
p,
li,
span,
div {
  color: rgba(255, 255, 255, 0.9) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: rgba(255, 255, 255, 0.95) !important;
}

a {
  color: rgba(74, 144, 226, 0.9) !important;
  text-decoration: none !important;
}

a:hover {
  color: #4a90e2 !important;
  text-decoration: underline !important;
}

/* ===== 특정 섹션 강화 ===== */
.update-list,
.update-list .card,
.update-list .post-item {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  margin-bottom: 15px !important;
  padding: 15px !important;
}

.trending-tags .tag,
.trending-tags .badge,
.trending-tags a {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 15px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 8px 15px !important;
  margin: 5px !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
}

.trending-tags .tag:hover,
.trending-tags .badge:hover,
.trending-tags a:hover {
  background: rgba(74, 144, 226, 0.3) !important;
  border-color: rgba(74, 144, 226, 0.6) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4) !important;
}

/* 페이지네이션 */
.pagination,
.pagination .page-item,
.pagination .page-link {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 10px !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.pagination .page-link:hover {
  background: rgba(74, 144, 226, 0.2) !important;
  border-color: rgba(74, 144, 226, 0.5) !important;
  color: #4a90e2 !important;
}

.pagination .page-item.active .page-link {
  background: rgba(74, 144, 226, 0.4) !important;
  border-color: rgba(74, 144, 226, 0.7) !important;
  color: white !important;
}

/* 푸터 */
footer,
.footer {
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 20px 0 !important;
}

/* ===== 애니메이션 ===== */
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

@keyframes wave {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-20px);
  }
}

@keyframes dolphin-swim {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  25% {
    transform: translateX(-50px) translateY(-10px) rotate(-5deg);
  }
  50% {
    transform: translateX(-100px) translateY(0) rotate(0deg);
  }
  75% {
    transform: translateX(-150px) translateY(-10px) rotate(5deg);
  }
  100% {
    transform: translateX(-200px) translateY(0) rotate(0deg);
  }
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
  .dolphin {
    display: none !important;
  }
  .waves {
    height: 60px !important;
  }
  .wave {
    height: 60px !important;
  }
}
