/*
Theme Name: JoshClaw Astra Child
Template: astra
Version: 1.4
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== HEADER - Polished and cohesive ===== */
.site-header {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%) !important;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Header content wrapper */
.ast-primary-header-bar {
  padding: 25px 0;
  position: relative;
  z-index: 1;
}

/* Logo/Site title - Centered and styled */
.site-branding {
  text-align: center;
  padding: 10px 0;
}

.site-title {
  margin: 0;
  line-height: 1;
}

.site-title a {
  color: #fff !important;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -1px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Logo icon */
.site-title a::before {
  content: '◆';
  font-size: 1.4rem;
  color: #fbbf24;
}

.site-description {
  color: rgba(255,255,255,0.85) !important;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* Navigation - Pill style */
.main-header-bar-navigation {
  margin-top: 15px;
}

.main-header-menu {
  display: flex;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 6px;
  width: fit-content;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.main-header-menu li {
  margin: 0;
}

.main-header-menu a {
  color: #fff !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 20px !important;
  border-radius: 25px;
  transition: all 0.3s ease;
  border: none !important;
}

.main-header-menu a:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

/* ===== POST CARDS - Elevated ===== */
article {
  background: #fff;
  border-radius: 20px;
  padding: 0;
  margin-bottom: 50px;
  box-shadow: 
    0 4px 6px -1px rgba(0,0,0,0.05),
    0 10px 15px -3px rgba(0,0,0,0.08),
    0 20px 40px -10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.04);
}

article:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 10px 15px -3px rgba(0,0,0,0.08),
    0 20px 25px -5px rgba(0,0,0,0.1),
    0 30px 60px -15px rgba(0,0,0,0.15);
}

/* Post content */
.entry-content {
  padding: 50px;
}

/* ===== TYPOGRAPHY ===== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #374151;
  background: #f8fafc;
}

.entry-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.entry-title a {
  color: #111827;
  text-decoration: none;
  border: none;
}

.entry-title a:hover {
  color: #6366f1;
}

/* Featured image with gradient overlay */
.post-thumbnail {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

article:hover .post-thumbnail img {
  transform: scale(1.03);
}

.post-thumbnail::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

/* Category badge on image */
.cat-links {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}

.cat-links a {
  display: inline-block;
  background: rgba(255,255,255,0.95);
  color: #6366f1 !important;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: none;
}

.cat-links a:hover {
  background: #6366f1;
  color: #fff !important;
}

/* Headings */
h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #111827;
  margin-top: 45px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #6366f1;
  display: inline-block;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #4b5563;
  margin-top: 32px;
}

/* Content */
p {
  margin-bottom: 22px;
}

strong {
  color: #4f46e5;
  font-weight: 600;
}

/* Lists */
ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
}

ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #6366f1;
  font-weight: bold;
  font-size: 1.2rem;
  width: 24px;
  height: 24px;
  background: rgba(99,102,241,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

ol li {
  margin-bottom: 12px;
}

/* Links */
a {
  color: #6366f1;
  text-decoration: none;
  transition: all 0.2s;
}

a:hover {
  color: #4f46e5;
}

/* Read more button */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(99,102,241,0.4);
  transition: all 0.3s ease;
  border: none;
}

.read-more:hover {
  transform: translateY(-2px) translateX(3px);
  box-shadow: 0 8px 25px rgba(99,102,241,0.5);
  text-decoration: none;
}

.read-more::after {
  content: '→';
  transition: transform 0.3s;
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #94a3b8;
  padding: 60px 0;
  margin-top: 80px;
}

.site-footer a {
  color: #cbd5e1 !important;
  border: none;
}

.site-footer a:hover {
  color: #fff !important;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .site-title a {
    font-size: 1.6rem;
  }
  
  .main-header-menu {
    flex-wrap: wrap;
    padding: 8px;
  }
  
  .main-header-menu a {
    padding: 8px 14px !important;
    font-size: 0.85rem;
  }
  
  .post-thumbnail img {
    height: 280px;
  }
  
  .entry-content {
    padding: 30px;
  }
  
  .entry-title {
    font-size: 1.9rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: rgba(99,102,241,0.2);
  color: #1e293b;
}
