/* Modern Blog Post Styles - Malta MQRIC Guide */

/* Typography Enhancements */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:wght@400;700&display=swap");

/* Blog-specific overrides */
.post-full {
  /* Account for fixed navbar */
  background: #ffffff;
}

/* Modern Blog Header */
.post-full-header {
  background: linear-gradient(135deg, #031643 0%, #0e50cd 100%);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.post-full-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  opacity: 0.3;
}

.post-full-header .container {
  position: relative;
  z-index: 2;
}

.post-card-category {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.post-full-title {
  font-family: "Merriweather", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post-full-meta {
  margin-top: 2rem;
}

.post-card-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.author-name {
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.post-date {
  font-size: 0.9rem;
  opacity: 0.8;
  color: #cbd5e1;
}

/* Hero Image */
.post-full-image {
  position: relative;
  margin: 0;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

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

.post-full-image:hover img {
  transform: scale(1.02);
}

/* Modern Content Styling */
.post-full-content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 4rem;
  padding-bottom: 0;
  font-family: "Inter", sans-serif;
  line-height: 1.8;
  color: #334155;
}

.post-full-content p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: #475569;
}

.post-full-content p:first-of-type {
  font-size: 1.125rem;
  color: #e9ecf0;
  margin-bottom: 2rem;
  margin-top: 1.5rem;
}

.post-full-content h2 {
  font-family: "Merriweather", serif;
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 3rem 0 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.post-full-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  border-radius: 2px;
}

.post-full-content h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 2.5rem 0 1rem;
  position: relative;
  padding-left: 1rem;
}

.post-full-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 2px;
}

/* Enhanced Lists */
.post-full-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.post-full-content ol li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
  position: relative;
}

.post-full-content ol li::marker {
  font-weight: 700;
  color: #3b82f6;
}

.post-full-content ul {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.post-full-content ul li {
  margin-bottom: 0.75rem;
  padding-left: 2rem;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.7;
}

.post-full-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Strong text styling */
.post-full-content strong {
  color: #1e293b;
  font-weight: 600;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Modern Link Styling */
.post-full-content a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(30, 64, 175, 0.05)
  );
  transition: all 0.3s ease;
}

.post-full-content a:hover {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15),
    rgba(30, 64, 175, 0.1)
  );
  transform: translateY(-1px);
}

/* HR Styling */
.post-full-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
  margin: 3rem 0;
  position: relative;
}

.post-full-content hr::after {
  content: "✦";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #64748b;
  padding: 0 1rem;
  font-size: 1.2rem;
}

/* Image Styling */
.post-content-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-content-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Print Styles */
@media print {
  .post-full-header {
    background: none !important;
    color: #000 !important;
  }

  .post-full-title {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
  }

  .post-content-image {
    box-shadow: none !important;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .post-full-image img,
  .post-content-image,
  .post-full-content a {
    transition: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .post-full {
    background: #0e347e;
  }

  .post-full-content {
    color: #e2e8f0;
  }

  .post-full-content p {
    color: #cbd5e1;
  }

  .post-full-content h2,
  .post-full-content h3 {
    color: #f1f5f9;
  }
}
/* Confident Close Box */
.confident-close {
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  border-left: 6px solid #3b82f6;
  padding: 2rem;
  margin-top: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
  color: #0f172a;
}

.confident-close h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: "Merriweather", serif;
}

.confident-close p {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #334155;
  line-height: 1.6;
}

.confident-close ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.confident-close ul li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.confident-close ul li::before {
  content: "🎯";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
}

.confident-close a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.confident-close a:hover {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
}
