/* Weight Loss Medicare Blog - Medical Professional Theme */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Crimson+Text:wght@400;600;700&display=swap');

/* CSS Variables */
:root {
  --medical-blue: #1e40af;
  --trust-navy: #1e3a8a;
  --health-teal: #0891b2;
  --medicare-green: #059669;
  --care-mint: #6ee7b7;
  --professional-gray: #6b7280;
  --clean-white: #ffffff;
  --soft-gray: #f9fafb;
  --light-blue: #eff6ff;
  --accent-orange: #ea580c;
  --warning-red: #dc2626;
  --success-green: #16a34a;
  --medical-gradient: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
  --health-gradient: linear-gradient(45deg, #059669 0%, #6ee7b7 100%);
  --care-gradient: linear-gradient(180deg, #f9fafb 0%, #eff6ff 100%);
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--trust-navy);
  background: var(--care-gradient);
  font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Crimson Text', serif;
  color: var(--medical-blue);
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 { font-size: clamp(2.25rem, 4vw, 3rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

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

/* Header - Clean Medical Design */
header {
  background: var(--clean-white);
  border-bottom: 3px solid var(--medical-blue);
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-link {
  font-family: 'Crimson Text', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--medical-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-link::before {
  content: '⚕️';
  font-size: 1.5rem;
}

/* Navigation - Professional Style */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links a {
  color: var(--professional-gray);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--medicare-green);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--medical-blue);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 3px;
}

.bar {
  width: 24px;
  height: 2px;
  background: var(--medical-blue);
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* Featured Post - Medical Cards Style */
.featured-post {
  margin: 2rem 0 4rem;
}

.featured-post-content {
  background: var(--clean-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.12);
  border: 1px solid rgba(30, 64, 175, 0.1);
  transition: all 0.3s ease;
}

.featured-post-content:hover {
  box-shadow: 0 8px 32px rgba(30, 64, 175, 0.18);
  transform: translateY(-2px);
}

.featured-image {
  height: 350px;
  position: relative;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-text {
  padding: 2rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--medicare-green);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-badge::before {
  content: '●';
  color: var(--care-mint);
}

.featured-text h1 {
  color: var(--trust-navy);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-meta {
  display: flex;
  gap: 2rem;
  color: var(--professional-gray);
  font-size: 0.875rem;
  font-weight: 500;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-meta i {
  color: var(--health-teal);
}

/* Section Headers - Medical Style */
.section-header {
  text-align: center;
  margin: 4rem 0 3rem;
  position: relative;
}

.section-header h2 {
  color: var(--medical-blue);
  position: relative;
  display: inline-block;
  padding: 0 2rem;
  background: var(--soft-gray);
}

.section-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--medical-blue), transparent);
  z-index: -1;
}

/* Posts Grid - Medical Cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.post-card {
  background: var(--clean-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.1);
  border: 1px solid rgba(107, 114, 128, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--medical-gradient);
}

.post-card:hover {
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15);
  transform: translateY(-4px);
  border-color: var(--medical-blue);
}

.post-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  color: var(--trust-navy);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
}

.post-content h3:hover {
  color: var(--medical-blue);
}

/* Categories - Professional Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.category-card {
  background: var(--clean-white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.1);
  border: 1px solid rgba(107, 114, 128, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--health-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.15);
  border-color: var(--medicare-green);
}

.category-card:hover::before {
  opacity: 0.03;
}

.category-icon {
  font-size: 2.5rem;
  color: var(--health-teal);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  color: var(--medicare-green);
  transform: scale(1.1);
}

.category-card h3 {
  color: var(--trust-navy);
  position: relative;
  z-index: 1;
  font-weight: 600;
}

/* Single Post - Medical Article Style */
.post-article {
  max-width: 900px;
  margin: 2rem auto 4rem;
  background: var(--clean-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.12);
  border: 1px solid rgba(30, 64, 175, 0.1);
}

.post-header {
  padding: 3rem 3rem 2rem;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--clean-white) 100%);
  text-align: center;
  border-bottom: 1px solid rgba(30, 64, 175, 0.1);
}

.post-category a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--medicare-green);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.post-category a::before {
  content: '📊';
}

.post-category a:hover {
  background: var(--success-green);
  transform: translateY(-1px);
}

.post-title {
  color: var(--trust-navy);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
}

.post-featured-image {
  height: 400px;
  position: relative;
  overflow: hidden;
}

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

.post-content {
  padding: 3rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--trust-navy);
}

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

.post-content h2,
.post-content h3 {
  color: var(--medical-blue);
  margin: 2.5rem 0 1.5rem;
  position: relative;
  padding-left: 1.5rem;
  font-weight: 600;
}

.post-content h2::before,
.post-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 4px;
  height: 2rem;
  background: var(--medicare-green);
  border-radius: 2px;
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.75rem;
  position: relative;
}

.post-content ul li::before {
  content: '✓';
  position: absolute;
  left: -1.5rem;
  color: var(--medicare-green);
  font-weight: bold;
}

/* Override external styles for content paragraphs */
.content-paragraph {
  font-size: 18px !important;
  line-height: 1.7 !important;
  color: var(--trust-navy) !important;
  margin: 20px 0 !important;
  font-weight: 400 !important;
  display: block !important;
}

.content-paragraph:first-of-type {
  font-size: 1.2rem !important;
  color: var(--trust-navy) !important;
}

/* Medical highlight boxes */
.highlight-box {
  background: var(--light-blue) !important;
  color: var(--medical-blue) !important;
  padding: 1.5rem 2rem !important;
  border-radius: 12px !important;
  margin: 2rem 0 !important;
  border-left: 4px solid var(--medicare-green) !important;
  position: relative !important;
}

.highlight-box::before {
  content: 'ℹ️' !important;
  position: absolute !important;
  top: 1rem !important;
  right: 1.5rem !important;
  font-size: 1.25rem !important;
}

.highlight-box p {
  color: var(--medical-blue) !important;
  font-weight: 500 !important;
}

/* Post Actions - Medical Theme */
.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  background: var(--soft-gray);
  border-top: 1px solid rgba(107, 114, 128, 0.2);
}

.like-button {
  background: var(--health-teal);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.like-button:hover {
  background: var(--medicare-green);
  transform: translateY(-1px);
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
}

.share-buttons a {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--professional-gray);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.125rem;
}

.share-buttons a:hover {
  background: var(--medical-blue);
  transform: translateY(-2px);
}

/* Footer - Professional Medical */
footer {
  background: var(--trust-navy);
  color: var(--clean-white);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-links h3,
.footer-social h3 {
  color: var(--care-mint);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--care-mint);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--medical-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--health-teal);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* Button Styles */
.button {
  display: inline-block;
  background: var(--medical-gradient);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: var(--clean-white);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease;
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.12);
    border-top: 3px solid var(--medical-blue);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(107, 114, 128, 0.1);
  }

  .posts-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .post-content {
    padding: 2rem;
  }

  .post-actions {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }

  .share-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .featured-text,
  .post-header {
    padding: 1.5rem;
  }

  .post-content {
    padding: 1.5rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--light-blue);
  border-radius: 50%;
  border-top-color: var(--medical-blue);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Medical info boxes */
.medical-info {
  background: var(--light-blue);
  border: 1px solid var(--medical-blue);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
}

.medical-info::before {
  content: '⚕️';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.25rem;
}

.medical-disclaimer {
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid var(--accent-orange);
  border-radius: 8px;
  padding: 1rem;
  margin: 2rem 0;
  font-size: 0.875rem;
  color: var(--accent-orange);
  font-weight: 500;
}