/*!
Theme Name: WaterBottles Blog
Theme URI: https://waterbottles.com/blog
Description: Lightweight custom blog theme for waterbottles.com. No bloat.
Version: 1.0.0
Author: Pin Agency
Author URI: https://pinagency.com
License: GNU General Public License v2
*/

:root {
  --color-primary: #0071bc;
  --color-dark: #1a1a2e;
  --color-text: #2d2d2d;
  --color-text-light: #666;
  --color-border: #e5e5e5;
  --color-bg: #fff;
  --color-bg-light: #f8f9fa;
  --color-accent: #00a4e4;
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --content-width: 780px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent); }

img { max-width: 100%; height: auto; display: block; }

/* ── Header ── */
.site-header {
  background: var(--color-dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo a {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.site-logo span { color: var(--color-accent); }

.header-nav { display: flex; gap: 28px; align-items: center; }
.header-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.header-nav a:hover { color: #fff; }
.header-nav a.active { color: var(--color-accent); }

.header-search {
  display: flex;
  align-items: center;
}
.header-search input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 8px 14px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  width: 200px;
  outline: none;
  transition: all 0.2s;
}
.header-search input::placeholder { color: rgba(255,255,255,0.4); }
.header-search input:focus {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-accent);
  width: 260px;
}

/* ── Main Content ── */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
}

.page-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-light);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

/* ── Post Grid ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.post-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.post-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--color-bg-light);
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.post-card:hover .post-card-image img { transform: scale(1.03); }

.post-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
}

.post-card-body { padding: 24px; }

.post-card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-card-category {
  color: var(--color-primary);
  font-weight: 600;
}

.post-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}
.post-card-title a { color: var(--color-text); }
.post-card-title a:hover { color: var(--color-primary); }

.post-card-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-light);
}

/* ── Single Post ── */
.single-post-header {
  max-width: var(--content-width);
  margin: 0 auto 32px;
  text-align: center;
}

.single-post-meta {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.single-post-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.single-post-featured {
  max-width: var(--content-width);
  margin: 0 auto 40px;
  border-radius: 8px;
  overflow: hidden;
}

.single-post-content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.single-post-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.3px;
}

.single-post-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.single-post-content p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.8;
}

.single-post-content ul, .single-post-content ol {
  margin: 0 0 20px 24px;
  font-size: 17px;
  line-height: 1.8;
}

.single-post-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--color-bg-light);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--color-text-light);
}

.single-post-content img {
  border-radius: 6px;
  margin: 24px 0;
}

/* ── Post Navigation ── */
.post-nav {
  max-width: var(--content-width);
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 2px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.post-nav a {
  font-size: 14px;
  font-weight: 600;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--color-border);
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all 0.2s;
}

.pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ── Sidebar ── */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

.sidebar-widget {
  margin-bottom: 32px;
}

.sidebar-widget h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget li a { color: var(--color-text); }
.sidebar-widget li a:hover { color: var(--color-primary); }

/* ── Footer ── */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.6);
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── 404 ── */
.not-found {
  text-align: center;
  padding: 80px 24px;
}
.not-found h1 { font-size: 48px; margin-bottom: 16px; }
.not-found p { font-size: 18px; color: var(--color-text-light); margin-bottom: 24px; }
.not-found a {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .single-post-title { font-size: 28px; }
  .header-nav { display: none; }
  .header-search input { width: 160px; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .header-inner { height: 56px; }
  .site-logo a { font-size: 18px; }
  .single-post-title { font-size: 24px; }
  .single-post-content p { font-size: 16px; }
}
