/* ==========================================================================
   INEIKA Top-5-Surf-Forecast (Startseite)
   David-Carson / Surf-Zine, aber warm und liebevoll:
   Papierweiß-Creme statt hartem Schwarz, weiche Linien und der eine
   Orange-Akzent als Marker. Keine zusätzlichen Akzentfarben.
   ========================================================================== */

.ineika-fc-host {
  width: 100%;
  max-width: 100%;
  margin-top: 20px;
}

.ineika-fc {
  --ineika-accent: var(--e-global-color-accent);
  --ineika-ink: #3a352f;
  --ineika-paper: #fffaf2;
  position: relative;
  padding: 18px 15px 15px;
  color: var(--ineika-ink);
  font-family: "Oxygen", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at 96% 4%, color-mix(in srgb, var(--ineika-accent) 12%, transparent), transparent 34%),
    var(--ineika-paper);
  border: 1px solid #d8ccbb;
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(58, 53, 47, 0.1);
  max-width: 100%;
}

.ineika-fc *,
.ineika-fc *::before,
.ineika-fc *::after {
  box-sizing: border-box;
}

.ineika-fc ol,
.ineika-fc ul,
.ineika-fc p {
  margin: 0;
  padding: 0;
}

.ineika-fc-sub {
  position: relative;
  margin: 0 0 13px;
  padding-left: 12px;
  color: #665e52;
  font-family: "Oxygen", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.ineika-fc-sub::before {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;
  width: 3px;
  content: "";
  background: var(--ineika-accent);
  border-radius: 3px;
  transform: rotate(-1.5deg);
}

.ineika-fc-list {
  margin: 0 0 8px;
  list-style: none;
}

.ineika-fc-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0 11px;
  border-bottom: 1px dotted #cdbfaa;
  transform: rotate(-0.12deg);
}

.ineika-fc-item:nth-child(even) {
  transform: rotate(0.1deg);
}

.ineika-fc-item:first-child {
  border-top: 1px dotted #cdbfaa;
}

.ineika-fc-rank {
  display: flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  height: 28px;
  color: var(--ineika-ink);
  font-family: "Oxygen", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  background: color-mix(in srgb, var(--ineika-accent) 24%, var(--ineika-paper));
  border: 1px solid color-mix(in srgb, var(--ineika-accent) 55%, #ffffff);
  border-radius: 50%;
  transform: rotate(-5deg);
}

.ineika-fc-item:nth-child(even) .ineika-fc-rank {
  transform: rotate(4deg);
}

.ineika-fc-main {
  flex: 1 1 auto;
  min-width: 0;
}

.ineika-fc-name {
  display: block;
  color: var(--ineika-ink);
  font-family: "Oxygen", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.ineika-fc-tags {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #7a6f60;
  font-family: "Oxygen", "Helvetica Neue", Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ineika-fc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 7px;
  margin-top: 7px;
}

.ineika-fc-stat {
  min-width: 0;
  padding-top: 4px;
  border-top: 1px solid #d9ccb9;
}

.ineika-fc-stat + .ineika-fc-stat {
  padding-left: 7px;
  border-left: 1px dotted #d6c8b4;
}

.ineika-fc-stat b {
  display: block;
  overflow: hidden;
  color: var(--ineika-ink);
  font-family: "Oxygen", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ineika-fc-stat small {
  display: block;
  overflow: hidden;
  color: #887c6c;
  font-family: "Oxygen", "Helvetica Neue", Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ineika-fc-score {
  display: flex;
  flex: 0 0 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px 3px;
  color: var(--ineika-ink);
  text-align: center;
  background: color-mix(in srgb, var(--ineika-accent) 15%, var(--ineika-paper));
  border: 1px dashed color-mix(in srgb, var(--ineika-accent) 75%, #ffffff);
  border-radius: 50%;
  transform: rotate(1.5deg);
}

.ineika-fc-item:nth-child(even) .ineika-fc-score {
  transform: rotate(-1deg);
}

.ineika-fc-score b {
  display: block;
  font-family: "Oxygen", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 0.95;
}

.ineika-fc-score span {
  display: block;
  margin-top: 2px;
  color: #6f6454;
  font-family: "Oxygen", "Helvetica Neue", Arial, sans-serif;
  font-size: 7px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ineika-fc-meta {
  margin-top: 10px;
  padding-top: 7px;
  color: #857965;
  font-family: "Oxygen", "Helvetica Neue", Arial, sans-serif;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.4;
  border-top: 1px solid #d9ccb9;
}

.ineika-fc-foot {
  margin-top: 9px;
  text-align: right;
}

.ineika-fc-foot a {
  display: inline-block;
  padding: 5px 11px;
  color: var(--ineika-ink);
  font-family: "Oxygen", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--ineika-accent) 85%, #ffffff);
  border-radius: 999px;
  transform: rotate(-0.4deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ineika-fc-foot a:hover,
.ineika-fc-foot a:focus {
  transform: rotate(0deg) translateY(-1px);
  box-shadow: 0 6px 14px rgba(58, 53, 47, 0.14);
}

.ineika-fc-error {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 14px;
  padding: 12px;
  color: var(--ineika-ink);
  font-family: "Oxygen", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  border: 1px dashed color-mix(in srgb, var(--ineika-accent) 65%, #ffffff);
  border-radius: 3px;
}

.ineika-fc-error strong {
  color: var(--ineika-accent);
  font-size: 13px;
}

@media (max-width: 380px) {
  .ineika-fc {
    padding-right: 11px;
    padding-left: 11px;
    box-shadow: 0 8px 18px rgba(58, 53, 47, 0.08);
  }

  .ineika-fc-rank {
    flex-basis: 24px;
    height: 24px;
  }

  .ineika-fc-score {
    flex-basis: 38px;
    min-height: 40px;
  }

  .ineika-fc-score b {
    font-size: 18px;
  }
}
