/*
Theme Name: Glide Theme
Theme URI: https://glide.ektothemes.com
Author: Raju Raj / ChatGPT Dev
Author URI: https://edumasti.com
Description: A clean, minimal, Glide-inspired WordPress theme using Satoshi & Merriweather typography.
Version: 2.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glide-theme
Tags: blog, minimal, responsive, clean, glide
*/


/* Theme variables and dark mode support */
:root{
  --bg: #ffffff;
  --text: #111827;
  --header-bg: #000000;
  --footer-bg: #007A1A;
  --muted: #6b7280;
  --glide-green: #007A1A;
  --glide-green-light: #B8FF8E;
}

/* Smooth transitions for theme change */
*{transition: background-color 0.25s ease, color 0.25s ease;}

/* Dark theme overrides */


/* Single */
.single-container { max-width:900px; margin:60px auto; padding:0 20px; }
.post-category { margin-bottom:16px; }
.single-title { font-family:'Merriweather', serif; font-size:42px; line-height:1.2; margin:10px 0 16px; }
.single-excerpt { color:var(--gray); font-size:18px; margin-bottom:30px; max-width:700px; }
.post-meta { display:flex; align-items:center; gap:12px; margin-bottom:40px; }
.author-avatar img { border-radius:50%; width:40px; height:40px; object-fit:cover; }
.author-info strong{display:block;color:#111;}
.featured-image{width:100%; border-radius:12px; overflow:hidden; margin-bottom:40px;}
.single-content{font-family:'Merriweather', serif; font-size:18px; line-height:1.7; color:#1a1a1a;}
.single-content p{margin-bottom:22px;}

/* Tags & Share */
.tags-share-section{display:flex;justify-content:space-between;flex-wrap:wrap;padding:20px 0;margin-top:40px;color:#09090B;}
.tags-share-section h4{font-family:'Merriweather', serif;font-size:18px;margin-bottom:12px;}
.tags-list a{display:inline-block;background:rgba(255,255,255,0.5);padding:6px 14px;border-radius:9999px;font-size:14px;margin:4px;text-decoration:none;color:#111;}
.share-icons a{font-size:18px;margin-right:14px;color:#111;text-decoration:none;}

/* Related posts */
.related-posts{margin-top:80px;}
.related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:40px;}
.related-card h4{font-family:'Merriweather', serif;font-size:18px;margin:8px 0;}

/* Footer - Glide style */
.glide-footer-cta{background:var(--glide-green); color:#fff; padding:48px 20px; border-radius:12px; margin-top:60px;}
.glide-footer-inner{max-width:var(--max-width);margin:0 auto;display:flex;justify-content:space-between;gap:30px;align-items:flex-start;}
.glide-footer-left{flex:1;max-width:520px;}
.glide-footer-left h2{font-family:'Merriweather', serif;font-size:28px;margin:0 0 12px;color:#fff;}
.glide-footer-left p{color:rgba(255,255,255,0.9);margin:0 0 18px;}
.glide-subscribe-btn{background:var(--glide-green-light);color:#000;padding:10px 18px;border-radius:9999px;border:none;font-weight:700;cursor:pointer;}

.glide-footer-right{display:flex;gap:60px;}
.glide-footer-col{min-width:140px;}
.glide-footer-col h4{font-size:14px;margin:0 0 12px;color:#fff;}
.glide-footer-col ul{list-style:none;padding:0;margin:0;}
.glide-footer-col li{margin:8px 0;}
.glide-footer-col a{color:rgba(255,255,255,0.95);text-decoration:none;font-size:15px;}

.glide-footer-bottom{border-top:1px solid rgba(255,255,255,0.12);padding:18px 20px;margin-top:16px;color:rgba(255,255,255,0.9);font-size:14px;text-align:center;}

@media (max-width:800px){
  .glide-footer-inner{flex-direction:column;align-items:flex-start;}
  .glide-footer-right{gap:30px;margin-top:20px;flex-wrap:wrap;}
  .glide-footer-col{min-width:120px;}
}

/* Subscribe Modal */
.subscribe-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,0.5);display:none;align-items:center;justify-content:center;z-index:9999;}
.subscribe-modal{background:var(--glide-green);color:#fff;border-radius:12px;padding:30px;max-width:520px;width:90%;}
.subscribe-modal h3{font-family:'Merriweather', serif;margin:0 0 8px;}
.subscribe-modal p{margin:0 0 18px;}
.subscribe-form input[type="email"]{width:100%;padding:12px;border-radius:8px;border:none;margin-bottom:12px;}
.subscribe-form button{background:var(--glide-green-light);color:#000;padding:10px 16px;border-radius:8px;border:none;font-weight:700;cursor:pointer;}

.subscribe-close{position:absolute;right:18px;top:12px;background:transparent;border:none;color:#fff;font-size:20px;cursor:pointer;}
.modal-show{display:flex;}

.glide-subscribe-btn:hover{background:#fff;color:#000;transition:0.3s;}


/* Force footer and modal to remain dark in both themes */
.glide-footer-cta,
.subscribe-modal {
  background: #000 !important;
  color: #fff !important;
}
.glide-footer-col a,
.glide-footer-bottom,
.glide-footer-left h2,
.glide-footer-left p {
  color: rgba(255,255,255,0.9) !important;
}
.glide-subscribe-btn {
  background: #fff !important;
  color: #000 !important;
}
.glide-subscribe-btn:hover {
  background: #B8FF8E !important;
  color: #000 !important;
}


/* Glide Accurate Typography System */
body {
  font-family: 'Satoshi', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  color: #09090B;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: #09090B;
}
.single-title {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.2;
  color: #09090B;
}
.post-text h2 a {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: #09090B;
  text-decoration: none;
}
.post-text p,
.single-content p,
.post-meta,
.tags-list a,
.share-icons a {
  font-family: 'Satoshi', sans-serif;
  font-weight: 400;
  color: #09090B;
}
.glide-subscribe-btn {
  font-family: 'Satoshi', sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.post-category, .tags-share-section h4 {
  font-family: 'Satoshi', sans-serif;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.2px;
}

/* Dark Mode Typography Colors */


body[data-theme='dark'] .post-text p,
body[data-theme='dark'] .single-content p,
body[data-theme='dark'] .tags-list a,



/* Improved dark mode typography like Glide default */

body[data-theme='dark'] h1, 
body[data-theme='dark'] h2, 
body[data-theme='dark'] h3, 
body[data-theme='dark'] h4, 

body[data-theme='dark'] p,
body[data-theme='dark'] .post-text p,
body[data-theme='dark'] .single-content p,
body[data-theme='dark'] .tags-list a,
body[data-theme='dark'] .share-icons a,
body[data-theme='dark'] .post-meta,
body[data-theme='dark'] span,


