/*
Theme Name: Aina Saga Kadence Child
Theme URI: https://ainasaga.com/
Description: Child theme for Kadence - Aina Saga v2 (homepage slider + shop)
Author: Aina Saga
Author URI: https://ainasaga.com/
Template: kadence
Version: 2.0
Text Domain: aina-saga-kadence-child
*/

:root{
  --purple-900: #1b0033;
  --purple-700: #4b0073;
  --accent: #6f3bd8;
  --muted: #f5f3ff;
  --white: #ffffff;
  --text: #eae8ff;
}

/* Global resets */
body {
  background: var(--muted);
  color: var(--purple-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.6;
  margin: 0;
}

/* ====== TOP NAVIGATION FIX ====== */
.site-header,
.site-branding,
header.entry-header {
  background-color: #1e103b !important; /* dark purple */
  color: #ffffff !important;
}

/* === Fixed header styling === */
header#masthead {
  background-color: #1e103b !important; /* dark purple */
  border-bottom: 2px solid #3a2466;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ===== Aina Saga Header - Evenly Spaced but Right-Aligned Menu ===== */
header#masthead {
  background-color: #1e103b !important;
  border-bottom: 2px solid #3a2466;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Keep logo + site title on the left */
header#masthead .site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

/* Move the navigation fully to the right */
header#masthead .main-navigation {
  display: flex !important;
  justify-content: flex-end !important;
  flex: 1;
}

/* Even spacing between menu items */
header#masthead .main-navigation ul {
  display: flex !important;
  justify-content: space-evenly !important;
  gap: 40px; /* Adjust spacing between menu items */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Nav links */
header#masthead .main-navigation a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

header#masthead .main-navigation a:hover {
  color: #b50000 !important;
}

/* Prevent overlap with page content */
body {
  padding-top: 90px;
}

/* === Logo & site title === */
.site-branding {
  display: flex;
  align-items: left;
  gap: 10px;
}

.site-branding img {
  max-height: 60px;
  width: auto;
}

.site-title, 
.site-title a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
}

/* === Navigation links === */
.main-navigation a,
.primary-menu a {
  color: #fff !important;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-navigation a:hover,
.primary-menu a:hover {
  color: #b50000 !important;
}

.site-header .site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 30px;
}

/* Mobile nav (responsive) */
@media (max-width: 768px) {
  .main-navigation {
    justify-content: center;
  }
  .site-header .site-branding {
    justify-content: center;
  }
}

/* ====== Aina Saga Site Header ====== */
body {
  background-color: #1e103b; /* deep dark purple base */
  color: #ffffff;
  font-family: "Inter", sans-serif;
}

.site-header {
  background-color: #1e103b;
  padding: 10px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.site-header .logo img {
  max-height: 80px;
  width: auto;
}

.header-banner {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.header-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Optional: Adjust content spacing */
.site-content {
  padding-top: 20px;
}

/* ===== Fix Site Title Color ===== */
.site-title,
.site-title a {
  color: #ffffff !important; /* white text */
}

/* ===== Fix Banner Background ===== */
header.entry-header,
.page-header,
.kt-page-header {
  background: none !important; /* remove purple overlay */
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

/* Optional: remove margin space above/below banner */
.page-header-inner,
.entry-header-inner {
  padding: 0 !important;
  margin: 0 !important;
}

/* ===== Keep Banner Image Full Width ===== */
header.entry-header img,
.page-header img {
  width: 100%;
  height: auto;
  display: block;
}


/* Main container */
.main-wrap { max-width: 1200px; margin: 36px auto; padding: 0 18px; box-sizing: border-box; }

/* Featured slider */
.featured-slider { position: relative; overflow: hidden; margin-bottom: 28px; }
.featured-track { display: flex; transition: transform 0.6s ease; gap: 18px; }
.featured-slide { flex: 0 0 100%; box-sizing: border-box; display: flex; gap: 18px; align-items: center; background: white; border-radius: 12px; padding: 18px; box-shadow: 0 8px 30px rgba(12,6,30,0.06); }
.featured-slide .cover { flex: 0 0 220px; }
.featured-slide .cover img { width: 220px; height: auto; border-radius: 8px; display:block; }
.featured-slide .meta { flex: 1; }
.featured-slide .meta h2 { margin: 0 0 8px; color: var(--purple-900); }
.featured-slide .meta p { margin: 0 0 12px; color: #444; }
.featured-slide .meta a.kadence-btn { background: var(--accent); color: white; padding: 8px 14px; border-radius: 8px; text-decoration:none; }

/* slider controls */
.featured-controls { position: absolute; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); display:flex; justify-content:space-between; pointer-events:none; }
.featured-controls button { pointer-events:all; background: rgba(255,255,255,0.9); border: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.featured-dots { text-align:center; margin-top:12px; }

/* Shop grid */
.shop-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:18px; margin: 28px 0; }
.shop-card { background: white; border-radius: 12px; padding: 12px; text-align:center; box-shadow: 0 6px 18px rgba(12,6,30,0.04); }
.shop-card img { max-width:100%; height:auto; border-radius:8px; display:block; margin:0 auto 10px; }
.shop-card h4 { margin:0 0 8px; font-size:1rem; color:var(--purple-900); }
.shop-card .price { color:var(--accent); font-weight:700; margin-bottom:12px; }
.shop-card a.kadence-btn { background: var(--purple-700); color:white; padding:8px 12px; border-radius:8px; text-decoration:none; }

/* Footer *//* === Aina Saga: Unified Footer Redesign === */

.site-footer {
  background-color: #0f0920; /* deep purple for consistency */
  color: #ffffff;
  text-align: center;
  padding: 40px 20px 30px;
  border-top: 2px solid #2e195a;
  font-family: "Inter", sans-serif;
}

.site-footer a {
  color: #b188ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffffff;
}

/* remove duplicate dark strip above footer */
.footer-bottom,
.footer-navigation,
.site-info {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* adjust copyright text spacing */
.site-info {
  margin-top: 15px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* optional: align "Privacy | Terms" nicely */
.site-footer .footer-navigation {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.site-footer .footer-navigation a {
  margin: 0 8px;
}

/* optional: logo on footer center */
.footer-logo img {
  width: 60px;
  height: auto;
  margin-bottom: 15px;
}


/* Responsive tweaks */
@media (max-width:900px){
  .site-header-banner { height:240px; }
  .featured-slide { flex-direction: column; align-items: center; }
  .featured-slide .cover { flex: 0 0 auto; }
  .featured-slide .meta { text-align: center; }
}


/* Featured comic */
.featured-comic {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(13,13,13,0.04);
  margin-bottom: 20px;
  text-align: center;
}
.featured-comic img { width: 100%; height: auto; border-radius: 8px; display:block; }
.featured-comic h2 { margin: 14px 0 8px; font-size: 1.5rem; }
.featured-comic p { color: #555; margin-bottom: 12px; }

/* Latest chapters */
.latest-chapters { background: #fff; padding: 14px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.latest-chapters h3 { margin-top: 0; }
.latest-chapters ul { list-style: none; margin: 0; padding: 0; }
.latest-chapters li { padding: 8px 0; border-bottom: 1px solid #f1f1f1; display:flex; justify-content:space-between; }
.latest-chapters li:last-child { border-bottom: none; }

/* Buttons */
.kadence-btn { background:#222; color:#fff; padding:8px 14px; border-radius:8px; text-decoration:none; }
.kadence-btn:hover { opacity:0.95; }
.kadence-btn.kadence-btn-secondary { background:#f1f1f1; color:#222; }

/* Comic Archive Grid */
.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.comic-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  padding: 12px;
  text-align: center;
  transition: transform 0.2s ease;
}

.comic-card:hover {
  transform: translateY(-4px);
}

.comic-thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.comic-title {
  font-size: 1.1rem;
  margin: 12px 0 0;
  color: #222;
}

.member-account-box {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 1.5rem;
}

.member-account-box h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #333;
}

.member-account-box p {
  margin: 0.4rem 0;
  font-size: 1rem;
}

.member-account-box .kadence-btn {
  display: inline-block;
  margin-top: 1rem;
}

/* === Chapter Images (Retina Optimized) === */
.chapter-content img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  image-rendering: auto;
  -webkit-filter: none;
  filter: none;
}

/* Avoid browser downscaling blur */
@media (min-resolution: 2dppx) {
  .chapter-content img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Optional: add soft background & spacing */

.chapter-content img {
  width: 100%;
  max-width: 800px;
}

.chapter-content img + img {
  margin-top: 20px;
}


