/* DashMirror - Apple Style Design */

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

.brand-scroll-container {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.brand-scroll-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: scroll-brands 30s linear infinite;
  width: fit-content;
}

.brand-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.brand-item img {
  filter: brightness(0) saturate(100%) invert(70%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(90%) contrast(90%);
  transition: all 0.3s ease;
}

.brand-item:hover img {
  filter: brightness(0) saturate(100%) invert(85%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
  transform: scale(1.05);
}

@keyframes scroll-brands {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


@media (max-width: 768px) {
  .brand-scroll-track {
    gap: 2rem;
    animation: scroll-brands 20s linear infinite;
  }
}


.features-carousel {
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.features-carousel::-webkit-scrollbar {
  display: none;
}

.feature-card {
  scroll-snap-align: center;
  min-height: 280px;
}

.features-track {
  padding-left: max(1.5rem, calc(50vw - 160px));
  padding-right: max(1.5rem, calc(50vw - 160px));
}


.indicator-dot {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background-color: rgba(255, 255, 255, 0.3);
}

.indicator-dot.active {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.indicator-dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.donation-carousel {
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.donation-carousel::-webkit-scrollbar {
  display: none;
}

.donation-card {
  scroll-snap-align: center;
  min-height: 280px;
}

.donation-track {
  padding-left: max(1.5rem, calc(50vw - 160px));
  padding-right: max(1.5rem, calc(50vw - 160px));
}

.donation-indicator-dot {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background-color: rgba(255, 255, 255, 0.3);
}

.donation-indicator-dot.active {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.donation-indicator-dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem !important;
  }
  h2 {
    font-size: 2rem !important;
  }
  .hero h2 {
    font-size: 2.5rem !important;
  }
}

.card {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar {
  backdrop-filter: blur(20px);
  background-color: rgba(var(--b1), 0.8);
  border-bottom: 1px solid rgba(var(--bc), 0.1);
}

.form-control {
  margin-bottom: 1.5rem;
}

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--bc), 0.1);
  border-color: rgba(var(--bc), 0.3);
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(var(--bc), 0.2);
  border-radius: 50%;
  border-top-color: rgba(var(--bc), 0.8);
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* FAQ 아코디언 */
.collapse {
  border: 1px solid rgba(var(--bc), 0.1);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.collapse-title {
  transition: all 0.3s ease;
  font-weight: 500;
}

.collapse-title:hover {
  background-color: rgba(var(--bc), 0.03);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(var(--bc), 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--bc), 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--bc), 0.4);
}

.link {
  transition: all 0.3s ease;
  text-decoration: none;
}

.link:hover {
  color: rgba(var(--bc), 0.7);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 섹션 간격 */
section {
  scroll-margin-top: 80px;
  padding: 4rem 0;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 통계 카드 */
.stat {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(var(--bc), 0.1);
  border-radius: 16px;
  padding: 2rem;
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 페이드인 애니메이션 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 플로팅 애니메이션 */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* 그라데이션 배경 */
.gradient-bg {
  background: linear-gradient(135deg, 
    rgba(var(--b1), 1) 0%, 
    rgba(var(--b2), 1) 100%);
}

/* 반응형 디자인 */
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .hero .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
  
  .navbar {
    padding: 0.5rem 1rem;
  }
}

[data-theme="dark"] {
  --glass-opacity: 0.1;
}

button:focus, 
input:focus, 
select:focus, 
textarea:focus {
  outline: 2px solid rgba(var(--bc), 0.3);
  outline-offset: 2px;
}

@media print {
  .navbar, .footer, #scroll-to-top {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .card {
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}

@media (prefers-contrast: high) {
  .btn {
    border-width: 2px;
  }
  
  .card {
    border-width: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blur-bg {
  backdrop-filter: blur(20px);
  background-color: rgba(var(--b1), 0.8);
}

.border-gradient {
  border: 1px solid;
  border-image: linear-gradient(135deg, 
    rgba(var(--bc), 0.1) 0%, 
    rgba(var(--bc), 0.3) 50%, 
    rgba(var(--bc), 0.1) 100%) 1;
}

.font-noto-sans {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
} 

/* --- Dashboard Slider --- */
.dashboard-slider {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px) saturate(180%);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  overflow: hidden;
  position: relative;
  max-height: 640px;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
}
.dashboard-slider.grabbing {
  cursor: grabbing;
}
.dashboard-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.4,0.2,0.2,1);
}

.dashboard-slide {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
  transition: 
    transform 0.5s cubic-bezier(0.4,0.2,0.2,1),
    box-shadow 0.5s cubic-bezier(0.4,0.2,0.2,1),
    z-index 0s;
}
.dashboard-slide.active {
  transform: scale(1.04);
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
}
.dashboard-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  transition: box-shadow 0.3s, border-radius 0.3s;
  pointer-events: none;
  user-drag: none;
  -webkit-user-drag: none;
}
.dashboard-slide.active img {
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
}
.dashboard-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  margin: 0 4px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s, border 0.3s;
  border: 1.5px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(2px);
  cursor: pointer;
}
.dashboard-indicator-dot.active {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transform: scale(1.4);
  border: 1.5px solid #fff;
}
@media (max-width: 900px) {
  .dashboard-slider {
    max-height: 260px;
    border-radius: 1.25rem;
  }
  .dashboard-slide img {
    border-radius: 1.25rem;
  }
}
@media (max-width: 640px) {
  .dashboard-slider {
    max-height: 180px;
    border-radius: 0.75rem !important;
    backdrop-filter: blur(10px) saturate(160%);
  }
  .dashboard-slide img {
    border-radius: 0.75rem !important;
  }
}
[data-theme="dark"] .dashboard-slider {
  background: rgba(30,30,40,0.18);
  border: 1px solid rgba(255,255,255,0.08);
}
[data-theme="dark"] .dashboard-indicator-dot {
  background: rgba(255,255,255,0.35);
  border: 1.5px solid rgba(255,255,255,0.12);
}
[data-theme="dark"] .dashboard-indicator-dot.active {
  background: #fff;
  border: 1.5px solid #fff;
} 