/* =========================
   RESET & BASE
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #000;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: #4f4cf5;
  font-weight: bold;
}
/* visited link */
a:hover {
  color: red;
}


/* =========================
   CONTAINER
========================= */
.container {
  width: 92%;
  max-width: 900px;
  margin: 16px auto;
  padding: 16px;
  background: #FFFDB5;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

/* =========================
   HEADER & NAV
========================= */
header {
  background: #ffffff;
  padding: 12px 0;
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.logo {
  max-width: 140px;
  margin: auto;
}

header h2 {
  font-size: 1.1rem;
  margin: 4px 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

nav a {
  color: #4f05f7;
  font-weight: bold;
}

nav a:hover {
  color: red;
}

/* =========================
   GRID SYSTEM
========================= */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

/* =========================
   CARDS (GENERIC + BLOG)
========================= */
.card,
.blog-card {
  background: #FFFDB5;
  padding: 16px;
  border-radius: 12px;
  color: inherit;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover,
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

/* =========================
   BLOG – MOBILE FIRST
========================= */

/* Blog wrapper */
.blog-index {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  background: #FFFDB5;
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 1.5rem;
}

/* Blog card */
.blog-card {
  background: #FFFDB5;
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* Image wrapper */
.blog-card-image {
  display: flex;
  align-items: center;     /* vertical centering */
  justify-content: center; /* horizontal centering */
  height: 160px;           /* fixed visual height */
}

/* Image itself */
.blog-card-image img {
  max-width: 160px;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}


/* Card content */
.blog-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.blog-card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4f46e5;
  margin-bottom: 6px;
}

.blog-card h2 {
  font-size: 1rem;
  margin: 6px 0;
}

.blog-card p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
}

/* Blog post */
.blog-post article {
  max-width: 800px;
  margin: auto;
  padding: 16px;
  font-size: 1rem;
  line-height: 1.6;
}

/* Hero */
.post-hero {
  background: #FFFDB5;
  padding: 16px;
  text-align: center;
}

.hero-image,
.insights_img {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  display: block;
  justify-content: center;
}

.post-hero h1 {
  font-size: 1.6rem;
  margin-top: 1rem;
}

/* =========================
   TABLET & UP
========================= */
@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-hero h1 {
    font-size: 2.2rem;
  }

  .blog-post article {
    font-size: 1.1rem;
  }
}

/* =========================
   DESKTOP & UP
========================= */
@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* =========================
   RESULT / FIX OUTPUT
========================= */
#result {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.blocked {
  background: #fee2e2;
  color: #991b1b;
  padding: 14px;
  border-radius: 8px;
  margin: 1rem 0;
}

/* =========================
   AFFILIATES
========================= */
.affiliate-box {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 12px;
  background: #FFFDB5;
  text-align: center;
}

.affiliate-box h3 {
  margin-bottom: 1rem;
}

.affiliate-items {
  display: grid;
  gap: 16px;
}

.affiliate-item img {
  width: 90px;
  margin: auto;
}

.affiliate-disclaimer {
  font-size: .75rem;
  color: #6b7280;
  margin-top: 1rem;
}

/* =========================
   BUTTONS
========================= */
button,
.cta-button,
.page-btn {
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  background: #0366d6;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

button:hover,
.cta-button:hover,
.page-btn:hover {
  background: #024fa2;
}

/* =========================
   PAGINATION
========================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
}

.page-info {
  font-size: .9rem;
  color: #555;
}

/* =========================
   PROCESSING / SPINNER
========================= */
.processing-container {
  text-align: center;
  margin-top: 4rem;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 6px solid #e5e7eb;
  border-top: 6px solid #0366d6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   RESPONSIVE FOOTER
========================= */
footer {
  background: #ffffff;
  color: #111;
  margin-top: 40px;
}

footer .container {
  background: #FFFDB5;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  padding: 24px 16px;
}

/* Footer links */
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

footer nav a {
  color: #4f05f7;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
}

footer nav a:hover {
  text-decoration: underline;
  color: red;
}

/* Disclaimer */
footer .disclaimer {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.5;
}

/* Tablet & up */
@media (min-width: 768px) {
  footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }

  footer nav {
    justify-content: flex-end;
  }
}


/* =========================
   DESKTOP ENHANCEMENTS
========================= */
@media (min-width: 768px) {

  header .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-post article {
    font-size: 1.1rem;
  }
}
/* =========================
   COOKIE BANNER (RESPONSIVE)
========================= */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #222;
  color: #fff;
  padding: 14px 12px;
  font-size: 0.85rem;
  display: none;
  z-index: 9999;
}

#cookie-banner p {
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

#cookie-banner a {
  color: #4CAF50;
  text-decoration: underline;
}

#cookie-banner button {
  margin: 8px 6px 0;
  padding: 10px 16px;
  font-size: 0.9rem;
  border-radius: 6px;
}

@media (min-width: 768px) {
  #cookie-banner {
    padding: 16px;
    font-size: 0.9rem;
  }
}

/* =========================
   FORMS (MOBILE-FIRST)
========================= */
input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  font-size: 1rem;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 12px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Better tap targets on mobile */
input,
textarea,
button {
  min-height: 44px;
}

