/*
Theme Name: Tether Consulting
Description: Custom WordPress theme for Tether Consulting blog that matches the main website design
Version: 2.2
Author: Tether Consulting
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette - Matching main site */
  --primary-50: #f8fafc;
  --primary-100: #f1f5f9;
  --primary-200: #e2e8f0;
  --primary-300: #cbd5e1;
  --primary-400: #94a3b8;
  --primary-500: #64748b;
  --primary-600: #475569;
  --primary-700: #334155;
  --primary-800: #1e293b;
  --primary-900: #0f172a;
  
  --accent-400: #60a5fa;
  --accent-500: #3b82f6;
  --accent-600: #2563eb;
  
  --dark-800: #1f2937;
  --dark-900: #111827;
  --dark-950: #030712;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #334155;
  background-color: #ffffff;
}

/* Dark mode */
body.dark-mode {
  background-color: var(--dark-900);
  color: #e2e8f0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background-color: var(--primary-900);
  color: white;
  padding: 1rem 0;
  border-bottom: 1px solid var(--primary-700);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
}

.site-title:hover {
  color: var(--accent-400);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--accent-400);
}

/* Main Content */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: calc(100vh - 200px);
}

/* Blog Layout */
.blog-header {
    text-align: center;
    margin-bottom: 5rem;
    padding: 5rem 3rem;
    background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
    color: white;
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blog-header p {
    font-size: 1.375rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

/* Post Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 3rem;
  margin-bottom: 5rem;
}

.post-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.dark-mode .post-card {
  background: var(--dark-800);
  border: 1px solid var(--primary-700);
}

.post-featured-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 2.5rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--primary-500);
  font-weight: 500;
}

.dark-mode .post-meta {
  color: var(--primary-400);
}

.post-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-title a {
  color: var(--primary-800);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--accent-600);
}

.dark-mode .post-title a {
  color: #e2e8f0;
}

.dark-mode .post-title a:hover {
  color: var(--accent-400);
}

.post-excerpt {
  color: var(--primary-600);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.dark-mode .post-excerpt {
  color: #cbd5e1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--accent-600);
  text-decoration: none;
  font-weight: 500;
  gap: 0.5rem;
}

.read-more:hover {
  color: var(--accent-700);
}

/* Single Post */
.single-post {
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 3rem;
  background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
  color: white;
  border-radius: 1rem;
}

.post-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.post-header .post-meta {
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
}

.post-body {
  background: white;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
}

.dark-mode .post-body {
  background: var(--dark-800);
  border: 1px solid var(--primary-700);
}

.post-body h2 {
  font-size: 1.875rem;
  font-weight: bold;
  margin: 2rem 0 1rem 0;
  color: var(--primary-800);
}

.dark-mode .post-body h2 {
  color: #e2e8f0;
}

.post-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--primary-700);
}

.dark-mode .post-body h3 {
  color: #cbd5e1;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body ul, .post-body ol {
  margin: 1rem 0 1.5rem 2rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body a {
  color: var(--accent-600);
  text-decoration: underline;
}

.post-body a:hover {
  color: var(--accent-700);
}

.dark-mode .post-body a {
  color: var(--accent-400);
}

.post-body blockquote {
  border-left: 4px solid var(--accent-500);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--primary-600);
}

.dark-mode .post-body blockquote {
  color: #cbd5e1;
}

.post-body code {
  background: var(--primary-100);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

.dark-mode .post-body code {
  background: var(--primary-800);
}

.post-body pre {
  background: var(--primary-100);
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.dark-mode .post-body pre {
  background: var(--primary-800);
}

/* Categories */
.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.category-tag {
  background: var(--primary-100);
  color: var(--primary-700);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-200);
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
}

.category-tag:hover {
  background: var(--primary-200);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-color: var(--primary-300);
}

.dark-mode .category-tag {
  background: var(--primary-800);
  color: var(--primary-100);
  border-color: var(--primary-700);
}

.dark-mode .category-tag:hover {
  background: var(--primary-700);
  color: var(--primary-50);
  border-color: var(--primary-600);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.pagination a,
.pagination .current {
  padding: 0.75rem 1rem;
  border: 1px solid var(--primary-300);
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--primary-700);
}

.pagination a:hover {
  background: var(--primary-100);
}

.pagination .current {
  background: var(--accent-600);
  color: white;
  border-color: var(--accent-600);
}

/* Footer */
.site-footer {
  background: var(--dark-900);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

.site-footer a {
  color: var(--accent-400);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-300);
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-nav ul {
    gap: 1rem;
  }
  
  .main-nav a {
    font-size: 1rem;
  }
  
  .blog-header h1 {
    font-size: 2rem;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .post-body {
    padding: 2rem;
  }
}

/* Utility Classes */
.btn-primary {
  background: var(--accent-600);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent-700);
  color: white;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-4 {
  margin-top: 1rem;
} 