/* =========================
   KOMPENSA UI (INDEX + LOGIN)
   2026-04-03 10:36
========================= */

:root {
  /* Kompensa får egen färgkänsla */
  --primary: #2A5F63;
  --primary-hover: #234F52;
  --accent: #2F6F73;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
}

/* =========================
   LAYOUT
========================= */

.page-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.card {
  width: 100%;
  max-width: var(--max-width);
  background: var(--surface);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 56px 40px;
}

/* =========================
   TYPOGRAPHY
========================= */

.brand {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0 auto 14px;
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
}

.description {
  margin: 0 auto 34px;
  max-width: 620px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 10px;
}

.footer a {
  color: var(--primary);
  font-weight: 700;
}

.footer a:hover {
  text-decoration: underline;
}

/* =========================
   BUTTONS
========================= */

.actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: 0.2s ease;
  border: 1px solid transparent;
  min-width: 160px;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-solid);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #f2f5f1;
  transform: translateY(-1px);
}

/* =========================
   LOGIN (FORM)
========================= */

.form-card {
  padding: 48px 36px;
}

.form-title {
  margin: 0 0 10px;
  font-size: 2rem;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.input {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-actions {
  margin-top: 20px;
}

.form-actions .btn {
  width: 100%;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 640px) {
  .card {
    padding: 40px 22px;
  }

  .actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }
}
  /* =========================
   KOMPENSA – PROJECTS PAGE
   ========================= */

.kompensa-projects-page {
  min-height: 100vh;
}

.projects-page {
  width: 100%;
  max-width: 1110px;
  margin: 0 auto;
  padding: 48px 32px 64px;
  box-sizing: border-box;
}

.projects-header {
  margin-bottom: 32px;
}

.projects-eyebrow {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.projects-header h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.projects-subtitle {
  margin: 0;
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* Empty state */
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58vh;
}

.empty-state-card {
  width: 100%;
  max-width: 620px;
  padding: 48px 32px;
  border-radius: 24px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.empty-state-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  background: var(--surface-soft);
}

.empty-state-card h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
}

.empty-state-card p {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.85;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 22px;
  border: none;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:active {
  transform: translateY(0);
}

/* Grid */
.projects-section {
  margin-top: 16px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: stretch;
}

/* Cards */
.project-card {
  width: 100%;
  min-height: 230px;
  padding: 24px;
  border: none;
  border-radius: 22px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.project-card:active {
  transform: translateY(-1px);
}

.project-card h2,
.project-card h3 {
  margin: 0 0 10px;
  line-height: 1.2;
}

.project-card p {
  margin: 0;
  line-height: 1.5;
  opacity: 0.82;
}

/* Create card */
.create-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.create-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 400;
  background: var(--surface-soft);
}

.create-card-text {
  margin-top: auto;
}

.create-card-text p {
  margin-top: 6px;
}

/* Existing cards */
.existing-project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card-top {
  margin-bottom: 18px;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--surface-soft);
}

.project-card-body {
  margin-top: auto;
}

.project-meta {
  margin-top: 8px;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .projects-page {
    padding: 32px 18px 48px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card {
    min-height: 190px;
    padding: 20px;
  }

  .empty-state-card {
    padding: 36px 22px;
  }
}