/* =========================================================
   Castandstrike – clean blue, black and white interface
   ========================================================= */

:root {
  --ink: #111820;
  --navy: #183746;
  --blue: #2d6b80;
  --blue-soft: #e8f0f3;
  --line: #d8e1e5;
  --muted: #5e6b73;
  --surface: #ffffff;
  --background: #f4f7f8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--background);
  color: var(--ink);
  line-height: 1.6;
}

/* Header */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 16px rgba(17, 24, 32, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: 1300px;
  min-height: 94px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

header img[alt="Logo"], .header-logo {
  width: min(300px, 42vw);
  max-width: 300px;
  margin-left: auto;
  object-fit: contain;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-left img { width: 46px; height: 46px; object-fit: contain; }
.home-button img { width: 42px; height: 42px; }

.nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.nav-btn:hover, .home-button:hover {
  background: var(--blue-soft);
  border-color: #c8dbe1;
  opacity: 1;
  transform: translateY(-1px);
}

.nav-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 2;
  bottom: -32px;
  left: 50%;
  padding: 4px 8px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-btn:hover::after { opacity: 1; transform: translateX(-50%) translateY(2px); }
.best-fish, .second-best-fish { background: var(--blue-soft); box-shadow: none; }
.best-fish img { width: 34px; height: 34px; }
.second-best-fish { opacity: 0.85; }
.second-best-fish img { width: 26px; height: 26px; }

/* Main layout */
main { max-width: 1300px; margin: 0 auto; padding: 1.5rem; }
.dashboard { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; }
.right-column { display: flex; flex-direction: column; gap: 1.25rem; }

/* Tiles */
section {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(17, 24, 32, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(17, 24, 32, 0.09); }

section h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fishing-tile, .weather-tile, .tide-tile, .forecast-tile,
.englisch-desc, .norsk-desc, .german-desc { background: var(--surface); color: var(--ink); }
.fishing-tile { border-top: 4px solid var(--blue); }
.weather-tile { border-top: 4px solid #6d9aaa; }
.tide-tile, .forecast-tile { border-top: 4px solid var(--navy); }
.englisch-desc, .norsk-desc, .german-desc { border-left: 3px solid var(--blue); }
.fishing-advice { font-size: 1.05rem; }

.quick-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.quick-links a {
  padding: 0.4rem 0.8rem;
  border: 1px solid #b7cdd4;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.quick-links a:hover { background: var(--navy); color: #fff; }

.intro-text, .method-summary { margin: 1rem 0; background: #f8fafb; box-shadow: none; }
.intro-text:hover, .method-summary:hover { box-shadow: none; transform: none; }
.weather-main { font-size: 1.2rem; margin-bottom: 0.3rem; }
.weather-desc { color: var(--muted); font-style: italic; }
.sun-tile { padding: 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--blue-soft); }

ul { list-style: none; padding-left: 0; margin: 0; }
ul li { margin: 0.4rem 0; }
canvas { width: 100% !important; max-width: 100%; display: block; margin-top: 0.5rem; }
footer { margin: 2.5rem 1rem 2rem; color: var(--muted); text-align: center; font-size: 0.85rem; }
footer a { color: inherit; text-decoration: none; }

@media (max-width: 900px) { .dashboard { grid-template-columns: 1fr; } }
