/* ============================================================
   Inkludera Kulturplattform — Startsida / Landningssida
   ============================================================ */

/* Dölj standardtemat header/footer/sidebar på startsidan */
.ia-hp-page .site-header,
.ia-hp-page .site-footer,
.ia-hp-page .widget-area,
.ia-hp-page #comments {
  display: none !important;
}

/* Full-bredd wrapper */
.ia-hp {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  background: linear-gradient(160deg, #0f2a1a 0%, #1a3a2a 50%, #0d2215 100%);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
}

/* ── Hero ─────────────────────────────────────────────────── */
.ia-hp-hero {
  text-align: center;
  max-width: 600px;
  margin-bottom: 3rem;
}

.ia-hp-logo {
  font-size: 2.5rem;
  color: #70CE99;
  margin-bottom: 1.25rem;
  display: block;
  letter-spacing: -.05em;
  line-height: 1;
  animation: ia-pulse 3s ease-in-out infinite;
}

@keyframes ia-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .75; transform: scale(.95); }
}

.ia-hp-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.ia-hp-lead {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  margin: 0;
}

/* ── Kortlayout ───────────────────────────────────────────── */
.ia-hp-cards {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 840px;
  width: 100%;
}

/* ── Enskilt kort ─────────────────────────────────────────── */
.ia-hp-card {
  flex: 1;
  background: #ffffff;
  border-radius: 20px;
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.ia-hp-card--code {
  border-radius: 20px 0 0 20px;
  border-right: 1px solid #f0f0f0;
}

.ia-hp-card--login {
  background: #f8fdfb;
  border-radius: 0 20px 20px 0;
  justify-content: center;
}

.ia-hp-card-icon {
  font-size: 2rem;
  margin-bottom: .5rem;
}

.ia-hp-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a2e20;
  margin: 0 0 .25rem;
}

.ia-hp-card p {
  font-size: .9rem;
  color: #666;
  line-height: 1.65;
  margin: 0 0 1rem;
}

/* ── Divider ──────────────────────────────────────────────── */
.ia-hp-divider {
  display: flex;
  align-items: center;
  padding: 0 .5rem;
  flex-shrink: 0;
  background: #fff;
}

.ia-hp-divider span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #ccc;
  padding: .75rem .1rem;
  position: relative;
}

.ia-hp-divider span::before,
.ia-hp-divider span::after {
  content: '';
  display: block;
  width: 1px;
  height: 2rem;
  background: #e8e8e8;
  margin: .4rem auto;
}

/* ── Visselblåsarlänk ─────────────────────────────────────── */
.ia-hp-visselblas-link {
  text-align: center;
  margin-top: 2.5rem;
}
.ia-hp-visselblas-link a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  padding: .75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.ia-hp-visselblas-link a:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.4);
}

/* ── Formulär ─────────────────────────────────────────────── */
.ia-hp-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: .5rem;
}

.ia-hp-input {
  width: 100%;
  padding: .9rem 1.1rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
  color: #1a2e20;
  box-sizing: border-box;
}

.ia-hp-input::placeholder {
  color: #bbb;
  letter-spacing: .08em;
  font-weight: 400;
  font-size: .95rem;
}

.ia-hp-input:focus {
  border-color: #70CE99;
  box-shadow: 0 0 0 3px rgba(112,206,153,.18);
}

/* ── Knappar ──────────────────────────────────────────────── */
.ia-hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.5rem;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, transform .12s, box-shadow .15s;
  line-height: 1;
  width: 100%;
}

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

.ia-hp-btn--primary {
  background: #70CE99;
  color: #1a2e20;
  border-color: #70CE99;
}

.ia-hp-btn--primary:hover {
  background: #4BAF7A;
  border-color: #4BAF7A;
  box-shadow: 0 4px 14px rgba(112,206,153,.35);
}

.ia-hp-btn--secondary {
  background: transparent;
  color: #1a3a2a;
  border-color: #c8e6d6;
}

.ia-hp-btn--secondary:hover {
  background: #e0f6eb;
  border-color: #70CE99;
  color: #0f2a1a;
}

/* ── Alert ────────────────────────────────────────────────── */
.ia-hp-alert {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: .25rem;
}

/* ================================================================
   INLOGGAD — ROLLBASERAD GENVÄGSVY
   ================================================================ */
.ia-hp--loggedin {
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.ia-hp-li-wrap {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* ── Topprad ────────────────────────────────────────────── */
.ia-hp-li-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.ia-hp-li-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.ia-hp-li-brand-name {
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
}

.ia-hp-li-user {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  margin-left: .75rem;
  padding-left: .75rem;
  border-left: 1px solid rgba(255,255,255,.15);
}

.ia-hp-li-role {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #70CE99;
}

.ia-hp-li-name {
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  font-weight: 500;
}

.ia-hp-logout {
  margin-left: auto;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  padding: .35rem .85rem;
  border-radius: 999px;
  transition: color .15s, border-color .15s, background .15s;
  flex-shrink: 0;
}

.ia-hp-logout:hover {
  color: #fff;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.06);
}

/* ── Välkommen-text ───────────────────────────────────────── */
.ia-hp-li-welcome { margin-bottom: 2rem; }

.ia-hp-li-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0 0 .4rem;
}

.ia-hp-li-lead {
  font-size: .95rem;
  color: rgba(255,255,255,.5);
  margin: 0;
}

/* ── Sektioner ────────────────────────────────────────────── */
.ia-hp-section { margin-bottom: 2rem; }

.ia-hp-section-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin: 0 0 .65rem .1rem;
}

/* ── Tile-grid ────────────────────────────────────────────── */
.ia-hp-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .75rem;
}

.ia-hp-tile {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  color: #fff;
  transition: background .15s, border-color .15s, transform .12s, box-shadow .15s;
}

.ia-hp-tile:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  color: #fff;
}

/* Colour variants */
.ia-hp-tile--green:hover  { border-color: #70CE99; background: rgba(112,206,153,.13); }
.ia-hp-tile--blue:hover   { border-color: #818cf8; background: rgba(129,140,248,.12); }
.ia-hp-tile--purple:hover { border-color: #d8b4fe; background: rgba(216,180,254,.12); }
.ia-hp-tile--red:hover    { border-color: #fca5a5; background: rgba(252,165,165,.1);  }
.ia-hp-tile--muted        { opacity: .75; }

.ia-hp-tile-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
  line-height: 1;
}

.ia-hp-tile-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.ia-hp-tile-title {
  font-size: .975rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  display: block;
}

.ia-hp-tile-desc {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ia-hp-tile-badge {
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}

.ia-hp-tile-arrow {
  color: rgba(255,255,255,.25);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform .13s, color .13s;
}

.ia-hp-tile:hover .ia-hp-tile-arrow {
  transform: translateX(4px);
  color: rgba(255,255,255,.65);
}

/* ── Responsiv ────────────────────────────────────────────── */
@media (max-width: 680px) {
  .ia-hp-cards {
    flex-direction: column;
  }

  .ia-hp-card--code  { border-radius: 16px 16px 0 0; border-right: none; border-bottom: 1px solid #f0f0f0; }
  .ia-hp-card--login { border-radius: 0 0 16px 16px; }

  .ia-hp-divider {
    flex-direction: row;
    padding: .25rem 1.5rem;
    background: #fff;
  }

  .ia-hp-divider span {
    writing-mode: horizontal-tb;
    padding: .25rem .75rem;
  }

  .ia-hp-divider span::before,
  .ia-hp-divider span::after {
    width: 2rem;
    height: 1px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 .25rem;
  }

  .ia-hp { padding: 2rem 1rem 3rem; }
  .ia-hp-hero { margin-bottom: 2rem; }
  .ia-hp-card { padding: 2rem 1.5rem; }

  /* Logged-in responsive */
  .ia-hp-li-wrap { padding: 1.5rem 1rem 4rem; }
  .ia-hp-li-header { flex-wrap: wrap; gap: .75rem; }
  .ia-hp-li-user { display: none; }
  .ia-hp-tiles { grid-template-columns: 1fr; }
  .ia-hp-tile-desc { white-space: normal; }
}
