/*
 Theme Name:   GeneratePress Child
 Description:  Cleaned & organized ZENREALM child theme stylesheet
 Template:     generatepress
 Version:      0.1
*/

/* =========================
   VARIABLES & TYPOGRAPHY
   (edit here to change palette)
   ========================= */
:root{
  --primary-violet: #6B46C1;
  --accent-gold:   #FFD700;
  --indigo:        #0a29c4;
  --muted:         #f3f3f3;
  --bg-dark:       #0b0b0f;
  --card-bg:       rgba(255,255,255,0.04);
  --radius:        12px;
  --gap:           20px;
  --max-width:     1600px;
}

/* Optional: load Google fonts in head/theme (recommended)
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
*/
body {
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: radial-gradient(circle at top, #050514 0%, #000 80%);
  color: var(--muted);
  line-height: 1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Headings (optional more mystical look) */
h1,h2,h3,h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--accent-gold);
  letter-spacing: 0.6px;
  margin: 0 0 12px 0;
}

/* =========================
   GENERAL LAYOUT HELPERS
   ========================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ensure core post area content centered where used */
.single-post .site-main,
.page .site-main,
.inside-article,
.entry-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

/* Remove layout padding inherited from parent where needed */
.site.grid-container,
.site-content .content-area,
.site-main,
body .inside-article,
body .entry-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}



/* Hero Section */
.zenrealm-hero {
  background: #091b82; /* deep blue background */
  padding: 60px 20px;
  text-align: center;
  color: #fff;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.zenrealm-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #ffffff; /* white headline */
}

.zenrealm-hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #e0e0e0; /* subtle light gray */
}

/* Hero Search */
#zenrealm-hero-search {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 20px;
}

#zenrealm-hero-search input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #00bfff; /* sky blue border */
  border-radius: 8px;
  font-size: 16px;
  background: #ffffff;
  color: #1e1e1e;
  transition: all 0.3s ease;
}

#zenrealm-hero-search input::placeholder {
  color: #a0a0a0;
}

#zenrealm-hero-search button {
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  background: #ff4d4d; /* red button */
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#zenrealm-hero-search button:hover {
  opacity: 0.9;
}

/* Search Results Cards */
.zenrealm-search-card {
  border: 1px solid #000000; /* sky blue border for cards */
  border-radius: 8px;
  overflow: hidden;
  background: #000000;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.zenrealm-search-card img {
  width: 100%;
  height: auto;
}

.zenrealm-search-card h4 {
  margin: 10px 0;
  color: #00000; /* red titles inside cards */
  font-size: 16px;
}

.themeforge-search-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}


/* =========================
   SEARCH CARD VARIANT
   ========================= */
.zenrealm-search-card{
  border-radius:10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,191,255,0.06);
  padding:12px;
}


/* Desktop grid */
.themeforge-search-grid-desktop {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 15px;
}
.themeforge-search-card-desktop {
    border: 1px solid #000;
    border-radius: 6px;
    background: #000;
    text-align: center;
}

/* Mobile grid */
.themeforge-search-grid-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.themeforge-search-card-mobile {
    border: 1px solid #000;
    border-radius: 6px;
    padding: 8px;
    background: #000;
}

/* Buttons Site-wide */
.zenrealm-buttons .btn {
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.zenrealm-buttons .btn.whatsapp {
  background: #00bfff; /* sky blue */
  color: #ffffff;
}

.zenrealm-buttons .btn.telegram {
  background: #ff4d4d; /* red */
  color: #ffffff;
}

.zenrealm-buttons .btn:hover {
  opacity: 0.9;
}

/* Links */
a {
  color: #00bfff; /* sky blue links */
  text-decoration: none;
}

a:hover {
  color: #ff4d4d; /* hover red */
}



/* =========================
   ACTION BUTTONS GRID
   ========================= */
.zenrealm-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.zenrealm-btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:8px;
  background: linear-gradient(135deg,var(--primary-violet),var(--indigo));
  color:#fff;
  font-weight:600;
  text-align:center;
  text-decoration:none;
  transition: all .25s ease;
}
.zenrealm-btn:hover{ transform: translateY(-3px); filter:brightness(.98); }


/* ===============================
   REQUEST BUTTONS
=============================== */
.zenrealm-request-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr; /* always 2 side by side */
  gap: 8px;
  margin: 8px 0;
}

.zenrealm-request-buttons .zen-btn {
  background: #6d34b8;
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background .3s ease;
}

.zenrealm-request-buttons .zen-btn:hover {
  background: #9f70ff;
}




/* =========================
   POST GRID / CARDS
   - portable cards: equal heights,
     image on top, content middle,
     button pinned to bottom
   ========================= */

/* wrapper grid */
.zenrealm-post-grid {
  --g: var(--gap);
  display: grid;
  gap: var(--g);
  grid-template-columns: repeat(5, 1fr); /* desktop default */
  justify-items: stretch;
  margin: 20px 70px;
  max-width: var(--max-width);
  margin-left:auto;
  margin-right:auto;
  box-sizing: border-box;
}

/* responsive breakpoints */
@media (max-width: 1200px) {
  .zenrealm-post-grid { grid-template-columns: repeat(3, 1fr); margin:20px 40px; }
}
@media (max-width: 790px) {
  .zenrealm-post-grid { grid-template-columns: repeat(2, 1fr); margin:20px; }
}
@media (max-width: 480px) {
  .zenrealm-post-grid { grid-template-columns: 1fr; margin:10px; gap:15px; }
}

/* each card (single definition â€” deduped) */
.zenrealm-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid rgba(255,215,0,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(107,70,193,0.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  min-height: 320px;            /* ensures a base portable size; adjust as needed */
}

/* hover */
.zenrealm-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(107,70,193,0.14);
  border-color: rgba(255,215,0,0.28);
}

/* card image (keeps image proportional) */
.zenrealm-card-image { width:100%; display:block; }
.zenrealm-card-image img{
  width:100%;
  height:200px;
  object-fit:cover;
  display:block;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* card content area grows to fill space so button sits at bottom */
.zenrealm-card-content{
  padding: 16px;
  flex: 1 1 auto; /* expand */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align:center;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

/* title & meta */
.zenrealm-card-title{
  font-size: 1.05rem;
  font-weight:700;
  color: #fff;
  margin-bottom: 8px;
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.zenrealm-card-meta, .zenrealm-card-date {
  font-size: .85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
}

/* bottom area: ensure always at card bottom */
.zenrealm-card-actions{
  margin-top: auto; /* pushes to bottom */
  padding: 12px 16px 18px;
  display:flex;
  justify-content:center;
  gap:12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));
}

/* unified card button */
.zenrealm-card-btn, .zenrealm-download-btn, .zenrealm-card-content a.read-more {
  display:inline-block;
  padding:10px 16px;
  border-radius:8px;
  background: linear-gradient(135deg,var(--primary-violet),var(--indigo));
  color:#fff;
  font-weight:600;
  text-decoration:none;
  transition: transform .15s ease, filter .15s ease;
}
.zenrealm-card-btn:hover,
.zenrealm-download-btn:hover,
.zenrealm-card-content a.read-more:hover { transform: translateY(-3px); filter:brightness(.95); }

/* special small/desktop-only classes */
.zenrealm-card-btn.desktop-only { display:none; }
@media(min-width:790px){ .zenrealm-card-btn.desktop-only{ display:inline-block; } }

/* image cap (mobile-friendly) */
@media(max-width:480px){ .zenrealm-card-image img{ height:160px } }

/* =========================
   CATEGORY / THUMB GRIDS
   ========================= */
.zenrealm-card-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: var(--gap);
  margin:20px 0;
}



/* === Top Bar === */
.top-bar {
  background: #f5f5f5;
  padding: 6px 20px;
  font-size: 14px;
  text-align: right;
}
.top-bar a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
}

/* === Header Base === */
header {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.logo {
  font-weight: bold;
  font-size: 20px;
  color: #0d6efd;
}
.menu ul,
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.menu li,
.mobile-menu li {
  margin-left: 20px;
}
.menu a,
.mobile-menu a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
}
.menu a:hover,
.mobile-menu a:hover {
  color: #0d6efd;
}

/* === Desktop vs Mobile === */
.desktop-header { display: block; }
.mobile-header { display: none; }

@media (max-width: 768px) {
  .desktop-header { display: none; }
  .mobile-header { display: block; }
  .mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #ddd;
  }
  .mobile-menu.show { display: flex; }
  .mobile-menu li {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
  }
  .menu-toggle {
    background: none;
    border: 2px solid #0d6efd;
    color: #0d6efd;
    font-size: 20px;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
  }
}




/* =========================
   POPUPS / MODALS
   ========================= */
.zenrealm-popup,
.zenrealm-modal{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.7);
  z-index:10000;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.zenrealm-modal.active, .zenrealm-popup.active{ display:flex; }
.zenrealm-modal-content,
.zenrealm-popup-content{
  background:#fff;
  color:#111;
  border-radius:12px;
  max-width:520px;
  width:100%;
  padding:22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.zenrealm-close{ position:absolute; right:18px; top:12px; font-size:20px; cursor:pointer; }

/* modal form fields */
.zenrealm-modal input, .zenrealm-modal textarea{
  width:100%; padding:12px; margin:10px 0; border-radius:6px; border:1px solid #ccc; box-sizing:border-box;
}

/* modal submit */
.zenrealm-modal form button,
#zenrealm-support-form button{
  background: var(--primary-violet);
  color: #fff;
  padding: 10px 16px;
  border-radius:8px;
  border:0;
  cursor:pointer;
}





/* Mobile: entire card is clickable */
@media (max-width: 789px) {
  .themeforge-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    width: 100%;
  }

  .themeforge-card {
    position: relative;
  }

  .themeforge-card-btn.desktop-only {
    display: none !important; /* hide download button on mobile */
  }

  .themeforge-card-title {
    cursor: pointer; /* hint clickable */
  }
}


/* ===============================
   Social Buttons Grid (WhatsApp & Telegram)
=============================== */
.social-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Always 2 columns */
  gap: 12px;
  margin: 15px 0;
}

.social-buttons a {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease;

  /* 🔥 Add blinking animation */
  animation: blink 1.6s infinite ease-in-out;
}

/* WhatsApp */
.social-buttons a.whatsapp-btn {
  background: #25d366;
}
.social-buttons a.whatsapp-btn:hover {
  background: #1ebe5c;
  animation: none; /* stop blinking on hover */
}

/* Telegram */
.social-buttons a.telegram-btn {
  background: #0088cc;
}
.social-buttons a.telegram-btn:hover {
  background: #006699;
  animation: none;
}


/* Inline versions */
.whatsapp-button, .telegram-button {
  display: inline-block;
  background-color: #25D366; /* WhatsApp color */
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  margin: 5px;
  text-decoration: none;

  /* 🔥 Blink */
  animation: blink 1.6s infinite ease-in-out;
}

.telegram-button {
  background-color: #0088cc; /* Telegram color */
}

.whatsapp-button:hover, .telegram-button:hover {
  opacity: 0.8;
  animation: none;
}


/* === SOCIAL BUTTONS (Enhanced) === */
.themeforge-single-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin: 25px auto;
  max-width: 500px;
}

.themeforge-single-buttons a {
  background: #222;
  color: gold;
  padding: 14px 18px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;

  /* 🔥 Blink */
  animation: blink 1.6s infinite ease-in-out;
}

/* subtle glow effect */
.themeforge-single-buttons a::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.4s ease;
}
.themeforge-single-buttons a:hover::after {
  left: 100%;
}

.themeforge-single-buttons a:hover {
  background: gold;
  color: #111;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.35);
  animation: none;
}


/* === HOMEPAGE REQUEST BUTTONS (Fix) === */
.themeforge-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 500px;
  margin: 15px auto;
}

.themeforge-buttons a {
  background: #111;
  color: gold;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;

  /* 🔥 Blink */
  animation: blink 1.6s infinite ease-in-out;
}

.themeforge-buttons a:hover { 
  background: gold; 
  color: #111; 
  animation: none;
}


/* ===============================
   BLINK ANIMATION
=============================== */
@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.4; }
}



/* === TELEGRAM SUPPORT BUTTON === */
#zenrealm-telegram-button {
  position: fixed;
  top: 50%; /* vertically centered */
  right: 0;
  transform: translateY(-50%);
  background: #0088cc;
  color: #fff;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 30px 0 0 30px; /* rounded left side */
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: center;
  line-height: 1;
  transition: background 0.3s ease, transform 0.3s ease;
  animation: zen-bounce 2s infinite;
}

#zenrealm-telegram-button:hover {
  background: #006699;
  transform: translateY(-50%) scale(1.05);
}

/* === Bounce Animation === */
@keyframes zen-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(-50%) translateY(0);
  }
  40% {
    transform: translateY(-50%) translateY(-12px);
  }
  60% {
    transform: translateY(-50%) translateY(-6px);
  }
}


/* === SUPPORT MODAL === */
#themeforge-support-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; 
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 99998;
  justify-content: center;
  align-items: center;
}

#themeforge-support-modal.show { 
  display: flex !important; 
}

.themeforge-support-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

#themeforge-support-close {
  position: absolute;
  top: 15px; 
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
}

/* Bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(-50%) translateX(0); }
  40% { transform: translateY(-60%) translateX(-5px); }
  60% { transform: translateY(-55%) translateX(-3px); }
}


/* === FORM === */
#themeforge-support-form input,
#themeforge-support-form textarea {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#themeforge-support-form button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: #6d34b8;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#themeforge-support-form button:hover { 
  background: #9f70ff; 
}


/* Read More Button */
.themeforge-card-content a.read-more {
  display: inline-block;
  background: #097307;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s ease;
}
.themeforge-card-content a.read-more:hover { background: #0a29c4; }

.themeforge-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  border-color: #ffcc00;
}


/* ===============================
   Desktop spacing for post grid â€“ ZenRealm
=============================== */
@media (min-width: 790px) {
  .zenrealm-post-grid {
      margin-right: 70px; /* pushes cards away from right sidebar */
      margin-left: 70px;  /* optional left spacing */
      gap: 20px;          /* spacing between cards */
  }
}


/* Force 5-column grid for Daily Updates */
.themeforge-post-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important; /* exactly 5 per row */
  gap: 20px !important;
  max-width: 1600px;
  margin: 0 auto !important;  /* center the grid */
  padding: 20px;
}

/* Adjust for tablets */
@media (max-width: 1200px) {
  .themeforge-post-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Adjust for mobile landscape */
@media (max-width: 768px) {
  .themeforge-post-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Adjust for small phones */
@media (max-width: 480px) {
  .themeforge-post-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Make sure cards donâ€™t stretch weirdly */
.themeforge-card {
  background: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.themeforge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}



/* =========================
   GLOBAL LINKS / TWEAKS
   ========================= */
a{ color: var(--accent-gold); text-decoration:none; transition: color .18s ease; }
a:hover{ color: var(--indigo); }

/* small screens: make entire card clickable */
@media (max-width:789px){
  .zenrealm-card{ min-height:260px; }
  .zenrealm-card-link{ display:block; color:inherit; width:100%; height:100%; }
}

/* small housekeeping for images inside content */
.entry-content img{ display:block; margin:14px auto; max-width:100%; height:auto; }





/* Sacred Steps Box */
.zenrealm-sacred-steps {
  background: rgba(107, 70, 193, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 20px;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(107, 70, 193, 0.3);
}

.zenrealm-sacred-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #FFD700;
  text-align: center;
  margin-bottom: 12px;
  text-shadow: 0 0 5px #6B46C1;
}

.zenrealm-sacred-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zenrealm-sacred-list li {
  margin: 8px 0;
}

.zenrealm-sacred-list a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.zenrealm-sacred-list a:hover {
  color: #fff;
  text-shadow: 0 0 8px #FFD700;
}


/* ===============================
   REQUEST BUTTONS
=============================== */
.zenrealm-request-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr; /* always 2 side by side */
  gap: 8px;
  margin: 8px 0;
}

.zenrealm-request-buttons .zen-btn {
  background: #6d34b8;
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background .3s ease;
}

.zenrealm-request-buttons .zen-btn:hover {
  background: #9f70ff;
}



/* ===============================
   ACTION BUTTONS WRAPPER
=============================== */
.zenrealm-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.zenrealm-action-buttons a {
  flex: 1 1 auto;
  text-align: center;
  padding: 12px;
  background: #6f83f2;
  color: #fff;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.zenrealm-action-buttons a:hover {
  background: #e60000;
}

/* 2-column only on mobile */
@media (max-width: 789px) {
  .zenrealm-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .zenrealm-action-buttons a {
    font-size: 0.85rem;
    padding: 10px;
  }
}

/* ===============================
   REQUEST BUTTONS
=============================== */
.zenrealm-request-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr; /* always 2 side by side */
  gap: 8px;
  margin: 8px 0;
}

.zenrealm-request-buttons .zen-btn {
  background: #6d34b8;
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background .3s ease;
}

.zenrealm-request-buttons .zen-btn:hover {
  background: #9f70ff;
}

/* ===============================
   DOWNLOAD BUTTON
=============================== */
.zenrealm-download-btn {
  display: inline-block;
  background: #d32f2f; /* red button */
  color: #fff !important;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none !important;
  font-weight: bold;
  transition: background 0.3s;
}

.zenrealm-download-btn:hover {
  background: #b71c1c;
}



/* === Zen Realm Library === */
.zen-library {
  padding: 40px;
  text-align: center;
}

.zen-library-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.zen-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

.zen-library-card {
  background: #1c1c2b;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zen-library-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

.zen-library-card img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.zen-library-card h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #f1f1f1;
}

.zen-library-card .tag {
  display: inline-block;
  margin-bottom: 15px;
  font-size: 0.9em;
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
}

.zen-library-card.free .tag {
  background: #2ecc71;
}

.zen-library-card.premium .tag {
  background: #e74c3c;
}

.zen-btn {
  display: inline-block;
  background: #4b6cb7;
  background: linear-gradient(45deg, #4b6cb7, #182848);
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95em;
  transition: background 0.3s ease;
}

.zen-btn:hover {
  background: linear-gradient(45deg, #182848, #4b6cb7);
}


.download-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
}

.download-modal .modal-content {
  background: #1c1c2b;
  color: #fff;
  max-width: 500px;
  margin: 100px auto;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  position: relative;
}

.download-modal .close-modal {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
}
.download-modal .close-modal:hover { color: #fff; }


/* Free vs Premium styling */
.zen-library-card.free {
  border: 1px solid #4caf50;
}

.zen-library-card.premium {
  border: 1px solid #f39c12;
  background: #1a1a1a;
  color: #eee;
}

.zen-library-card .tag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  background: rgba(0,0,0,0.1);
}

.zen-library-card.free .tag {
  background: #4caf50;
  color: #fff;
}

.zen-library-card.premium .tag {
  background: #f39c12;
  color: #fff;
}

/* Buttons */
.zen-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  background: #6d34b8;
  color: #fff;
  transition: background 0.3s ease;
}

.zen-btn:hover {
  background: #9f70ff;
}

.zen-btn.locked {
  background: #e74c3c;
}

.zen-btn.premium {
  background: #f39c12;
}




/* ===============================
   ARCHIVE HEADER
=============================== */
.zenrealm-archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.zenrealm-archive-header {
  text-align: center;
  margin-bottom: 30px;
}

.zenrealm-archive-header h1 {
  color: gold;
}

.zenrealm-archive-header p {
  color: #bbb;
}

/* ===============================
   SIDEBAR STYLES
=============================== */
.zenrealm-sidebar {
  background-color: #111;
  padding: 25px;
  color: #ffd700;
}

.zenrealm-social-buttons {
  margin-bottom: 30px;
}

.social-buttons a {
  display: inline-block;
  padding: 50px;
  background-color: #333;
  margin-right: 50px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.social-buttons a:hover {
  background-color: #555;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  #zenrealm-fixed-widget {
    width: 200px;
    font-size: 14px;
  }

  #zenrealm-reopen {
    font-size: 18px;
  }
}

/* ===============================
   IMAGE FIX (Proportional & Centered)
=============================== */
.zenrealm-card img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-bottom: 1px solid #eee;
}

/* ===============================
   CONTENT CENTERING
=============================== */
.zenrealm-card-content {
  padding: 12px;
  text-align: center;
}

.zenrealm-card-title {
  font-size: 1rem;
  font-weight: bold;
  color: #097307;
  margin-bottom: 8px;
  line-height: 1.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===============================
   READ MORE BUTTON
=============================== */
.zenrealm-card-content a.read-more {
  display: inline-block;
  background: #097307;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.zenrealm-card-content a.read-more:hover {
  background: #0a29c4;
}

/* ===============================
   UNIVERSAL BUTTON FIX
=============================== */
.zenrealm-card-btn,
.zenrealm-card-content a.read-more,
.zenrealm-hero-buttons a,
.zenrealm-hero-buttons button,
.zenrealm-buttons a,
.zenrealm-single-buttons a,
.zenrealm-modal form button,
#zenrealm-support-form button {
  display: inline-block;
  padding: 10px 16px;
  background: #ffd700;
  color: #000;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.zenrealm-card-btn:hover,
.zenrealm-card-content a.read-more:hover,
.zenrealm-hero-buttons a:hover,
.zenrealm-hero-buttons button:hover,
.zenrealm-buttons a:hover,
.zenrealm-single-buttons a:hover,
.zenrealm-modal form button:hover,
#zenrealm-support-form button:hover {
  background: #f0c400;
  color: #111;
}

/* Green "Read More" buttons only */
.zenrealm-card-content a.read-more {
  background: #097307;
  color: #fff;
}

.zenrealm-card-content a.read-more:hover {
  background: #0a29c4;
  color: #fff;
}

/* Dark homepage request buttons */
.zenrealm-buttons a {
  background: #111;
  color: gold;
}

.zenrealm-buttons a:hover {
  background: gold;
  color: #111;
}

/* Modal submit buttons (purple) */
.zenrealm-modal form button,
#zenrealm-support-form button {
  background: #6B46C1;
  color: #fff;
}

.zenrealm-modal form button:hover,
#zenrealm-support-form button:hover {
  background: #4B2C91;
}

/* ===============================
   ZENREALM SIDEBARS & MODALS
=============================== */

/* === BUTTONS === */
.zenrealm-button-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.zenrealm-button {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #fff;
  color: #111;
}

.zenrealm-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Accent buttons */
.zenrealm-button.support { background: #007bff; color: #fff; }
.zenrealm-button.newsletter { background: #ff5733; color: #fff; }
.zenrealm-button.offers { background: #ffc107; color: #000; }
.zenrealm-button.downloads { background: #28a745; color: #fff; }
.zenrealm-button.featured { background: #6c63ff; color: #fff; }
.zenrealm-button.seo { background: #17a2b8; color: #fff; }
.zenrealm-button.announce { background: #e83e8c; color: #fff; }
.zenrealm-button.ads { background: #343a40; color: #fff; }

.zenrealm-button.ads img {
  display: block;
  margin: 8px auto 0;
  border-radius: 4px;
  max-width: 100%;
}

/* === SIDEBARS === */
.zenrealm-sticky-sidebar,
#zenrealm-fixed-widget {
  position: absolute;
  top: auto;
  width: 430px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 9999;
  transition: all 0.3s ease;
}

.zenrealm-sticky-sidebar { right: 40px; }
#zenrealm-fixed-widget { left: 40px; }

/* Sticky state after hero */
.zenrealm-sticky-sidebar.active-sticky {
  position: fixed;
  top: 120px;
  right: 40px;
}

#zenrealm-fixed-widget.active-sticky {
  position: fixed;
  top: 120px;
  left: 40px;
}

#discounts-sidebar {
  position: fixed;
  top: 40%;
  right: 0;
  z-index: 9999;
}

#discounts-sidebar .btn-discount {
  background: #ff4d4d;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px 0 0 6px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  display: inline-block;
}

#discounts-sidebar .btn-discount:hover {
  background: #e60000;
}

/* === TOGGLE BUTTONS === */
.zenrealm-toggle {
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: #000;
  color: #fff;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  font-size: 18px;
}

#zenrealm-toggle-left { left: 5px; }
#zenrealm-toggle-right { right: 5px; }

/* === MOBILE: 2 Columns === */
@media (max-width: 1024px) {
  .zenrealm-sticky-sidebar,
  #zenrealm-fixed-widget {
    position: static !important;
    width: 100% !important;
    max-width: 95% !important;
    margin: 20px auto !important;
    text-align: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .zenrealm-sticky-sidebar .zenrealm-button-container,
  #zenrealm-fixed-widget .zenrealm-button-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 2 columns */
    gap: 10px !important;
    width: 100% !important;
  }

  .zenrealm-sticky-sidebar .zenrealm-button,
  #zenrealm-fixed-widget .zenrealm-button {
    width: 100% !important;   /* each fills its column */
    max-width: none !important;
  }

  #zenrealm-toggle-left,
  #zenrealm-toggle-right,
  #zenrealm-reopen {
    display: none !important;
  }
}


/* ===============================
   MODAL STYLES (FINAL MERGE + CENTERING)
=============================== */
.zenrealm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: none;
}

.zenrealm-modal.active {
  display: flex;
}

.zenrealm-modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: slideDown 0.3s ease;
  overflow-y: auto;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto;
}

.zenrealm-close {
  align-self: flex-end;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
}

.zenrealm-close:hover { color: red; }

.zenrealm-modal input,
.zenrealm-modal textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
}

.zenrealm-modal button {
  background: #0d0d0d;
  color: #ffd700;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.zenrealm-modal-content h2,
.zenrealm-modal-content p,
.zenrealm-modal-content form {
  text-align: center;
  margin: 0 auto 15px auto;
  width: 100%;
}

@keyframes slideDown {
  from { transform: translateY(-30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Mobile modal fix */
@media (max-width: 768px) {
  .zenrealm-hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .zenrealm-hero-buttons a,
  .zenrealm-hero-buttons button {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Hide ThemeForge default pagination everywhere */
.themeforge-pagination {
  display: none !important;
}

/* Floating Sidebar Styling */
#zenrealm-fixed-widget {
  position: fixed;
  top: 90px;
  left: -480px; /* hidden by default */
  width: 430px;
  background: #111;
  color: #eee;
  padding: 10px;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  transition: left 0.3s ease;
  z-index: 9999;
}
#zenrealm-fixed-widget.open {
  left: 0; /* slide in */
}
#zenrealm-fixed-widget h3 {
  color: #ffd700;
  margin: 8px 0;
}
#zenrealm-fixed-widget p {
  margin: 0 0 10px;
}
#zenrealm-fixed-widget .zenrealm-button {
  display: block;
  margin: 5px 0;
  padding: 8px 10px;
  background: #222;
  border-radius: 5px;
  text-decoration: none;
  color: #8be9fd;
}
#zenrealm-toggle-left {
  position: fixed;
  top: 250px;
  left: 0;
  background: #ffd700;
  color: #111;
  padding: 8px 12px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  z-index: 10000;
}






.zenrealm-shortcode {
    background: #ffd700;
    color: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}


/* Highlight ZenRealm shortcodes inside TinyMCE editor */
.mce-content-body [data-mce-placeholder][data-zen-shortcode],
.mce-content-body .zenrealm-shortcode {
    background: linear-gradient(90deg, #fceabb, #f8b500);
    color: #222;
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: bold;
    display: inline-block;
}

/* Example styling for specific shortcodes */
.mce-content-body .zen-decode { background: #e1bee7; }
.mce-content-body .zen-offer { background: #ffe082; }
.mce-content-body .zen-chakra { background: #81d4fa; }
.mce-content-body .zen-meditation { background: #c8e6c9; }


.glow-text {
  color: #FFD700;
  text-shadow: 0 0 5px #FFD700, 0 0 10px #6B46C1;
}



/* ===============================
   FORCE CONTENT CENTERING
=============================== */
.single-post .site-main,
.page .site-main,
.inside-article,
.entry-content {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 20px !important;
  text-align: center !important;
}

.entry-content img {
  display: block;
  margin: 15px auto;
}

@media (max-width: 768px) {
  .post-content, 
  .entry-content {
    text-align: center;
  }

  .post-content img,
  .entry-content img {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}



@media (max-width: 768px) {
  .zenrealm-guide-box,
  .zenrealm-offer-box,
  .zenrealm-custom-guide,
  .zenrealm-tool-info,
  .zenrealm-request-form,
  .zenrealm-update-form,
  .zenrealm-blessing-form,
  .zenrealm-chakra-box,
  .zenrealm-meditation-box,
  .zenrealm-aura-scan {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .zenrealm-request-form input,
  .zenrealm-request-form textarea,
  .zenrealm-update-form input,
  .zenrealm-blessing-form input,
  .zenrealm-blessing-form textarea {
    text-align: center;
  }
}


/* END of stylesheet */





