/* DREAMVERSE — Market Analysis */

:root {
  --ocean-dark: #062d40;
  --ocean-blue: #07516b;
  --ocean-teal: #087e89;
  --ocean-light: #d8f2ef;
  --text: #f4fbfc;
  --muted: #c1d8df;
  --border: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: linear-gradient(
    135deg,
    var(--ocean-dark),
    var(--ocean-blue),
    #087b83,
    #06364f
  );
  background-size: 300% 300%;
  animation: ocean-flow 22s ease-in-out infinite;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

/* Soft, flowing ocean light */

body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 30%,
      rgba(78, 220, 207, 0.22), transparent 38%),
    radial-gradient(ellipse at 80% 25%,
      rgba(61, 158, 220, 0.22), transparent 35%),
    radial-gradient(ellipse at 55% 80%,
      rgba(13, 201, 173, 0.16), transparent 42%);
  filter: blur(28px);
  animation: ocean-current 18s ease-in-out infinite alternate;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 7%;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-logo img {
  display: block;
  width: 55px;
  max-width: 30%;
  height: auto;
}

.back-link {
  color: var(--muted);
  font-size: 0.9rem;
}

.back-link:hover,
.site-footer a:hover {
  color: #8ff5e7;
}

main {
  width: min(1100px, 86%);
  margin: 0 auto;
}

.page-intro {
  padding: 68px 0 36px;
  text-align: center;
}

.eyebrow {
  color: #8ff5e7;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.page-intro > p:last-child {
  color: var(--muted);
  font-size: 1rem;
}

.published-analysis {
  padding: 22px 0 60px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 1.5rem;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.analysis-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(3, 30, 46, 0.62);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.analysis-card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 245, 231, 0.55);
}

.analysis-card img,
.analysis-card video,
.analysis-media {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  background: #031e2e;
}

.analysis-content {
  padding: 20px;
}

.analysis-meta {
  color: #8ff5e7;
  font-size: 0.78rem;
}

.analysis-content h3 {
  margin: 8px 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

.analysis-content p {
  color: var(--muted);
  font-size: 0.92rem;
}

.analysis-link {
  display: inline-block;
  margin-top: 5px;
  color: #8ff5e7;
  font-weight: 700;
}

.analysis-message {
  grid-column: 1 / -1;
  padding: 28px 0;
  color: var(--muted);
}

.disclaimer {
  margin: 0 0 50px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(3, 30, 46, 0.35);
}

.disclaimer h2 {
  font-size: 1.1rem;
}

.disclaimer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

@keyframes ocean-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes ocean-current {
  0% { transform: translate(-3%, -2%) rotate(0deg) scale(1); }
  100% { transform: translate(3%, 2%) rotate(8deg) scale(1.08); }
}

@media (max-width: 650px) {
  .site-header,
  .site-footer {
    padding: 18px 6%;
  }

  .site-logo img {
    width: 112px;
  }

  .back-link {
    font-size: 0.8rem;
  }

  main {
    width: 88%;
  }

  .page-intro {
    padding: 48px 0 24px;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .analysis-content {
    padding: 16px;
  }

  .disclaimer {
    padding: 18px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body::before {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  .analysis-card {
    transition: none;
  }
}
