/* TRAILASAUR ACCOUNT - INDUSTRIAL PALEO THEME */

/* ---- THEME VARIABLES ---- */
:root {
  --bg-deep: #121212;
  --bg-card: #1E1E1E;
  --bg-input: #2A2A2A;

  --text-white: #FFFFFF;
  --text-muted: #B3B3B3;

  --border-dim: rgba(255, 255, 255, 0.12);

  --accent: #5D9C59;       /* Forest Green */
  --accent-olive: #4A5D23; /* Backgrounds */
  --accent-blue: #3498DB;
  --accent-orange: #FF5722;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ---- BASE ---- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 900; margin: 0; letter-spacing: -0.5px; }
p, li { line-height: 1.6; color: var(--text-muted); }

/* ---- LAYOUT ---- */
.account-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px 80px 20px;
}

/* ---- HERO HEADER ---- */
.account-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-dim);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-placeholder {
  width: 64px;
  height: 64px;
  background: var(--bg-input);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.user-info h1 { font-size: 1.8rem; line-height: 1; }
.user-handle { font-family: 'Roboto Mono', monospace; color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* ---- TABS ---- */
.module-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dim);
  display: inline-flex;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 20px;
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.tab-btn:hover { color: var(--text-white); }

.tab-btn.active {
  background: var(--bg-deep);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ---- SECTIONS (Modules) ---- */
.module-section {
  display: none; /* Hidden by default */
  animation: fadeIn 0.3s ease-out;
}
.module-section.active { display: block; }

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-dim);
}

.tech-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 1px;
}

/* ---- FORMS ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field-group label {
  display: block;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

input, select {
  width: 100%;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

input:focus { outline: none; border-color: var(--accent); }
input[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---- DNA CHIPS (Selectable) ---- */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.dna-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-dim);
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.dna-chip:hover { border-color: var(--accent); }

.dna-chip.selected {
  background: rgba(93, 156, 89, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- SLIDERS (Comfort Meter) ---- */
.slider-group { margin-bottom: 20px; }
.slider-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; }
.slider-val { font-family: 'Roboto Mono', monospace; color: var(--accent); }

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  border: none; /* Override general input border */
  padding: 0;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: -6px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(93, 156, 89, 0.5);
}

/* ---- ACTIVITY HISTORY (Mission Log) ---- */
.activity-list {
  display: grid;
  gap: 16px;
}

.activity-card {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-dim);
  transition: transform 0.2s;
  display: grid;
  grid-template-columns: 140px 1fr;
}

.activity-card:hover { border-color: var(--accent); transform: translateX(4px); }

/* SVG Map Container */
.mini-map {
  background: #181818;
  position: relative;
  height: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-map svg {
  width: 100%;
  height: 100%;
  padding: 10px; /* Internal padding so line doesn't hit edge */
}

/* Fallback if no map */
.no-map-icon {
  color: var(--border-dim);
  font-size: 2rem;
}

.activity-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.activity-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.activity-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.activity-stats {
  display: flex;
  gap: 16px;
}

.stat { display: flex; flex-direction: column; }
.stat-val { font-family: 'Roboto Mono', monospace; font-size: 0.9rem; color: var(--text-white); }
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }

/* ---- BUTTONS ---- */
.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: #4a7d47; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
}
.btn-outline:hover { border-color: var(--text-white); color: var(--text-white); }

.feedback-msg {
  margin-top: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.feedback-msg.success { background: rgba(93, 156, 89, 0.2); color: var(--success); border: 1px solid var(--success); }
.feedback-msg.error { background: rgba(255, 92, 92, 0.2); color: var(--error); border: 1px solid var(--error); }

/* Responsive */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .activity-card { grid-template-columns: 1fr; grid-template-rows: 120px auto; }
  .account-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .btn-outline { width: 100%; margin-top: 10px; }
}
