/* ---- APP CHROME ---- */
.app-body {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.app-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-light);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--fg);
}

.nav-link--cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-link--cta:hover {
  background: var(--accent-light);
}

.app-main {
  flex: 1;
}

/* ---- LAYOUT ---- */
.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.page-container--narrow {
  max-width: 680px;
}

.page-header {
  margin-bottom: 48px;
  text-align: center;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-sub {
  font-size: 1.05rem;
  color: var(--fg-light);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-light);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--accent);
}

/* ---- FILTER BAR ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-chip {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-light);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  text-decoration: none;
  transition: all 0.15s;
  background: #fff;
}

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

.filter-chip--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---- CARD GRID ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.craft-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.craft-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(180, 83, 9, 0.1);
  transform: translateY(-2px);
}

.craft-card-trade {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.craft-card-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 6px;
}

.craft-card-area {
  font-size: 0.85rem;
  color: var(--fg-light);
  margin-bottom: 12px;
}

.craft-card-bio {
  font-size: 0.9rem;
  color: var(--fg-light);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.craft-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

/* ---- PROFILE ---- */
.profile-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 40px 40px 32px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--accent-subtle) 0%, #fff 100%);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.profile-section {
  padding: 32px 40px;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.profile-bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg-light);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.portfolio-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.profile-cta {
  padding: 40px;
  text-align: center;
}

.profile-cta-note {
  font-size: 0.82rem;
  color: var(--fg-light);
  margin-top: 12px;
}

/* ---- FORMS ---- */
.form-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.required {
  color: var(--accent);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
  appearance: auto;
}

.form-input:focus {
  border-color: var(--accent);
  background: #fff;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--fg-light);
  margin-top: 6px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: #9A3E06;
}

.btn--secondary {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--fg);
}

.btn--large {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
  text-align: center;
}

.btn--approve {
  background: #D1FAE5;
  color: #065F46;
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s;
}

.btn--approve:hover {
  background: #A7F3D0;
}

.btn--reject {
  background: #FEE2E2;
  color: #991B1B;
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s;
}

.btn--reject:hover {
  background: #FECACA;
}

.btn--sm {
  padding: 4px 10px;
  font-size: 0.75rem;
}

/* ---- ALERTS ---- */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.alert--success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert--error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--fg-light);
}

/* ---- ADMIN ---- */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.admin-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.admin-stat {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  min-width: 140px;
}

.admin-section {
  margin-bottom: 60px;
}

.admin-section .section-label {
  font-size: 0.8rem;
  display: block;
  margin-bottom: 16px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: #fff;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-light);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table a {
  color: var(--accent);
  text-decoration: none;
}

.action-cell {
  display: flex;
  gap: 8px;
  align-items: center;
}

.empty-text {
  color: var(--fg-light);
  font-size: 0.9rem;
  padding: 16px 0;
}

/* ---- LANDING PAGE NAV ADDITION ---- */
.landing-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.landing-nav-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.landing-nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg-light);
  text-decoration: none;
  transition: color 0.15s;
}

.landing-nav-link:hover {
  color: var(--fg);
}

.landing-nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
}

.landing-nav-cta:hover {
  background: var(--accent-light) !important;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 28px;
  }

  .profile-section,
  .profile-cta {
    padding: 24px;
  }

  .form-card {
    padding: 24px;
  }

  .admin-stats {
    gap: 12px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .page-container {
    padding: 40px 16px 80px;
  }
}
