/* =========================================
   BuddyPlanner v2 — Profile Screen
   ========================================= */

.profile-hero {
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--text-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-4);
}

.profile-name {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text-100);
  margin-bottom: var(--sp-1);
}

.profile-email {
  font-size: var(--fs-sm);
  color: var(--text-500);
}

.profile-section {
  padding: var(--sp-5);
}

.profile-section-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--text-200);
  margin-bottom: var(--sp-3);
  padding-left: var(--sp-1);
}

.setting-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--sp-5);
}

.setting-item {
  display: flex;
  flex-direction: column;
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
}
.setting-item:last-child {
  border-bottom: none;
}

.setting-item-header {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-400);
  margin-bottom: var(--sp-2);
}

.setting-options {
  display: flex;
  gap: var(--sp-2);
}

.setting-opt-btn {
  flex: 1;
  padding: var(--sp-2) 0;
  border-radius: var(--r-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-500);
  transition: all var(--dur-fast) var(--ease-out);
}
.setting-opt-btn.active {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}

.address-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  padding: 0 var(--sp-3);
  height: 48px;
}
.address-input-wrap:focus-within {
  border-color: var(--accent);
  background: var(--bg-app);
}
.address-icon {
  font-size: var(--fs-lg);
  margin-right: var(--sp-2);
}
.address-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: var(--fs-base);
  color: var(--text-100);
}

.logout-wrap {
  padding: var(--sp-4) var(--sp-5) var(--sp-8);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logout-btn {
  color: var(--danger);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  padding: var(--sp-2) var(--sp-4);
  background: transparent;
  border: none;
}

/* =========================================
   Ad Rewards System Styles
   ========================================= */

.ad-reward-btn {
  background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 50%, #b38728 100%);
  color: #000;
  padding: 10px 16px;
  border-radius: var(--r-full);
  font-weight: 800;
  font-size: 13px;
  border: none;
  box-shadow: 0 4px 10px rgba(191, 149, 63, 0.4);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-reward-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 5px rgba(191, 149, 63, 0.4);
}

.ad-reward-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  animation: buttonShine 3s infinite;
}

@keyframes buttonShine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.fake-ad-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.fake-ad-content {
  text-align: center;
  color: #fff;
  padding: var(--sp-6);
}

.fake-ad-content h3 {
  font-size: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.fake-ad-content p {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.5;
}

.fake-ad-content .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

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

/* 회원 탈퇴 / 개인정보처리방침 링크 */
.delete-account-btn {
  display: block; margin-top: var(--sp-2);
  background: none; border: none; padding: var(--sp-2);
  font-size: var(--fs-sm); color: var(--text-400); text-decoration: underline;
}
.privacy-link {
  display: block; text-align: center; margin-top: var(--sp-1);
  font-size: var(--fs-xs); color: var(--text-400);
}
