/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base - Pastel Gradient Theme */
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    sans-serif;
  background: #111;
  color: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Floating Blur Object */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(
    ellipse at 30% 30%,
    #00d4ff 0%,
    #6366f1 30%,
    #8b5cf6 50%,
    #a78bfa 70%,
    transparent 100%
  );
  filter: blur(60px);
  opacity: 0.8;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translate(-50%, -50%) translateY(0px) translateX(0px) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(-50%, -50%) translateY(-50px) translateX(50px) rotate(90deg) scale(1.15);
  }
  50% {
    transform: translate(-50%, -50%) translateY(0px) translateX(0px) rotate(180deg) scale(1.2);
  }
  75% {
    transform: translate(-50%, -50%) translateY(50px) translateX(-50px) rotate(270deg) scale(1.15);
  }
  100% {
    transform: translate(-50%, -50%) translateY(0px) translateX(0px) rotate(360deg) scale(1);
  }
}

.container {
  max-width: 390px;
  margin: 0 auto;
  padding: 0 0 40px;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

/* Profile Card */
.profile-card {
  background: transparent;
  padding: 48px 24px 32px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.profile-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  text-align: center;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.profile-role {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.profile-bio {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  letter-spacing: -0.025em;
}

/* Section */
.section {
  margin-bottom: 0;
  padding-top: 8px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
}

.section-header .section-title {
  padding: 0;
}

.section-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  padding: 20px 24px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.2s ease;
}

.section-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.section-link:active {
  transform: scale(0.96);
}

.section-link svg {
  width: 14px;
  height: 14px;
}

/* Card */
.card {
  background: transparent;
}

/* List Item */
.list-item {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  margin: 0 16px 8px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.list-item:last-child {
  margin-bottom: 8px;
}

.list-item:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.98);
}

/* Item Icon */
.item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}

.item-icon svg {
  width: 20px;
  height: 20px;
}

.item-icon.email,
.item-icon.phone,
.item-icon.instagram,
.item-icon.github,
.item-icon.linkedin,
.item-icon.web,
.item-icon.blog {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Ministry & Portfolio Section with Swiper */
.ministry-section,
.portfolio-section {
  overflow: hidden;
}

.ministry-swiper,
.portfolio-swiper {
  padding: 0 20px 40px 20px !important;
  overflow: visible;
}

.ministry-swiper .swiper-slide,
.portfolio-swiper .swiper-slide {
  width: 260px;
  height: auto;
}

.ministry-swiper .swiper-pagination,
.portfolio-swiper .swiper-pagination {
  bottom: 8px;
}

.ministry-swiper .swiper-pagination-bullet,
.portfolio-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.ministry-swiper .swiper-pagination-bullet-active,
.portfolio-swiper .swiper-pagination-bullet-active {
  background: #fff;
}

/* Ministry Card */
.ministry-card-link {
  display: block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.2s ease;
  height: 100%;
}

.ministry-card-link:active {
  transform: scale(0.98);
}

.ministry-card-image {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ministry-card-image svg {
  width: 60px;
  height: 60px;
  color: rgba(255, 255, 255, 0.6);
}

.ministry-card-image.worship,
.ministry-card-image.group {
  background: rgba(255, 255, 255, 0.08);
}

.ministry-card-image.worship svg,
.ministry-card-image.group svg {
  color: rgba(255, 255, 255, 0.6);
}

/* 이미지 타입 카드 */
.ministry-card-image.has-image {
  height: auto;
  aspect-ratio: 1514 / 2142;
  background: #000;
}

.ministry-card-image.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ministry-card-link:hover .ministry-card-image.has-image img {
  transform: scale(1.05);
}

.ministry-card-bookmark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ministry-card-bookmark:active {
  transform: scale(1.1);
}

.ministry-card-bookmark svg {
  width: 18px;
  height: 18px;
}

.ministry-card-content {
  padding: 16px;
}

.ministry-card-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.ministry-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.4;
}

.ministry-card-title .highlight {
  color: #fff;
}

.ministry-card-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
  font-weight: 500;
}

.ministry-card-info {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}

.ministry-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
}

.tag-primary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.tag-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

@media (hover: hover) {
  .ministry-card-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
  }
}

/* Item Content */
.item-content {
  flex: 1;
  min-width: 0;
}

.item-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.item-value {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-value.preparing {
  color: rgba(255, 255, 255, 0.3);
}

/* Item Arrow */
.item-arrow {
  color: rgba(255, 255, 255, 0.3);
  margin-left: 8px;
}

.item-arrow svg {
  width: 16px;
  height: 16px;
}

/* Contact Button */
.contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 48px);
  margin: 24px auto 0;
  padding: 16px 24px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-button:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.9);
}

.contact-button svg {
  width: 18px;
  height: 18px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 24px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-card {
  animation: fadeIn 0.4s ease;
}

.section {
  animation: fadeIn 0.4s ease;
}

.section:nth-child(2) {
  animation-delay: 0.05s;
}
.section:nth-child(3) {
  animation-delay: 0.1s;
}
.section:nth-child(4) {
  animation-delay: 0.15s;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive - Tablet (가운데 정렬) */
@media (min-width: 768px) {
  .container {
    margin: 40px auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Responsive - Desktop (오른쪽 1/4 위치) */
@media (min-width: 1200px) {
  body::before {
    left: 25%;
  }
  .container {
    margin-left: auto;
    margin-right: calc(25% - 195px);
  }
}

/* Hover states for desktop */
@media (hover: hover) {
  .list-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
  }

  .contact-button:hover {
    background: rgba(255, 255, 255, 0.9);
  }
}
