/*
|--------------------------------------------------------------------------
| پوسته جوان‌تر انسان ۳۶۰
|--------------------------------------------------------------------------
| این فایل فقط ظاهر را تغییر می‌دهد و به منطق API و دیتابیس دست نمی‌زند.
*/

:root {
  --youth-yellow: #ffd84d;
  --youth-lime: #b7f34b;
  --youth-coral: #ff6b7a;
  --youth-cyan: #45d7ff;
  --youth-purple: #7c5cff;
  --youth-ink: #17162a;
}

body.theme-attendance {
  --primary: #ff5f7e;
  --primary-strong: #e94067;
  --primary-soft: #ffe5ec;
  --secondary: #6c5ce7;
  --secondary-soft: #ece9ff;
  --hero-gradient:
    linear-gradient(135deg, #ff5f7e 0%, #ff7a5c 44%, #7c5cff 100%);
  --hero-shadow: 0 28px 70px rgba(255, 95, 126, .3);
}

body.theme-road {
  --primary: #6c5ce7;
  --primary-strong: #4f46d9;
  --primary-soft: #ebe9ff;
  --secondary: #00b8d9;
  --secondary-soft: #dff9ff;
  --hero-gradient:
    linear-gradient(135deg, #654cff 0%, #8a5cff 46%, #ff5da8 100%);
  --hero-shadow: 0 28px 70px rgba(108, 92, 231, .32);
}

html[data-theme="dark"] body.theme-attendance {
  --primary-soft: rgba(255, 95, 126, .16);
  --secondary-soft: rgba(108, 92, 231, .16);
}

html[data-theme="dark"] body.theme-road {
  --primary-soft: rgba(108, 92, 231, .18);
  --secondary-soft: rgba(0, 184, 217, .15);
}

body {
  background:
    radial-gradient(circle at 90% 2%, var(--primary-soft), transparent 24rem),
    radial-gradient(circle at 4% 95%, var(--secondary-soft), transparent 25rem),
    linear-gradient(180deg, #fffdf8 0%, var(--page-bg) 48%, #f7f5ff 100%);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 90% 2%, var(--primary-soft), transparent 24rem),
    radial-gradient(circle at 4% 95%, var(--secondary-soft), transparent 25rem),
    var(--page-bg);
}

body::after {
  position: fixed;
  z-index: -2;
  top: 115px;
  left: 4vw;
  width: 110px;
  height: 110px;
  content: "";
  opacity: .22;
  border: 18px solid var(--youth-yellow);
  border-radius: 30% 70% 55% 45%;
  transform: rotate(-18deg);
  animation: youth-float 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes youth-float {
  0%, 100% { transform: translateY(0) rotate(-18deg); }
  50% { transform: translateY(-16px) rotate(-7deg); }
}

.app-header {
  border-bottom: 0;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: 0 10px 35px rgba(35, 30, 75, .05);
}

.header-avatar {
  border-radius: 16px 16px 16px 5px;
  transform: rotate(-3deg);
}

.header-user-copy strong {
  font-size: 13px;
  font-weight: 950;
}

.header-user-copy span {
  color: var(--primary);
  font-weight: 800;
}

.icon-button {
  border: 0;
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px var(--border), 0 8px 20px rgba(30, 29, 60, .04);
}

.login-layout {
  border: 0;
  border-radius: 38px;
  box-shadow: 0 32px 90px rgba(41, 35, 90, .16);
}

.login-showcase {
  border-radius: 0;
}

.login-showcase::before {
  width: 190px;
  height: 190px;
  inset: 40px auto auto 45px;
  content: "✦";
  color: rgba(255, 255, 255, .18);
  border: 0;
  font-size: 170px;
  line-height: 1;
}

.login-showcase::after {
  width: 180px;
  height: 180px;
  inset: auto 25px 10px auto;
  content: "☺";
  color: rgba(255, 255, 255, .16);
  border: 0;
  font-size: 150px;
  line-height: 1;
}

.login-brand-mark {
  border-radius: 18px 18px 18px 6px;
  transform: rotate(-5deg);
}

.login-promo h1 {
  max-width: 570px;
  font-weight: 950;
  letter-spacing: -1.5px;
}

.login-proof div {
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px 18px 18px 7px;
  transform: rotate(-1deg);
}

.login-proof div:nth-child(2) {
  transform: rotate(2deg);
}

.login-card .login-logo {
  border-radius: 22px 22px 22px 7px;
  transform: rotate(-4deg);
}

.login-card h2 {
  font-weight: 950;
}

.btn {
  border-radius: 15px 15px 15px 6px;
}

.btn-primary {
  box-shadow:
    0 12px 28px color-mix(in srgb, var(--primary) 28%, transparent),
    inset 0 -2px 0 rgba(0,0,0,.08);
}

.hero-card {
  min-height: 285px;
  border-radius: 36px 36px 36px 11px;
  box-shadow:
    var(--hero-shadow),
    inset 0 0 0 1px rgba(255,255,255,.16);
}

.hero-card::before {
  top: -75px;
  left: 14%;
  width: 175px;
  height: 175px;
  content: "✦";
  color: rgba(255, 255, 255, .15);
  border: 0;
  font-size: 170px;
  line-height: 1;
  transform: rotate(12deg);
}

.hero-card::after {
  right: auto;
  left: -18px;
  bottom: -42px;
  width: 170px;
  height: 170px;
  content: "◡";
  color: rgba(255, 255, 255, .16);
  border: 0;
  font-size: 190px;
  line-height: .8;
  transform: rotate(-12deg);
}

.hero-copy h1 {
  font-weight: 950;
  letter-spacing: -1.2px;
}

.hero-card .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 99px;
  background: rgba(255,255,255,.11);
  font-weight: 900;
}

.hero-progress {
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px 18px 18px 6px;
  background: rgba(255,255,255,.08);
}

.progress-track {
  height: 11px;
  background: rgba(255,255,255,.2);
}

.progress-track span {
  background: linear-gradient(90deg, #fff, var(--youth-yellow));
  box-shadow: 0 0 18px rgba(255,216,77,.65);
}

.hero-metric {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px 24px 24px 8px;
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.hero-metric:nth-child(1) {
  transform: rotate(-2deg);
}

.hero-metric:nth-child(2) {
  transform: translateY(6px) rotate(2deg);
}

.hero-metric i {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 15px;
  color: var(--youth-ink);
  border-radius: 13px 13px 13px 5px;
  background: var(--youth-yellow);
  place-items: center;
  opacity: 1;
}

.stats-grid {
  gap: 12px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 22px 22px 22px 8px;
  box-shadow: 0 14px 35px rgba(39, 33, 78, .08);
}

.stat-card::after {
  position: absolute;
  top: -18px;
  left: -16px;
  width: 60px;
  height: 60px;
  content: "";
  opacity: .14;
  border-radius: 50%;
  background: var(--primary);
}

.stat-card:nth-child(2n) {
  transform: translateY(5px);
}

.stat-icon {
  border-radius: 16px 16px 16px 5px;
}

.stat-copy strong {
  font-weight: 950;
}

.surface-card {
  border: 0;
  border-radius: 28px 28px 28px 10px;
  box-shadow: 0 16px 42px rgba(36, 31, 76, .08);
}

.section-heading h2,
.section-heading h3 {
  font-weight: 950;
}

.eyebrow {
  color: var(--primary);
  font-weight: 950;
  letter-spacing: 0;
}

.next-action-card {
  border: 0;
  border-radius: 23px 23px 23px 8px;
  background:
    radial-gradient(circle at 95% 0, color-mix(in srgb, var(--youth-yellow) 45%, transparent), transparent 9rem),
    linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
}

.next-action-icon {
  border-radius: 19px 19px 19px 6px;
  transform: rotate(-4deg);
  box-shadow: 0 11px 25px color-mix(in srgb, var(--primary) 25%, transparent);
}

.score-row-icon {
  border-radius: 12px 12px 12px 4px;
}

.mini-badge {
  border: 0;
  border-radius: 18px 18px 18px 6px;
  box-shadow: inset 0 0 0 1px var(--border);
}

.mini-badge > span {
  border-radius: 14px 14px 14px 5px;
  transform: rotate(-4deg);
}

.view-intro {
  border: 0;
  border-radius: 28px 28px 28px 9px;
  background:
    linear-gradient(135deg, var(--surface), var(--primary-soft));
  box-shadow: 0 16px 42px rgba(36, 31, 76, .08);
}

.view-intro-icon {
  border-radius: 19px 19px 19px 6px;
  transform: rotate(-5deg);
}

.event-card {
  border: 0;
  border-radius: 25px 25px 25px 8px;
  box-shadow: 0 14px 38px rgba(38, 32, 79, .08);
  transition: transform .22s, box-shadow .22s;
}

.event-card:hover {
  transform: translateY(-4px) rotate(-.35deg);
  box-shadow: 0 22px 50px rgba(38, 32, 79, .13);
}

.event-card::after {
  right: auto;
  left: 0;
  width: 7px;
  border-radius: 0 99px 99px 0;
}

.event-index {
  border-radius: 17px 17px 17px 6px;
  transform: rotate(-4deg);
}

.status-pill {
  border-radius: 99px 99px 99px 7px;
}

.journey-list::before {
  width: 5px;
  background: linear-gradient(
    var(--primary),
    var(--youth-coral),
    var(--youth-yellow)
  );
  opacity: .2;
}

.journey-marker {
  border-radius: 17px 17px 17px 6px;
  transform: rotate(-4deg);
}

.journey-node:nth-child(even) .journey-marker {
  transform: rotate(4deg);
}

.journey-card {
  border: 0;
  border-radius: 25px 25px 25px 8px;
  box-shadow: 0 14px 38px rgba(38, 32, 79, .08);
}

.journey-card::before {
  display: none;
}

.lesson-card {
  border: 0;
  border-radius: 26px 26px 26px 9px;
  box-shadow: 0 15px 40px rgba(38, 32, 79, .09);
  transition: transform .22s, box-shadow .22s;
}

.lesson-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 23px 52px rgba(38, 32, 79, .14);
}

.lesson-cover {
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.65), transparent 5rem),
    linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
}

.lesson-complete {
  border-radius: 99px 99px 99px 6px;
}

.lesson-progress-line {
  height: 8px;
}

.lesson-progress-line span {
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--youth-coral),
    var(--youth-yellow)
  );
}

.leader-row {
  border: 0;
  border-radius: 20px 20px 20px 7px;
  box-shadow: 0 11px 30px rgba(38, 32, 79, .07);
}

.leader-row:nth-child(1) {
  background:
    linear-gradient(135deg, rgba(255,216,77,.24), transparent),
    var(--surface);
  transform: scale(1.015);
}

.leader-row:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(185,195,215,.22), transparent),
    var(--surface);
}

.leader-row:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(255,150,90,.18), transparent),
    var(--surface);
}

.leader-avatar {
  border-radius: 15px 15px 15px 5px;
  transform: rotate(-3deg);
}

.profile-card {
  border: 0;
  border-radius: 28px 28px 28px 10px;
  box-shadow: 0 16px 42px rgba(36, 31, 76, .08);
}

.profile-avatar {
  border-radius: 29px 29px 29px 10px;
  transform: rotate(-3deg);
}

.profile-group-badge {
  border-radius: 99px 99px 99px 6px;
}

.profile-fact {
  border-radius: 15px 15px 15px 5px;
}

.badge-card {
  border: 0;
  border-radius: 19px 19px 19px 6px;
  box-shadow: inset 0 0 0 1px var(--border);
}

.badge-icon {
  border-radius: 16px 16px 16px 5px;
  transform: rotate(-4deg);
}

.bottom-nav {
  border: 0;
  border-radius: 28px 28px 28px 10px;
  box-shadow: 0 20px 55px rgba(30, 26, 68, .18);
}

.bottom-nav button {
  border-radius: 18px 18px 18px 6px;
  font-weight: 900;
}

.bottom-nav button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 9px 22px color-mix(in srgb, var(--primary) 24%, transparent);
}

.modal-panel {
  border: 0;
  border-radius: 31px 31px 0 0;
}

.drawer-panel {
  border: 0;
}

.notification-item {
  border: 0;
  border-radius: 18px 18px 18px 6px;
  box-shadow: inset 0 0 0 1px var(--border);
}

.detail-hero {
  border: 0;
  border-radius: 24px 24px 24px 8px;
}

.question-block {
  border: 0;
  border-radius: 20px 20px 20px 7px;
  box-shadow: inset 0 0 0 1px var(--border);
}

.rating-option span,
.choice-option span {
  border-radius: 13px 13px 13px 5px;
}

.toast {
  border: 0;
  border-radius: 18px 18px 18px 6px;
}

@media (max-width: 760px) {
  body::after {
    width: 70px;
    height: 70px;
    border-width: 12px;
  }

  .hero-card {
    border-radius: 28px 28px 28px 9px;
  }

  .hero-metric:nth-child(1),
  .hero-metric:nth-child(2),
  .stat-card:nth-child(2n) {
    transform: none;
  }

  .hero-card::before {
    top: -35px;
    left: 5px;
    font-size: 110px;
  }

  .hero-card::after {
    font-size: 130px;
  }

  .event-card:hover,
  .lesson-card:hover {
    transform: none;
  }
}
