/* ============================================================
   FirePulse — Home Page Styles (v7)
   Hero + Feed + Ad + Gaming Theme Cards
   - Player/Team: gaming corner borders (no glow)
   - Sponsored label: small, right-top
   - Feed card: Tag (top-right), Avatar (left), Name + @username + Location
   - No "View Profile" text — entire card clickable
   ============================================================ */

* { 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; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 350px;
  max-height: 350px;
  overflow: hidden;
  background: #000000;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}
.hero-content h1 {
  margin: 0;
  color: #ffffff;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.hero-content h1 span { color: #ff0000; }
.hero-description {
  max-width: 460px;
  margin: 12px 0 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.hero-actions a i { font-size: 14px; }
.hero-actions a:first-child {
  color: #ffffff;
  background: #ff0000;
  border: 1px solid #ff0000;
}
.hero-actions a:first-child:hover { background: #cc0000; border-color: #cc0000; }
.hero-actions a:last-child {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #555555;
  backdrop-filter: blur(4px);
}
.hero-actions a:last-child:hover { color: #ff0000; border-color: #ff0000; background: #000; }

/* ============================================================
   LATEST SECTION
   ============================================================ */
.latest-section {
  flex: 1 0 auto;
  padding: 20px 0 60px;
  background: #000000;
  min-height: 40vh;
}
.latest-blog { max-width: 800px; margin: 0 auto; }

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.latest-loading { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.skeleton-card {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  animation: pulse 1.5s ease-in-out infinite;
}
.skeleton-card:nth-child(1) { animation-delay: 0s; }
.skeleton-card:nth-child(2) { animation-delay: 0.2s; }
.skeleton-card:nth-child(3) { animation-delay: 0.4s; }

.skeleton-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@supports not (aspect-ratio: 16 / 9) {
  .skeleton-image { height: 0; padding-bottom: 56.25%; }
}
.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin: 16px 18px 0;
}
.skeleton-line.short { width: 40%; margin-top: 12px; margin-bottom: 20px; }

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================================
   LATEST CONTENT CARDS (Post)
   ============================================================ */
.latest-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.latest-item {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.latest-item:hover {
  border-color: #ff0000;
  transform: translateY(-3px);
}
.latest-content .latest-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: #111111;
}
@supports not (aspect-ratio: 16 / 9) {
  .latest-content .latest-image {
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
  }
}
.latest-content .latest-info { padding: 20px 24px 24px; }
.latest-content .latest-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #ff0000;
  background: rgba(255, 0, 0, 0.1);
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.latest-content .latest-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.4;
}
.latest-content .latest-desc {
  font-size: 14px;
  color: #aaaaaa;
  line-height: 1.6;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest-content .latest-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-content .latest-date { font-size: 12px; color: #666666; }
.latest-content .latest-see-more {
  color: #ff0000;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.latest-item:hover .latest-see-more { color: #ffffff; }

/* ============================================================
   ERROR / EMPTY STATE
   ============================================================ */
.latest-error, .latest-empty {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.latest-error p, .latest-empty p { color: #888888; font-size: 14px; }
.btn-retry {
  padding: 10px 24px;
  background: #ff0000;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.btn-retry:hover { background: #cc0000; }

/* ============================================================
   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;
  -webkit-overflow-scrolling: touch;
}
.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: 1024px) {
  .hero-content h1 { font-size: 32px; }
}
@media (max-width: 768px) {
  body { padding-bottom: 56px; }
  .hero { height: 250px; max-height: 250px; }
  .hero-content { padding: 30px 40px; }
  .hero-content h1 { font-size: 28px; }
  .hero-description { max-width: 350px; font-size: 13px; }
  .hero-actions { margin-top: 14px; }
  .hero-actions a { min-width: 120px; min-height: 38px; padding: 8px 14px; font-size: 13px; }
  .latest-content .latest-title { font-size: 18px; }
  .latest-content .latest-info { padding: 16px 18px 18px; }
  .footer-links { gap: 16px; overflow-x: auto; }
  .footer-links a { font-size: 12px; }
  .bottom-nav { height: 56px; padding: 6px 0; }
  .nav-item span { font-size: 9px; }
  .nav-badge-dot { right: calc(50% - 12px); }
}
@media (max-width: 480px) {
  body { padding-bottom: 50px; }
  .hero { height: 200px; max-height: 200px; }
  .hero-content { padding: 20px 24px; }
  .hero-content h1 { font-size: 22px; }
  .hero-description { max-width: 220px; font-size: 11px; margin-top: 6px; }
  .hero-actions { gap: 8px; margin-top: 10px; }
  .hero-actions a { min-width: 90px; min-height: 32px; padding: 5px 10px; font-size: 11px; }
  .latest-content .latest-title { font-size: 16px; }
  .latest-content .latest-desc { font-size: 13px; }
  .footer-links { gap: 12px; }
  .footer-links a { font-size: 11px; }
  .bottom-nav { height: 50px; padding: 4px 0; }
  .nav-item span { font-size: 8px; }
}
@media (max-width: 360px) {
  .hero-content h1 { font-size: 18px; }
  .footer-links a { font-size: 10px; }
  .bottom-nav { height: 46px; padding: 3px 0; }
  .nav-item span { font-size: 7px; }
}

/* ============================================================
   ⭐ IN-FEED BANNER AD
   ============================================================ */
.in-feed-ad {
  position: relative;
  display: block;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
  grid-column: span 1;
  animation: adFadeIn 0.4s ease-out;
}

.in-feed-ad:hover {
  border-color: rgba(255, 0, 0, 0.4);
  transform: translateY(-3px);
}

@keyframes adFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.in-feed-ad-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  background: #111;
  overflow: hidden;
}
@supports not (aspect-ratio: 3 / 1) {
  .in-feed-ad-image-wrap {
    height: 0;
    padding-bottom: 33.3333%;
  }
}

.in-feed-ad-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.in-feed-ad:hover .in-feed-ad-image {
  transform: scale(1.03);
}

.in-feed-ad-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  color: #444;
  font-size: 32px;
}

/* SPONSORED LABEL — small, top-right */
.in-feed-ad-label {
  position: absolute;
  top: 6px;
  right: 6px;
  left: auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  color: #aaaaaa;
  font-size: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1;
  opacity: 0.8;
}

.in-feed-ad-label i {
  font-size: 5px;
  color: #ffcc00;
}

.in-feed-ad-content {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.in-feed-ad-title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: break-word;
  min-width: 0;
}

.in-feed-ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ff0000;
  flex-shrink: 0;
  transition: gap 0.2s ease;
  white-space: nowrap;
}

.in-feed-ad:hover .in-feed-ad-cta {
  gap: 8px;
}

.in-feed-ad-cta i {
  font-size: 10px;
}

.update-grid .in-feed-ad,
.latest-content .in-feed-ad {
  border-radius: 14px;
}

@media (max-width: 480px) {
  .in-feed-ad-title {
    font-size: 13px;
  }
  .in-feed-ad-content {
    padding: 10px 12px;
    gap: 8px;
  }
  .in-feed-ad-label {
    font-size: 5px;
    padding: 1px 4px;
    top: 4px;
    right: 4px;
    left: auto;
  }
  .in-feed-ad-label i {
    font-size: 4px;
  }
  .in-feed-ad-cta {
    font-size: 11px;
    gap: 4px;
  }
}

/* ============================================================
   ⭐ HOME FEED — Player/Team Cards
   Layout:
     ┌──────────────────────────────────────────┐
     │ [Avatar]  Name              [🏷️ TAG]     │
     │           @username                      │
     │           Role • Location                │
     └──────────────────────────────────────────┘
   - Player: red gaming corner border
   - Team: cyan gaming corner border
   - No "View Profile" text — entire card clickable
   ============================================================ */

.latest-content .feed-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
}

/* ===== PLAYER CARD — red gaming corners ===== */
.latest-content .feed-card-player {
  border: 1px solid rgba(255, 0, 0, 0.35);
}

.latest-content .feed-card-player::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;
}

.latest-content .feed-card-player::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;
}

.latest-content .feed-card-player:hover {
  border-color: rgba(255, 0, 0, 0.6);
}

/* ===== TEAM CARD — cyan gaming corners ===== */
.latest-content .feed-card-team {
  border: 1px solid rgba(0, 204, 255, 0.35);
}

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

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

.latest-content .feed-card-team:hover {
  border-color: rgba(0, 204, 255, 0.6);
}

/* Tag — top-right */
.feed-card .feed-cat-top-right {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 4;
  margin: 0;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}

.feed-card .feed-cat-top-right i {
  font-size: 9px;
}

.feed-card .feed-cat-player {
  color: #ff0000;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.25);
}

.feed-card .feed-cat-team {
  color: #00ccff;
  background: rgba(0, 204, 255, 0.1);
  border: 1px solid rgba(0, 204, 255, 0.25);
}

.feed-card .feed-card-media {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #ff0000, #ff6b00);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-card-team .feed-card-media {
  background: linear-gradient(135deg, #00ccff, #0099cc);
}

.feed-card .feed-card-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0a0a0a;
  background: #111;
}

/* Info — column */
.feed-card .latest-info {
  flex: 1;
  min-width: 0;
  padding: 0;
  padding-right: 90px;
  display: flex;
  flex-direction: column;
}

.feed-card .latest-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* @username — line 2 */
.feed-card .latest-username {
  font-size: 12px;
  color: #666666;
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

/* Location — line 3 */
.feed-card .latest-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
  margin-top: 0;
  margin-bottom: 0;
}

.feed-card .latest-location {
  font-size: 12px;
  color: #888888;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-card .latest-location i {
  color: #ff0000;
  font-size: 11px;
  flex-shrink: 0;
}

.feed-card-team .latest-location i {
  color: #00ccff;
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
  .latest-content .feed-card {
    padding: 14px 16px;
    gap: 12px;
  }
  .feed-card .feed-card-media {
    width: 64px;
    height: 64px;
  }
  .feed-card .latest-title {
    font-size: 15px;
  }
  .feed-card .latest-info {
    padding-right: 70px;
  }
  .feed-card .latest-username {
    font-size: 11px;
  }
  .feed-card .latest-location {
    font-size: 11px;
  }
  .feed-card .feed-cat-top-right {
    top: 10px;
    right: 12px;
    font-size: 9px;
    padding: 2px 8px;
  }
  .feed-card .feed-cat-top-right i {
    font-size: 8px;
  }
  .latest-content .feed-card-player::before,
  .latest-content .feed-card-team::before,
  .latest-content .feed-card-player::after,
  .latest-content .feed-card-team::after {
    width: 18px;
    height: 18px;
  }
}

/* ============================================================
   ⭐ POST CARD — Silver/White gaming corners
   (Only applies to non-feed-card latest-item)
   ============================================================ */

.latest-content .latest-item:not(.feed-card) {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Top-left corner */
.latest-content .latest-item:not(.feed-card)::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 22px;
  height: 22px;
  border-top: 2px solid #cccccc;
  border-left: 2px solid #cccccc;
  border-top-left-radius: 12px;
  pointer-events: none;
  z-index: 3;
}

/* Bottom-right corner */
.latest-content .latest-item:not(.feed-card)::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 22px;
  height: 22px;
  border-bottom: 2px solid #cccccc;
  border-right: 2px solid #cccccc;
  border-bottom-right-radius: 12px;
  pointer-events: none;
  z-index: 3;
}

.latest-content .latest-item:not(.feed-card):hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.latest-content .latest-item:not(.feed-card):hover::before,
.latest-content .latest-item:not(.feed-card):hover::after {
  border-color: #ffffff;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .latest-content .latest-item:not(.feed-card)::before,
  .latest-content .latest-item:not(.feed-card)::after {
    width: 18px;
    height: 18px;
  }
}
/* END OF style.css */

