/* Blog Detail Specific Styles */

/* Background */
.bg-gray-50 {
  background-color: #f9fafb;
}

/* Hero Image Section */
.hero-image-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-color: #1a1a1a;
}

@media (min-width: 768px) {
  .hero-image-container {
    height: 500px;
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

/* Main Content Container */
.main-content-container {
  margin-top: -8rem;
  position: relative;
  z-index: 10;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

/* Article Column */
.article-column {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .article-column {
    grid-column: span 8;
  }
}

/* Article Card */
.article-card {
  background-color: white;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border-radius: 0.5rem;
}

/* Article Header */
.article-header {
  padding: 1.5rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .article-title {
    font-size: 2.25rem;
  }
}

/* Article Meta */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  padding-top: 0.5rem;
}

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

.meta-icon {
  height: 1rem;
  width: 1rem;
}

/* Article Content */
.article-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.article-paragraph {
  margin-bottom: 1.5rem;
  color: #374151;
  line-height: 1.75;
  font-size: 1.125rem;
}

.article-paragraph.indent {
  text-indent: 2rem;
}

.article-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.article-subheading {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.article-list {
  list-style-type: disc;
  list-style-position: inside;
  margin-bottom: 1.5rem;
  color: #374151;
  font-size: 1.125rem;
}

.article-list li {
  margin-bottom: 0.5rem;
}

.article-quote {
  border-left: 4px solid #45abd5;
  background-color: #eff6ff;
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #374151;
  font-size: 1.125rem;
}

/* Article Tags Section */
.article-tags-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.tags-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag-icon {
  height: 1.25rem;
  width: 1.25rem;
  color: #6b7280;
}

.tags-title {
  font-weight: 600;
  color: #111827;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-badge {
  display: inline-block;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid #d1d5db;
  color: #374151;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.tag-badge:hover {
  background-color: #f3f4f6;
}

/* Author Card */
.author-card {
  margin-top: 1.5rem;
  background-color: white;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border-radius: 0.5rem;
}

.author-content {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(to bottom right, #45abd5, #01193f);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-icon {
  width: 2rem;
  height: 2rem;
  color: white;
}

.author-name {
  font-weight: 600;
  font-size: 1.125rem;
  color: #111827;
}

.author-date {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Sidebar */
.sidebar-column {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .sidebar-column {
    grid-column: span 4;
  }
}

.sidebar-sticky {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Sidebar Card */
.sidebar-card {
  background-color: white;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border-radius: 0.5rem;
}

.sidebar-card-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.sidebar-card-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Recent Post Item */
.recent-post-item {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.2s;
}

.recent-post-item:hover .recent-post-title {
  color: #45abd5;
}

.recent-post-image {
  width: 5rem;
  height: 5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

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

.recent-post-item:hover .recent-post-image img {
  transform: scale(1.1);
}

.recent-post-text {
  flex: 1;
  min-width: 0;
}

.recent-post-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.recent-post-date {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Popular Tags */
.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.popular-tag {
  display: inline-block;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid #d1d5db;
  color: #374151;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.popular-tag:hover {
  background-color: #45abd5;
  color: white;
  border-color: #45abd5;
}

/* CTA Card */
.cta-card {
  background: linear-gradient(to bottom right, #01193f, #012247);
  color: white;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border-radius: 0.5rem;
}

.cta-content {
  padding: 1.5rem;
}

.cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-text {
  font-size: 0.875rem;
  color: #bfdbfe;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #45abd5;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
}

.cta-button:hover {
  background-color: #3a96bd;
}

.cta-icon {
  width: 1rem;
  height: 1rem;
}
