
/* 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 */
body[data-theme="dark"]{
  --bg: #000000;
  --text: #f5f5f5;
  --header-bg: #0b0b0b;
  --footer-bg: #0b0b0b; /* keep footer dark in dark mode */
  --muted: #9ca3af;
}
/* Apply variables */
body{background:var(--bg);color:var(--text);}
.site-header{background:var(--header-bg);}
.glide-footer-cta{background:var(--footer-bg);}
.glide-footer-bottom{color:rgba(255,255,255,0.9);}

/*
Theme Name: Glide Clone v1.7
Theme URI: https://example.com/
Author: ChatGPT
Description: Glide-style WordPress theme v1.7 with black header, blog homepage, Glide single post, functional share buttons, and Glide footer with subscribe modal (Jose Walker).
Version: 1.7
Text Domain: glide-clone
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Merriweather:wght@300;700&display=swap');

:root {
  --glide-green: #007A1A;
  --glide-green-light: #B8FF8E;
  --black: #000;
  --text-dark: #111827;
  --gray: #6b7280;
  --max-width: 1100px;
}

body { font-family: 'Inter', sans-serif; margin:0; background:#fff; color:var(--text-dark); }

/* Header */
.site-header { background:var(--black); color:#fff; position:sticky; top:0; z-index:1000; }
.header-inner { max-width:var(--max-width); margin:0 auto; padding:16px 20px; display:flex; align-items:center; justify-content:space-between; }
.site-logo { font-weight:700; font-size:20px; }
.primary-menu { list-style:none; margin:0; padding:0; display:flex; gap:22px; }
.primary-menu li a { color:#fff; text-decoration:none; font-weight:500; }

/* Homepage */
.container { max-width:var(--max-width); margin:0 auto; padding:50px 20px; }
.post-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px 80px; }
.post-card { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.post-text { flex:1; }
.post-text h2 { font-family:'Merriweather', serif; font-size:24px; margin:0 0 10px; line-height:1.2; }
.post-text p { color:var(--gray); margin:0 0 12px; }
.post-category { display:inline-block; background:#f3f4f6; color:#111; font-size:13px; padding:4px 10px; border-radius:9999px; }
.post-thumb { width:120px; height:80px; flex-shrink:0; border-radius:10px; overflow:hidden; }
.post-thumb img { width:100%; height:100%; object-fit:cover; }

@media (max-width:900px){ .post-grid{grid-template-columns:1fr; gap:40px;} .post-card{flex-direction:column;} .post-thumb{width:100%; height:auto;} }

/* 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;background:var(--glide-green-light);padding:30px 40px;margin-top:60px;border-radius:8px;color:#111;}
.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;}
