/*
Theme Name: Host Me Blog
Theme URI: https://hostme.ie
Description: Dark theme for Host Me Ireland blog, matching the main hostme.ie website design.
Author: Konrad Walsh
Author URI: https://hostme.ie
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hostme-blog
*/

/* === CSS Variables matching hostme.ie === */
:root {
  --background: #0f0e17;
  --foreground: #fffffe;
  --card: #1a1828;
  --primary: #7c5bb5;
  --primary-foreground: #ffffff;
  --secondary: #252336;
  --muted: #94a1b2;
  --accent: #25da6a;
  --destructive: #ff6b6b;
  --border: #3a3650;
  --radius: 0.75rem;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

/* === Layout === */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; max-width: 900px; margin: 0 auto; padding: 2rem 1.25rem; width: 100%; }

/* === Header === */
.site-header {
  background: rgba(15, 14, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0 1.25rem;
}
.site-header .header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-header .logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-header .logo-link img { width: 36px; height: 36px; }
.site-header nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header nav a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s;
}
.site-header nav a:hover { color: var(--foreground); }
.site-header nav a.back-link { color: var(--muted); }
.site-header nav a.cta {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.8rem;
}
.site-header nav a.cta:hover { opacity: 0.9; color: var(--primary-foreground); }

/* === Blog Listing === */
.blog-header { margin-bottom: 2.5rem; }
.blog-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.blog-header p { color: var(--muted); font-size: 0.95rem; }

.post-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.post-card:hover {
  border-color: rgba(124, 91, 181, 0.5);
  transform: translateY(-2px);
}
.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.post-card-body { padding: 1.5rem; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.post-card-meta .category { color: var(--primary); }
.post-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.post-card:hover .post-card-title { color: var(--primary); }
.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* === Single Post === */
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.post-meta .category { color: var(--primary); }

.entry-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.post-featured-image {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

/* === Post Content === */
.entry-content { font-size: 1rem; line-height: 1.8; color: rgba(255, 255, 254, 0.9); }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 2.5rem 0 0.75rem;
}
.entry-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 2rem 0 0.5rem;
}
.entry-content strong { color: var(--foreground); }
.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.entry-content li { margin-bottom: 0.5rem; }
.entry-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-style: italic;
}
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content a:hover { color: var(--accent); }
.entry-content code {
  background: var(--secondary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}
.entry-content pre {
  background: var(--secondary);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.entry-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* === CTA Box === */
.post-cta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}
.post-cta h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.post-cta p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.post-cta .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}
.post-cta .cta-button:hover { opacity: 0.9; color: var(--primary-foreground); }

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  text-align: center;
}
.site-footer .footer-inner {
  max-width: 900px;
  margin: 0 auto;
}
.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  font-size: 0.75rem;
}
.site-footer .footer-links a { color: var(--muted); }
.site-footer .footer-links a:hover { color: var(--foreground); }
.site-footer p { color: var(--muted); font-size: 0.8rem; }

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.pagination a, .pagination span {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
}
.pagination a {
  background: var(--secondary);
  color: var(--foreground);
}
.pagination a:hover { background: var(--primary); color: var(--primary-foreground); }
.pagination .current {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* === Sidebar (if used) === */
.widget-area { margin-top: 3rem; }
.widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.widget h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}
.widget ul { list-style: none; padding: 0; }
.widget li { margin-bottom: 0.5rem; }
.widget a { color: var(--muted); font-size: 0.85rem; }
.widget a:hover { color: var(--primary); }

/* === Responsive === */
@media (max-width: 640px) {
  .entry-title { font-size: 1.5rem; }
  .blog-header h1 { font-size: 1.5rem; }
  .site-header nav { gap: 1rem; }
  .post-card-image { height: 150px; }
}
