/* ============================================
   PORTFOLIO SITE — SHARED STYLES
   Aesthetic: Dark Editorial / Ink & Amber
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg:        #0d0d0d;
  --bg2:       #141414;
  --bg3:       #1a1a1a;
  --border:    #2a2a2a;
  --amber:     #f5a623;
  --amber-dim: #c47f0f;
  --cream:     #f0ead6;
  --muted:     #6b6b6b;
  --danger:    #e05c5c;
  --success:   #4caf7d;
  --text:      #e8e2d4;
  --radius:    12px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --shadow:    0 8px 40px rgba(0,0,0,0.6);
  --glow:      0 0 30px rgba(245,166,35,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Background texture ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(245,166,35,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(245,166,35,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
a { color: var(--amber); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

/* ---- Auth Layout ---- */
.auth-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side  { display: none; }
}

/* Left decorative panel */
.auth-side {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.auth-side::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
}

.auth-side-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--amber);
  letter-spacing: -0.5px;
}

.auth-side-logo span { color: var(--cream); }

.auth-side-quote {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cream);
  max-width: 340px;
}

.auth-side-quote em {
  color: var(--amber);
  font-style: normal;
}

.auth-side-footer {
  font-size: 13px;
  color: var(--muted);
}

/* Right form panel */
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  animation: fadeUp .6s ease both;
}

.auth-card h2 {
  font-size: 34px;
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 6px;
}

.auth-card .subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 36px;
}

/* ---- Form Elements ---- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .25s, box-shadow .25s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
}

.form-group input::placeholder { color: var(--muted); }

/* ---- Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, opacity .2s;
}

.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--amber);
  color: #0d0d0d;
  width: 100%;
  margin-top: 8px;
  box-shadow: 0 4px 24px rgba(245,166,35,0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(245,166,35,0.45);
  opacity: .92;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ---- Alerts ---- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: fadeUp .4s ease both;
}

.alert-error   { background: rgba(224,92,92,.12); border: 1px solid rgba(224,92,92,.3); color: #e88; }
.alert-success { background: rgba(76,175,125,.12); border: 1px solid rgba(76,175,125,.3); color: #7dddaa; }
.alert-info    { background: rgba(245,166,35,.1);  border: 1px solid rgba(245,166,35,.25); color: var(--amber); }

.alert-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ---- Divider ---- */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 12px;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- Switch link ---- */
.switch-link {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}

/* ---- Dashboard Layout ---- */
.dash-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}

@media (max-width: 900px) {
  .dash-wrap { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
}

/* Sidebar */
.dash-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--amber);
  padding: 0 28px 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.sidebar-logo span { color: var(--cream); }

.sidebar-nav { flex: 1; }

.nav-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 28px;
  margin: 20px 0 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 28px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.nav-item:hover { color: var(--text); background: rgba(255,255,255,.03); }

.nav-item.active {
  color: var(--amber);
  background: rgba(245,166,35,.07);
  border-left-color: var(--amber);
}

.nav-icon { font-size: 17px; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 24px 28px 0;
  border-top: 1px solid var(--border);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #0d0d0d;
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 500; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--muted); }

.logout-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: color .2s;
  flex-shrink: 0;
}
.logout-btn:hover { color: var(--danger); }

/* Dashboard main */
.dash-main { padding: 40px 48px; overflow-y: auto; }

@media (max-width: 600px) { .dash-main { padding: 24px 16px; } }

.dash-header {
  margin-bottom: 36px;
  animation: fadeUp .5s ease both;
}

.dash-header h1 { font-size: 36px; color: var(--cream); }
.dash-header .greeting-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .25s, transform .2s;
  animation: fadeUp .5s ease both;
}

.stat-card:hover { border-color: rgba(245,166,35,.4); transform: translateY(-2px); }
.stat-card:nth-child(2) { animation-delay: .1s; }
.stat-card:nth-child(3) { animation-delay: .2s; }
.stat-card:nth-child(4) { animation-delay: .3s; }

.stat-icon { font-size: 26px; margin-bottom: 14px; }
.stat-value { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--cream); line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: .04em; text-transform: uppercase; }

/* Content sections */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 700px) { .section-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  animation: fadeUp .6s ease both;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* Skill bars */
.skill-item { margin-bottom: 18px; }
.skill-header { display: flex; justify-content: space-between; font-size: 13px; color: var(--text); margin-bottom: 6px; }
.skill-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber-dim), var(--amber));
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* Project list */
.project-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.project-item:last-child { border-bottom: none; }

.project-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 6px;
  flex-shrink: 0;
}

.project-name { font-size: 14px; font-weight: 500; color: var(--cream); }
.project-tech { font-size: 12px; color: var(--muted); margin-top: 2px; }

.badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
  margin-left: auto;
  flex-shrink: 0;
}
.badge-live { background: rgba(76,175,125,.15); color: #4caf7d; border: 1px solid rgba(76,175,125,.3); }
.badge-wip  { background: rgba(245,166,35,.12); color: var(--amber); border: 1px solid rgba(245,166,35,.25); }

/* ---- Verification Page ---- */
.verify-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.verify-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 48px;
  box-shadow: var(--shadow), var(--glow);
  animation: fadeUp .6s ease both;
}

.verify-icon { font-size: 64px; margin-bottom: 24px; display: block; animation: bounce 2s ease infinite; }

.verify-card h2 { font-size: 30px; color: var(--cream); margin-bottom: 12px; }
.verify-card p  { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 32px; }

.verify-card .email-highlight {
  display: inline-block;
  background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.2);
  border-radius: 8px;
  padding: 4px 14px;
  color: var(--amber);
  font-weight: 500;
  margin: 4px 0 16px;
}

.verify-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 32px;
}

.verify-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg3);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
}

.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--amber);
  color: #0d0d0d;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ---- Password strength ---- */
.pw-strength { margin-top: 8px; display: flex; gap: 4px; }
.pw-bar { height: 3px; flex: 1; border-radius: 2px; background: var(--border); transition: background .3s; }
.pw-bar.weak   { background: var(--danger); }
.pw-bar.medium { background: var(--amber); }
.pw-bar.strong { background: var(--success); }
.pw-text { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---- Checkbox ---- */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--amber);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
