/* -------------------------------------------------------------------------
   Single Post Styles: Typography, Sidebar, Share Box, Author Bio, Related
   Gulf Grant Theme
   ------------------------------------------------------------------------- */

.gulfgrant-single-main {
  padding-bottom: 5rem;
}

.gulfgrant-single-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .gulfgrant-single-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.gulfgrant-article-container {
  background: var(--gulf-card-bg);
  border: 1px solid var(--gulf-border);
  border-radius: var(--gulf-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--gulf-shadow-sm);
}

@media (max-width: 640px) {
  .gulfgrant-article-container {
    padding: 1.25rem;
    border-radius: var(--gulf-radius);
    overflow: hidden;
  }
}

/* -------------------------------------------------------------------------
   Article Header
   ------------------------------------------------------------------------- */
.entry-header {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--gulf-border);
}

.entry-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.entry-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--gulf-dark);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .entry-title {
    font-size: 1.75rem;
  }
}

.entry-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--gulf-muted);
}

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

.meta-icon {
  color: var(--gulf-primary);
  font-size: 1rem;
}

/* -------------------------------------------------------------------------
   Featured Image & Fallback Banner
   ------------------------------------------------------------------------- */
.entry-featured-media {
  margin-bottom: 2rem;
  border-radius: var(--gulf-radius);
  overflow: hidden;
  box-shadow: var(--gulf-shadow-md);
}

.entry-featured-media img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

.entry-fallback-banner {
  height: 240px;
  border-radius: var(--gulf-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: #ffffff;
  box-shadow: var(--gulf-shadow-md);
  position: relative;
  overflow: hidden;
}

.fallback-banner-inner {
  text-align: center;
  z-index: 2;
}

.banner-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.banner-text {
  font-size: 1.25rem;
  font-weight: 700;
}

/* -------------------------------------------------------------------------
   Telegram Callout Inside Article
   ------------------------------------------------------------------------- */
.entry-telegram-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0effe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--gulf-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.callout-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.callout-tg-icon {
  font-size: 2.25rem;
  color: #0088cc;
  flex-shrink: 0;
}

.callout-content strong {
  display: block;
  font-size: 1.05rem;
  color: #0369a1;
  margin-bottom: 2px;
}

.callout-content p {
  font-size: 0.88rem;
  color: #0c4a6e;
  margin-bottom: 0;
}

.callout-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: #0088cc;
  color: #ffffff;
  border-radius: var(--gulf-radius);
  font-weight: 700;
  font-size: 0.92rem;
  transition: var(--gulf-transition);
  flex-shrink: 0;
}

.callout-tg-btn:hover {
  background: #006699;
  color: #ffffff;
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   Article Prose Content Typography
   ------------------------------------------------------------------------- */
.entry-content {
  font-size: 1.12rem;
  line-height: 1.9;
  color: #1e293b;
  margin-bottom: 3rem;
}

.entry-content h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gulf-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  padding-right: 1rem;
  border-right: 4px solid var(--gulf-primary);
}

.entry-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gulf-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.entry-content p {
  margin-bottom: 1.35rem;
}

.entry-content ul,
.entry-content ol {
  margin: 1.25rem 2rem 1.5rem 0;
  line-height: 1.85;
}

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

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  border-radius: var(--gulf-radius);
  overflow: hidden;
  box-shadow: var(--gulf-shadow-sm);
}

.entry-content th,
.entry-content td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--gulf-border);
  text-align: right;
}

.entry-content th {
  background: var(--gulf-primary);
  color: #ffffff;
  font-weight: 700;
}

.entry-content tr:nth-child(even) {
  background: var(--gulf-bg);
}

.entry-content blockquote {
  border-right: 4px solid var(--gulf-primary);
  background: var(--gulf-primary-light);
  padding: 1.25rem 1.5rem;
  border-radius: var(--gulf-radius-sm);
  margin: 2rem 0;
  font-style: normal;
  color: var(--gulf-dark);
  font-weight: 500;
}

/* -------------------------------------------------------------------------
   Share Bar Component
   ------------------------------------------------------------------------- */
.entry-share-section {
  margin-bottom: 2.5rem;
  padding: 1.25rem;
  background: var(--gulf-bg);
  border-radius: var(--gulf-radius);
  border: 1px solid var(--gulf-border);
}

.gulfgrant-share-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.gulfgrant-share-label {
  font-weight: 700;
  color: var(--gulf-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.gulfgrant-share-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.gulfgrant-share-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--gulf-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff;
  transition: var(--gulf-transition);
  cursor: pointer;
}

.gulfgrant-share-btn.tg { background: #0088cc; }
.gulfgrant-share-btn.wa { background: #25d366; }
.gulfgrant-share-btn.fb { background: #1877f2; }
.gulfgrant-share-btn.tw { background: #0f172a; }
.gulfgrant-share-btn.copy-btn { background: #64748b; }

.gulfgrant-share-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--gulf-shadow-md);
}

.gulfgrant-share-btn.copied {
  background: var(--gulf-primary);
}

/* -------------------------------------------------------------------------
   Author Bio Box
   ------------------------------------------------------------------------- */
.entry-author-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--gulf-bg);
  border: 1px solid var(--gulf-border);
  border-radius: var(--gulf-radius);
  margin-bottom: 2.5rem;
}

.author-avatar-wrap img {
  border-radius: var(--gulf-radius-full);
  border: 3px solid #ffffff;
  box-shadow: var(--gulf-shadow-sm);
}

.author-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gulf-dark);
  margin-bottom: 0.35rem;
}

.author-bio {
  font-size: 0.9rem;
  color: var(--gulf-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   Post Navigation
   ------------------------------------------------------------------------- */
.entry-navigation {
  margin-bottom: 3rem;
}

.entry-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .entry-navigation .nav-links {
    grid-template-columns: 1fr;
  }
}

.nav-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--gulf-bg);
  border: 1px solid var(--gulf-border);
  border-radius: var(--gulf-radius);
  transition: var(--gulf-transition);
}

.nav-card:hover {
  border-color: var(--gulf-primary);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--gulf-shadow-md);
}

.nav-subtitle {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gulf-primary);
  margin-bottom: 0.35rem;
}

.nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gulf-dark);
  line-height: 1.4;
}

/* -------------------------------------------------------------------------
   Sidebar Styles
   ------------------------------------------------------------------------- */
.gulfgrant-single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: var(--gulf-card-bg);
  border: 1px solid var(--gulf-border);
  border-radius: var(--gulf-radius);
  padding: 1.5rem;
  box-shadow: var(--gulf-shadow-sm);
}

.sidebar-widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gulf-dark);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gulf-border-subtle);
}

.sidebar-widget-title i {
  color: var(--gulf-primary);
}

/* Related Posts List */
.related-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-post-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: var(--gulf-transition);
}

.related-post-card:hover {
  transform: translateX(-3px);
}

.related-thumb-box {
  width: 65px;
  height: 65px;
  border-radius: var(--gulf-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.related-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-gradient-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
}

.related-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gulf-dark);
  line-height: 1.4;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-card:hover .related-title {
  color: var(--gulf-primary);
}

.related-date {
  font-size: 0.75rem;
  color: var(--gulf-muted);
}

/* Sidebar Countries Filter */
.sidebar-countries-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-country-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--gulf-radius-sm);
  background: var(--gulf-bg);
  border: 1px solid var(--gulf-border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gulf-dark);
  transition: var(--gulf-transition);
}

.sidebar-country-pill:hover {
  background: var(--gulf-primary-light);
  border-color: var(--gulf-primary);
  color: var(--gulf-primary);
}

.sidebar-country-pill .icon {
  color: var(--gulf-primary);
  margin-left: 0.5rem;
}

.sidebar-country-pill .count {
  font-size: 0.76rem;
  background: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: var(--gulf-radius-full);
  color: var(--gulf-muted);
}
