/* ============================================================
   FirePulse — Individual Post Page Styles (v2)
   - Gaming corner border on Article & Related cards
   - Ad slot with proper spacing
   - Share modal + Related posts
   ============================================================ */

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

html { height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  padding-bottom: 62px;
  margin: 0;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.post-loading {
  flex: 1 0 auto;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
}
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
.skeleton-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
}
@supports not (aspect-ratio: 16 / 9) {
  .skeleton-image { height: 0; padding-bottom: 56.25%; }
}
.skeleton-line-lg { height: 32px; width: 80%; margin-bottom: 16px; }
.skeleton-line-md { height: 20px; width: 40%; margin-bottom: 24px; }
.skeleton-line-sm { height: 16px; width: 100%; margin-bottom: 12px; }
.skeleton-line { height: 16px; width: 100%; margin-bottom: 12px; }
.skeleton-line.short { width: 60%; }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================================
   ERROR STATE
   ============================================================ */
.post-error {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  gap: 16px;
}
.post-error i {
  font-size: 64px;
  color: #ff0000;
}
.post-error h2 { font-size: 24px; font-weight: 700; color: #ffffff; margin: 0; }
.post-error p { color: #888888; font-size: 14px; margin: 0; }

/* ============================================================
   BACK BUTTONS
   ============================================================ */
.btn-back, .btn-back-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ff0000;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}
.btn-back:hover { background: #cc0000; transform: translateY(-1px); }

.post-nav {
  max-width: 900px;
  margin: 0 auto 24px;
  padding: 0 20px;
}
.btn-back-nav {
  padding: 10px 18px;
  background: #0a0a0a;
  color: #ffffff;
  border: 1px solid #1a1a1a;
  font-size: 13px;
}
.btn-back-nav:hover {
  border-color: #ff0000;
  color: #ff0000;
  background: #0a0a0a;
  transform: translateX(-3px);
}

/* ============================================================
   POST ARTICLE
   ============================================================ */
.post-article {
  flex: 1 0 auto;
  width: 100%;
  padding: 20px 0 40px;
}

.post-hero {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 32px;
  padding: 0 20px;
}
.post-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: #111111;
  border-radius: 14px;
}
@supports not (aspect-ratio: 16 / 9) {
  .post-image { height: 0; padding-bottom: 56.25%; }
}

.post-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.post-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
  word-break: break-word;
}
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: 28px;
}
.post-last-updated {
  font-size: 13px;
  color: #888888;
  font-weight: 500;
}
.post-last-updated span { color: #cccccc; font-weight: 600; }
.post-category-tag {
  display: inline-block;
  padding: 6px 16px;
  background: #ff0000;
  color: #ffffff;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.post-description {
  font-size: 17px;
  line-height: 1.9;
  color: #cccccc;
  margin: 0 0 32px;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
}

/* ============================================================
   POST ACTIONS
   ============================================================ */
.post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: 32px;
  position: relative;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #2a2a2a;
  background: #0a0a0a;
  color: #ffffff;
  white-space: nowrap;
}
.action-btn:hover { transform: translateY(-2px); }
.share-action { background: #ff0000; border-color: #ff0000; color: #ffffff; }
.share-action:hover { background: #cc0000; border-color: #cc0000; }
.copy-action { background: #0a0a0a; border-color: #2a2a2a; }
.copy-action:hover { border-color: #ff0000; color: #ff0000; }
.copy-confirmation {
  display: inline-block;
  font-size: 12px;
  color: #22c55e;
  font-weight: 600;
  margin-left: 8px;
}

/* ============================================================
   POST AD SLOT (Article শেষে)
   ============================================================ */
.post-ad-slot {
  margin: 32px 0;
  width: 100%;
}

.post-ad-slot .in-feed-ad {
  border-radius: 14px;
}

/* ============================================================
   SHARE MODAL
   ============================================================ */
.share-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.share-modal-overlay.active { display: flex; }
.share-modal {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #1a1a1a;
  position: sticky;
  top: 0;
  background: #0a0a0a;
  border-radius: 18px 18px 0 0;
  z-index: 2;
}
.share-modal-header h3 { font-size: 18px; font-weight: 700; color: #ffffff; margin: 0; }
.share-modal-close {
  background: none;
  border: none;
  color: #888888;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.share-modal-close:hover { color: #ff0000; background: rgba(255, 0, 0, 0.1); }
.share-modal-body { padding: 24px; }
.share-modal-text {
  font-size: 14px;
  color: #888888;
  margin: 0 0 20px;
  text-align: center;
}

/* ============================================================
   SHARE PLATFORMS
   ============================================================ */
.share-platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  background: #111111;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.25s ease;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.platform-btn:hover { transform: translateY(-3px); }
.platform-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  transition: all 0.25s ease;
}
.platform-icon i {
  font-size: 20px;
  color: #888888;
  transition: color 0.25s ease;
}
.platform-btn span {
  font-size: 11px;
  font-weight: 600;
  color: #aaaaaa;
  text-align: center;
  line-height: 1.2;
}

.platform-btn.facebook:hover { border-color: #1877f2; }
.platform-btn.facebook:hover .platform-icon { background: #1877f2; }
.platform-btn.facebook:hover .platform-icon i { color: #ffffff; }
.platform-btn.facebook:hover span { color: #1877f2; }

.platform-btn.whatsapp:hover { border-color: #25d366; }
.platform-btn.whatsapp:hover .platform-icon { background: #25d366; }
.platform-btn.whatsapp:hover .platform-icon i { color: #ffffff; }
.platform-btn.whatsapp:hover span { color: #25d366; }

.platform-btn.twitter:hover { border-color: #000000; }
.platform-btn.twitter:hover .platform-icon { background: #ffffff; }
.platform-btn.twitter:hover .platform-icon i { color: #000000; }
.platform-btn.twitter:hover span { color: #ffffff; }

.platform-btn.telegram:hover { border-color: #0088cc; }
.platform-btn.telegram:hover .platform-icon { background: #0088cc; }
.platform-btn.telegram:hover .platform-icon i { color: #ffffff; }
.platform-btn.telegram:hover span { color: #0088cc; }

.platform-btn.linkedin:hover { border-color: #0077b5; }
.platform-btn.linkedin:hover .platform-icon { background: #0077b5; }
.platform-btn.linkedin:hover .platform-icon i { color: #ffffff; }
.platform-btn.linkedin:hover span { color: #0077b5; }

.platform-btn.reddit:hover { border-color: #ff4500; }
.platform-btn.reddit:hover .platform-icon { background: #ff4500; }
.platform-btn.reddit:hover .platform-icon i { color: #ffffff; }
.platform-btn.reddit:hover span { color: #ff4500; }

.platform-btn.email:hover { border-color: #ff0000; }
.platform-btn.email:hover .platform-icon { background: #ff0000; }
.platform-btn.email:hover .platform-icon i { color: #ffffff; }
.platform-btn.email:hover span { color: #ff0000; }

.platform-btn.native:hover { border-color: #ff0000; }
.platform-btn.native:hover .platform-icon { background: #ff0000; }
.platform-btn.native:hover .platform-icon i { color: #ffffff; }
.platform-btn.native:hover span { color: #ff0000; }

/* Share URL Section */
.share-url-section { padding-top: 20px; border-top: 1px solid #1a1a1a; }
.share-url-section label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.share-url-wrapper {
  display: flex;
  gap: 8px;
  background: #111111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 4px;
}
.share-url-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  padding: 10px 12px;
  outline: none;
  min-width: 0;
}
.share-url-copy-btn {
  background: #ff0000;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.share-url-copy-btn:hover { background: #cc0000; }

/* ============================================================
   RELATED POSTS — Gaming corners
   ============================================================ */
.related-posts {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #1a1a1a;
}
.related-posts h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Related card — gaming corner (red accent) */
.related-card {
  position: relative;
  background: #0a0a0a;
  border: 1px solid rgba(255, 0, 0, 0.25);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.related-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 22px;
  height: 22px;
  border-top: 2px solid #ff0000;
  border-left: 2px solid #ff0000;
  border-top-left-radius: 12px;
  pointer-events: none;
  z-index: 3;
}

.related-card::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 22px;
  height: 22px;
  border-bottom: 2px solid #ff0000;
  border-right: 2px solid #ff0000;
  border-bottom-right-radius: 12px;
  pointer-events: none;
  z-index: 3;
}

.related-card:hover {
  border-color: rgba(255, 0, 0, 0.5);
  transform: translateY(-3px);
}

.related-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
}
@supports not (aspect-ratio: 16 / 9) {
  .related-card img { height: 0; padding-bottom: 56.25%; }
}
.related-card-info { padding: 14px; }
.related-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 6px;
}
.related-card-date { font-size: 11px; color: #666666; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  padding: 30px 0 20px;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #2a2a2a;
  object-fit: cover;
}
.footer-desc { font-size: 14px; color: #888888; }
.footer-social { display: flex; gap: 14px; justify-content: center; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #333333;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer-social a:hover { border-color: #ff0000; }
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  padding: 0 10px;
  max-width: 100%;
  overflow-x: auto;
}
.footer-links a {
  color: #888888;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 0 5px;
  white-space: nowrap;
}
.footer-links a:hover { color: #ff0000; }
.footer-bottom {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #1a1a1a;
  width: 100%;
}
.footer-copy { font-size: 12px; color: #555555; }
.footer-copy a { color: #666666; text-decoration: none; }
.footer-copy a:hover { color: #ff0000; }

/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  padding: 8px 0;
  z-index: 1000;
  height: 62px;
  box-sizing: border-box;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #666666;
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 0;
  transition: all 0.2s ease;
  flex: 1;
  max-width: 80px;
  position: relative;
}
.nav-item.active { color: #ff0000; }

.nav-badge-dot {
  position: absolute;
  top: 2px;
  right: calc(50% - 14px);
  width: 8px;
  height: 8px;
  background: #ff0000;
  border-radius: 50%;
  border: 2px solid #0a0a0a;
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.3);
  animation: badgePulse 1.5s infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  body { padding-bottom: 56px; }
  .post-title { font-size: 26px; }
  .post-description { font-size: 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .share-platforms { grid-template-columns: repeat(3, 1fr); }
  .bottom-nav { height: 56px; padding: 6px 0; }
  .nav-item span { font-size: 9px; }
  .footer-links { gap: 16px; overflow-x: auto; }
  .footer-links a { font-size: 12px; }
  .nav-badge-dot { right: calc(50% - 12px); }
}
@media (max-width: 480px) {
  body { padding-bottom: 50px; }
  .post-title { font-size: 22px; }
  .post-description { font-size: 15px; line-height: 1.8; }
  .post-hero { margin-bottom: 20px; }
  .post-image { border-radius: 10px; }
  .post-meta { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  .post-last-updated { font-size: 12px; }
  .post-category-tag { font-size: 10px; padding: 5px 12px; }
  .post-actions { padding: 16px 0; }
  .action-btn { flex: 1; padding: 12px 16px; font-size: 13px; }
  .share-platforms { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .platform-btn { padding: 12px 4px; }
  .platform-icon { width: 38px; height: 38px; }
  .platform-icon i { font-size: 16px; }
  .platform-btn span { font-size: 10px; }
  .share-modal-body { padding: 20px; }
  .bottom-nav { height: 50px; padding: 4px 0; }
  .nav-item span { font-size: 8px; }
  .footer-links { gap: 12px; }
  .footer-links a { font-size: 11px; }
  .post-ad-slot { margin: 24px 0; }
  /* Smaller gaming corners */
  .related-card::before,
  .related-card::after {
    width: 18px;
    height: 18px;
  }
}

/* END OF post.css */