/*
Theme Name: Adigana Theme
Author: Lois Amari
Version: 1.0
Description: A custom theme for the Adigana universe.
*/

/* ============================================
   GLOBAL BASE STYLES
   ============================================ */
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

html, body {
  height: 100%;
  overflow: visible;
}

html {
  scroll-padding-top: 80px;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #111;
  color: white;
  text-align: center;
  padding: 10px 0;
  width: 100%;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
}

/* ============================================
   DEFAULT HEADER (NOT LANDING PAGE)
   ============================================ */
header {
  background: url('/wp-content/themes/adigana-theme/images/image1a.png')
              no-repeat center center/cover;
  color: white;
  padding: 200px 20px;
  text-align: center;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin: 0;
}

/* ============================================
   SECTION LAYOUT
   ============================================ */
section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ============================================
   CALL TO ACTION
   ============================================ */
.cta {
  text-align: center;
}

.cta img {
  max-width: 200px;
}

/* ============================================
   SCROLLABLE CARD ROWS
   ============================================ */
.scroll-section {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
}

/* ============================================
   CARD COMPONENT
   ============================================ */
.card {
  flex: 0 0 auto;
  width: 280px;
  background-color: white;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  scroll-snap-align: start;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.card p {
  margin: 0 0 8px 0;
}

.card p strong {
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.2;
  display: block;
  margin-bottom: 8px;
}
.card p:first-of-type {
  padding-top: 8px;
}


/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 20px;
}

/* ============================================
   SOCIAL SHARE BUTTONS
   ============================================ */
.social-share {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.fb { background-color: #3B5998; }
.x  { background-color: #000000; }
.ig { background-color: #E4405F; }
.li { background-color: #0077B5; }

.btn:hover {
  opacity: 0.85;
}

/* ============================================
   SINGLE POST & COMMENTS
   ============================================ */
.featured-image img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

.post-content {
  font-size: 1.1rem;
  color: #444;
}

.comment-respond input,
.comment-respond textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* ============================================
   SLIDESHOW
   ============================================ */
.slideshow-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.slide {
  display: none;
}

.fade {
  animation: fadeEffect 1.5s;
}

@keyframes fadeEffect {
  from {opacity: 0.4;}
  to {opacity: 1;}
}

.slide-caption {
  text-align: center;
  font-style: italic;
  margin-top: 8px;
  color: #444;
}



/* ============================================
   SUBSTACK SIGNUP BOX (Unified Card)
   ============================================ */
#connect .signup-box {
  background: white;
  border: 1px solid #EEE;
  border-radius: 4px;
  width: 100%;
  max-width: 480px;
  margin: 20px auto;
  padding: 0;
  overflow: hidden;
}

#connect .signup-label {
  display: block;
  padding: 12px;
  font-weight: bold;
  text-align: center;
  margin: 0;
  border: none;
  width: 100%;
  box-sizing: border-box;
}

#connect iframe {
  width: 100%;
  min-height: 180px;
  height: auto;
  display: block;
  border: none;
  margin: 0;
  box-sizing: border-box;
}







.order-btn {
    background-color: #5a3e91;
    color: white;
    padding: 0.75em 1.25em;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: 0.2s ease;
}

.order-btn:hover {
    background-color: #472f75;
}


.book-featured-image {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.book-description {
    max-width: 800px;
    margin: 1em auto;
    font-size: 1.1rem;
    line-height: 1.6;
}





/* ============================================
   MOBILE RESPONSIVE STYLES (Unified)
   ============================================ */
@media (max-width: 768px) {

  img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
  }

  h1 { font-size: 1.8rem !important; }
  h2 { font-size: 1.4rem !important; }
  h3 { font-size: 1.2rem !important; }

  body {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  section {
    margin: 10px auto;
    padding: 0 10px;
  }

  header {
    padding: 60px 15px;
    background-size: cover;
  }

  header h1 {
    font-size: 1.8rem !important;
  }

  nav {
    padding: 6px 0;
  }

  nav a {
    margin: 0 6px;
    font-size: 0.85rem;
  }

  .card {
    width: 150px;
    padding: 5px;
  }

  .scroll-section {
    gap: 3px;
  }

  .card p strong {
    font-size: 0.9rem;
  }

  .landing-subtitle {
    display: none !important;
  }

  .hero {
    padding: 45px 30px !important;
    background-position: center center;
  }

  #connect iframe {
    min-height: 240px;
    height: auto;
  }
}
@media (max-width: 768px) {
  #pdfPreview iframe {
    height: 300px !important; /* or 350px, or 300px */
  }
}

@media (max-width: 768px) {
    img.book-featured-image {
        max-width: 120px !important;
        width: 120px !important;
        height: auto !important;
    }
}

/* Mobile fix */
@media (max-width: 768px) {
    .book-description {
        max-width: 90%;
        font-size: 0.9rem;
        line-height: 1.5;
    }
}




.pdf-scroll-wrapper {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    height: 700px;
}

/* Mobile */
@media (max-width: 768px) {
    .pdf-scroll-wrapper {
        height: 350px; /* adjust as needed */
    }
}
