/* ========================================
   マイページ専用スタイル
   ======================================== */

/* ========================================
   マイページコンテナ
   ======================================== */
.mypage-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--sakura-light) 0%, var(--sakura-pink) 100%);
  padding: 20px 20px 100px 20px;
}

/* ========================================
   ヘッダー
   ======================================== */
.mypage-header {
  text-align: center;
  padding: 20px;
  margin-bottom: 30px;
  animation: fadeInDown 0.6s ease-out;
}

.mypage-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sakura-accent), var(--sakura-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.mypage-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ========================================
   メインコンテンツ
   ======================================== */
.mypage-main {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ========================================
   ソウルメイトプロフィールカード
   ======================================== */
.soulmate-profile-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.2);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease-out;
}

.profile-image-wrapper {
  margin-bottom: 20px;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.3);
  object-fit: cover;
  animation: float 3s ease-in-out infinite;
}

.profile-name {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sakura-accent), var(--sakura-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.profile-concept {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.profile-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 182, 193, 0.2);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.meta-icon {
  font-size: 1.125rem;
}

.profile-days {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--sakura-accent), var(--sakura-deep));
  color: white;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.days-icon {
  font-size: 1.25rem;
}

.days-count {
  font-size: 1.5rem;
  font-weight: 700;
}

/* ========================================
   統計セクション
   ======================================== */
.stats-section {
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.2);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sakura-accent);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ========================================
   設定セクション
   ======================================== */
.settings-section {
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.settings-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 15px;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.setting-item:hover {
  background: white;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.15);
  transform: translateX(5px);
}

.setting-item.danger {
  color: #EF4444;
}

.setting-item.danger:hover {
  background: rgba(239, 68, 68, 0.05);
}

.setting-icon {
  font-size: 1.5rem;
  width: 30px;
  text-align: center;
}

.setting-text {
  flex: 1;
  font-weight: 500;
}

.setting-arrow {
  font-size: 1.5rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 768px) {
  .mypage-container {
    padding: 15px 15px 100px 15px;
  }

  .mypage-title {
    font-size: 1.75rem;
  }

  .soulmate-profile-card {
    padding: 30px 20px;
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-card {
    padding: 15px 10px;
  }

  .stat-icon {
    font-size: 1.5rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .setting-item {
    padding: 15px 18px;
  }
}

/* 極小画面対応 */
@media (max-width: 400px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-meta {
    flex-direction: column;
    gap: 10px;
  }
}
