/* CryptoSantim – Review Site Styles */

:root {
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c6d;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --font-sans: "Open Sans", system-ui, sans-serif;
  --radius: 8px;
  --space: 1.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

/* Nav toggle (hamburger) – visible on mobile only */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
  transition: opacity 0.2s ease;
}

.nav-toggle:hover {
  opacity: 0.8;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Site nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-accent);
}

/* Mobile menu */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    height: 100vh;
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem var(--space) var(--space);
    gap: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s;
    z-index: 99;
  }

  .site-nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: url("../images/crypto-santim-hero-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem var(--space);
}

.hero-tagline {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 52ch;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: background 0.25s ease, transform 0.2s ease;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.hero-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: heroScroll 2s ease-in-out infinite;
}

@keyframes heroScroll {
  0%, 100% { opacity: 0.8; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
  }

  .hero-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
  }

  .hero-scroll {
    bottom: 1.5rem;
  }
}

/* Reviews List */
.reviews-list {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.reviews-list h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space);
  color: var(--color-text-muted);
}

.review-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space);
}

.review-card {
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.review-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.review-card a {
  display: block;
  padding: var(--space);
  text-decoration: none;
  color: inherit;
}

.review-card-top {
  margin-bottom: 0.75rem;
}

.review-card-logo {
  width: 200px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  display: block;
}

.review-card-logo-placeholder {
  width: 200px;
  height: 80px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.review-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.review-card-stars {
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #eab308;
}

.review-card .excerpt {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.review-card .read-more {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 500;
}

/* Article Page */
.article-header {
  padding: 3rem 0 2rem;
}

.article-header .back-link {
  display: inline-block;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: var(--space);
}

.article-header .back-link:hover {
  color: var(--color-accent);
}

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
}

.article-header .meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.article-content {
  padding-bottom: 4rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content code {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.article-image {
  margin: 2rem 0;
}

.article-image a {
  display: block;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.article-image a:hover img {
  opacity: 0.9;
}

.article-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.article-image figcaption a {
  color: var(--color-accent);
}

.article-content a {
  color: var(--color-accent);
  text-decoration: none;
}

.article-content a:hover {
  text-decoration: underline;
}

/* Review Summary Box */
.review-summary-box {
  margin-top: 3rem;
  padding: var(--space);
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-accent);
}

.review-summary-box h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.review-summary-logo {
  width: 200px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.review-summary-logo-placeholder {
  width: 200px;
  height: 93px;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
}

.review-summary-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.review-summary-website {
  margin-bottom: 0.5rem;
}

.review-summary-website a {
  color: var(--color-accent);
  text-decoration: none;
}

.review-summary-website a:hover {
  text-decoration: underline;
}

.review-summary-stars {
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: #eab308;
  margin-bottom: 1rem;
}

.review-summary-conclusion {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Page content (About, Privacy, Cookie Policy) */
.page-content {
  padding: 3rem 0 4rem;
}

.page-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.page-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.page-content p,
.page-content li {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.page-content a {
  color: var(--color-accent);
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
}

.page-content ul {
  margin: 1rem 0 1.25rem 1.5rem;
}

/* Cookie consent popup */
.cookie-consent {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  max-width: 320px;
  padding: 1rem;
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

.cookie-consent.hidden {
  display: none;
}

.cookie-consent p {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.cookie-consent a {
  color: var(--color-accent);
}

.cookie-consent button {
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2rem 0 var(--space);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin-bottom: 1.5rem;
}

.footer-nav-section h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.footer-nav-section a {
  display: block;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}

.footer-nav-section a:hover {
  color: var(--color-accent);
}

.footer-copyright {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
