/* Parkort Blog Styling */

:root {
  --warm-primary: #d97757;
  --warm-secondary: #c9a86a;
  --warm-accent: #8b7355;
  --soft-pink: #eab8b8;
  --soft-blue: #9db4c0;
  --cream: #f5f1e8;
  --warm-white: #faf8f5;
  --warm-gray: #5a5550;
  --warm-dark: #3c3632;
  --primary-gradient: linear-gradient(135deg, #d97757 0%, #c9a86a 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--warm-white);
  color: var(--warm-dark);
  line-height: 1.7;
}

a {
  color: var(--warm-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--warm-secondary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.blog-header {
  background: var(--warm-white);
  border-bottom: 1px solid rgba(90, 85, 80, 0.1);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.blog-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-logo {
  font-size: 1.5em;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.blog-nav a {
  color: var(--warm-gray);
  font-weight: 500;
}

.blog-nav a:hover {
  color: var(--warm-primary);
}

.cta-button {
  background: var(--primary-gradient);
  color: white !important;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 87, 0.3);
}

/* Hero Section */
.blog-hero {
  background: linear-gradient(135deg, rgba(217, 119, 87, 0.08), rgba(201, 168, 106, 0.08));
  padding: 80px 0;
  text-align: center;
}

.blog-hero h1 {
  font-size: 3em;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.blog-hero p {
  font-size: 1.25em;
  color: var(--warm-gray);
  max-width: 600px;
  margin: 0 auto 32px;
}

.search-box {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 16px 24px;
  padding-right: 50px;
  border: 2px solid rgba(90, 85, 80, 0.15);
  border-radius: 50px;
  font-size: 1em;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--warm-primary);
  box-shadow: 0 4px 16px rgba(217, 119, 87, 0.15);
}

.search-box button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-gradient);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  font-size: 1.1em;
}

/* Category Navigation */
.category-nav {
  background: white;
  border-bottom: 1px solid rgba(90, 85, 80, 0.1);
  padding: 16px 0;
  position: sticky;
  top: 65px;
  z-index: 90;
}

.category-nav .container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.category-nav a {
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--cream);
  color: var(--warm-gray);
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}

.category-nav a:hover,
.category-nav a.active {
  background: var(--primary-gradient);
  color: white;
}

/* Featured Articles */
.featured-section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--warm-dark);
  margin-bottom: 32px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.article-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(60, 54, 50, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(60, 54, 50, 0.12);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-content {
  padding: 24px;
}

.article-card .category-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(217, 119, 87, 0.1);
  color: var(--warm-primary);
  border-radius: 50px;
  font-size: 0.8em;
  font-weight: 600;
  margin-bottom: 12px;
}

.article-card h3 {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--warm-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card p {
  color: var(--warm-gray);
  font-size: 0.95em;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--warm-accent);
  font-size: 0.85em;
}

/* Popular Topics */
.popular-topics {
  background: var(--cream);
  padding: 40px 0;
}

.topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.topic-tag {
  padding: 10px 20px;
  background: white;
  border-radius: 50px;
  color: var(--warm-dark);
  font-weight: 500;
  transition: all 0.2s;
}

.topic-tag:hover {
  background: var(--primary-gradient);
  color: white;
}

/* All Articles List */
.all-articles {
  padding: 60px 0;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-list-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(60, 54, 50, 0.04);
  transition: box-shadow 0.2s;
}

.article-list-item:hover {
  box-shadow: 0 8px 24px rgba(60, 54, 50, 0.08);
}

.article-list-item img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.article-list-content {
  flex: 1;
}

.article-list-item h3 {
  font-size: 1.3em;
  margin-bottom: 8px;
}

/* CTA Box */
.cta-box {
  background: var(--primary-gradient);
  padding: 60px;
  border-radius: 24px;
  text-align: center;
  margin: 60px 0;
}

.cta-box h2 {
  color: white;
  font-size: 2em;
  margin-bottom: 16px;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1em;
  margin-bottom: 24px;
}

.cta-box .cta-button {
  background: white;
  color: var(--warm-primary) !important;
}

/* Footer */
.blog-footer {
  background: var(--warm-dark);
  color: var(--cream);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-size: 1.5em;
  margin-bottom: 16px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links h4 {
  color: white;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: rgba(245, 241, 232, 0.7);
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: var(--warm-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 241, 232, 0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(245, 241, 232, 0.5);
}

/* ==================== */
/* ARTICLE PAGE STYLES  */
/* ==================== */

.article-page {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 48px 0;
}

.article-content {
  max-width: 720px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.9em;
  color: var(--warm-gray);
}

.breadcrumb a {
  color: var(--warm-gray);
}

.breadcrumb span {
  color: var(--warm-accent);
}

/* Article Header */
.article-header {
  margin-bottom: 32px;
}

.article-header .category-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(217, 119, 87, 0.1);
  color: var(--warm-primary);
  border-radius: 50px;
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: 2.5em;
  font-weight: 800;
  color: var(--warm-dark);
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-header .meta {
  display: flex;
  gap: 24px;
  color: var(--warm-gray);
  font-size: 0.9em;
}

.article-header .meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Featured Image */
.article-featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 40px;
}

/* Article Body */
.article-body {
  font-size: 1.1em;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--warm-dark);
  margin: 48px 0 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(90, 85, 80, 0.1);
}

.article-body h3 {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--warm-dark);
  margin: 32px 0 16px;
}

.article-body strong {
  color: var(--warm-dark);
}

.article-body blockquote {
  border-left: 4px solid var(--warm-primary);
  padding: 24px 32px;
  margin: 32px 0;
  background: var(--cream);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--warm-gray);
}

.article-body ul, .article-body ol {
  margin: 24px 0;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 12px;
}

/* Modgift Box */
.modgift-box {
  background: linear-gradient(135deg, rgba(217, 119, 87, 0.08), rgba(201, 168, 106, 0.08));
  border-left: 4px solid var(--warm-primary);
  padding: 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.modgift-box strong {
  color: var(--warm-primary);
}

/* Exercise Section */
.exercise-section {
  background: var(--cream);
  padding: 32px;
  border-radius: 16px;
  margin: 48px 0;
}

.exercise-section h2 {
  border: none;
  padding-top: 0;
  margin-top: 0;
  color: var(--warm-primary);
}

.exercise-section ol {
  margin-bottom: 0;
}

/* Perspective Quote */
.perspective-section {
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, rgba(217, 119, 87, 0.05), rgba(201, 168, 106, 0.05));
  border-radius: 16px;
  margin: 48px 0;
}

.perspective-section p {
  font-size: 1.2em;
  font-style: italic;
  color: var(--warm-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Article CTA */
.article-cta {
  background: var(--primary-gradient);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  margin: 48px 0;
}

.article-cta h3 {
  color: white;
  font-size: 1.5em;
  margin-bottom: 12px;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.article-cta .cta-button {
  background: white;
  color: var(--warm-primary) !important;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-box {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(60, 54, 50, 0.06);
}

.sidebar-box h4 {
  font-size: 1em;
  font-weight: 700;
  color: var(--warm-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(90, 85, 80, 0.1);
}

/* Table of Contents */
.toc-list {
  list-style: none;
  padding: 0;
}

.toc-list li {
  margin-bottom: 12px;
}

.toc-list a {
  color: var(--warm-gray);
  font-size: 0.9em;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.toc-list a:hover,
.toc-list a.active {
  background: var(--cream);
  color: var(--warm-primary);
}

/* Sidebar CTA */
.sidebar-cta {
  background: var(--primary-gradient);
  color: white;
  text-align: center;
}

.sidebar-cta h4 {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.sidebar-cta p {
  font-size: 0.9em;
  margin-bottom: 16px;
  opacity: 0.9;
}

.sidebar-cta .cta-button {
  background: white;
  color: var(--warm-primary) !important;
  width: 100%;
  display: block;
  text-align: center;
}

/* Related Articles in Sidebar */
.related-list {
  list-style: none;
  padding: 0;
}

.related-list li {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(90, 85, 80, 0.1);
}

.related-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.related-list a {
  color: var(--warm-dark);
  font-weight: 500;
  font-size: 0.95em;
}

/* Read More Section */
.read-more-section {
  padding: 60px 0;
  border-top: 1px solid rgba(90, 85, 80, 0.1);
}

/* Article Navigation */
.article-nav {
  display: flex;
  justify-content: space-between;
  padding: 32px 0;
  border-top: 1px solid rgba(90, 85, 80, 0.1);
}

.article-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 45%;
}

.article-nav span {
  font-size: 0.85em;
  color: var(--warm-gray);
}

.article-nav strong {
  color: var(--warm-dark);
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary-gradient);
  z-index: 1000;
  transition: width 0.1s;
}

/* ==================== */
/* RESPONSIVE           */
/* ==================== */

@media (max-width: 1024px) {
  .article-page {
    grid-template-columns: 1fr;
  }
  
  .article-sidebar {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .blog-header .container {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .blog-nav {
    display: none;
  }
  
  .blog-hero h1 {
    font-size: 2em;
  }
  
  .article-grid {
    grid-template-columns: 1fr;
  }
  
  .article-list-item {
    flex-direction: column;
  }
  
  .article-list-item img {
    width: 100%;
    height: 200px;
  }
  
  .cta-box {
    padding: 40px 24px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .article-header h1 {
    font-size: 1.8em;
  }
  
  .article-featured-image {
    height: 250px;
  }
}

/* Mobile Sticky CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 16px 24px;
  box-shadow: 0 -4px 24px rgba(60, 54, 50, 0.1);
  z-index: 100;
}

.mobile-cta .cta-button {
  width: 100%;
  text-align: center;
  display: block;
}

@media (max-width: 1024px) {
  .mobile-cta {
    display: block;
  }
  
  .article-body {
    padding-bottom: 80px;
  }
}

/* Article Navigation */
.article-navigation {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--cream);
}

.nav-prev,
.nav-next {
  flex: 1;
  max-width: 45%;
}

.nav-prev a,
.nav-next a {
  display: block;
  padding: 20px 24px;
  background: var(--warm-white);
  border: 1px solid var(--cream);
  border-radius: 12px;
  text-decoration: none;
  color: var(--warm-dark);
  transition: all 0.3s ease;
  height: 100%;
}

.nav-prev a:hover,
.nav-next a:hover {
  border-color: var(--warm-primary);
  box-shadow: 0 4px 16px rgba(217, 119, 87, 0.1);
}

.nav-label {
  display: block;
  font-size: 0.85em;
  color: var(--warm-gray);
  margin-bottom: 4px;
}

.nav-title {
  font-weight: 600;
  color: var(--warm-primary);
}

.nav-next {
  text-align: right;
}

@media (max-width: 768px) {
  .article-navigation {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav-prev,
  .nav-next {
    max-width: 100%;
  }
  
  .nav-next {
    text-align: left;
  }
}
