/* Global Styles & Variables */
:root {
  --primary-color: #ff6b35;
  --primary-hover: #e65a2b;
  --dark-color: #2b2d42;
  --light-color: #f7f9fa;
  --text-color: #4a4e69;
  --bg-color: #ffffff;
  --border-color: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background-color: var(--light-color);
  line-height: 1.7;
}

h1, h2, h3, .logo {
  font-family: 'Outfit', sans-serif;
  color: var(--dark-color);
  font-weight: 700;
}

/* Reading Progress Bar */
#progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  z-index: 1000;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color), #ff9f1c);
  transition: width 0.1s ease-out;
}

/* Header */
header {
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 1rem 0;
}

.header-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--primary-color);
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--primary-color);
}

/* Main Container & Article */
.main-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.blog-post {
  background-color: var(--bg-color);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.post-header {
  margin-bottom: 2rem;
}

.post-category {
  display: inline-block;
  background-color: rgba(255, 107, 53, 0.08);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.post-title {
  font-size: 2.25rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.post-meta {
  font-size: 0.9rem;
  color: #8d99ae;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Hero Image Placeholder */
.post-hero-image {
  margin-bottom: 2.5rem;
  border-radius: 12px;
  overflow: hidden;
}

.hero-image-placeholder {
  background: linear-gradient(135deg, #2b2d42 0%, #1d1e2c 100%);
  color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
}

.hero-image-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 80%);
  pointer-events: none;
}

.hero-image-placeholder h2 {
  color: #ffffff;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.hero-image-placeholder p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

/* Post Content */
.post-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.post-content .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--dark-color);
  line-height: 1.6;
}

.post-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

.post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--dark-color);
}

.post-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

/* Callout Box */
.article-tips {
  background-color: var(--light-color);
  border-left: 4px solid var(--dark-color);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.article-tips h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

/* Feedback & Newsletter Sections */
.feedback-section, .newsletter-section {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.feedback-section h3, .newsletter-section h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.btn-feedback {
  background-color: var(--light-color);
  border: 1px solid var(--border-color);
  color: var(--dark-color);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-feedback:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.newsletter-section p {
  color: #8d99ae;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

#newsletter-form {
  display: flex;
  max-width: 450px;
  margin: 0 auto;
  gap: 0.5rem;
}

#newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  font-family: inherit;
}

#newsletter-form input:focus {
  border-color: var(--primary-color);
}

.btn-submit {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-submit:hover {
  background-color: var(--primary-hover);
}

.hidden {
  display: none !important;
}

#feedback-thank-you, #newsletter-success {
  margin-top: 1rem;
  color: #2ec4b6;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: #8d99ae;
  padding: 2.5rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #8d99ae;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Responsive Rules */
@media(max-width: 768px) {
  .blog-post {
    padding: 1.5rem;
  }
  .post-title {
    font-size: 1.75rem;
  }
  #newsletter-form {
    flex-direction: column;
  }
}
