/* ============================================================
   FirePulse — Update Page Styles (v3)
   News + Blog tabs with skeleton loading
   + See More button
   + Gaming corner borders for cards
   ============================================================ */

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

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  text-align: center;
  padding: 30px 20px 10px;
}
.page-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
  object-fit: cover;
}
.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}
.page-header h1 span { color: #ff0000; }
.page-description {
  color: #888888;
  font-size: 14px;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   TABS
   ============================================================ */
.update-tabs {
  display: flex;
  border-bottom: 1px solid #1a1a1a;
  background: #0a0a0a;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}
.update-tabs .tab-btn {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  color: #888888;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.update-tabs .tab-btn i { font-size: 16px; }
.update-tabs .tab-btn:hover { color: #ffffff; }
.update-tabs .tab-btn.active { color: #ff0000; }
.update-tabs .tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ff0000;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.update-main {
  flex: 1 0 auto;
  padding: 20px 16px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  min-height: 50vh;
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skeleton-card {
  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; } }

/* ============================================================
   ERROR / EMPTY STATES
   ============================================================ */
.update-error, .update-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
  text-align: center;
}
.update-error p, .update-empty p { color: #888888; font-size: 14px; }
.update-empty h3 { font-size: 20px; color: #ffffff; margin: 0; }
.update-error i, .update-empty i {
  font-size: 48px;
  color: #ff0000;
  margin-bottom: 4px;
}
.update-empty i {
  font-size: 64px;
  color: #333333;
}
.btn-retry {
  padding: 10px 24px;
  background: #1a1a1a;
  color: #ffffff;
  border: 1px solid #333333;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-retry:hover { color: #ff0000; border-color: #ff0000; }

/* ============================================================
   CONTENT GRID
   ============================================================ */
.update-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== UPDATE CARD — Gaming corners ===== */
.update-card {
  position: relative;
  background: #0a0a0a;
  border: 1px solid rgba(255, 0, 0, 0.25);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

/* Top-left corner */
.update-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;
}

/* Bottom-right corner */
.update-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;
}

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

.update-card .card-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) {
  .update-card .card-image { height: 0; padding-bottom: 56.25%; }
}
.update-card .card-content {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.update-card .card-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: 8px;
  align-self: flex-start;
}
.update-card .card-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  flex: 1;
}
.update-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.update-card .card-date { font-size: 12px; color: #666666; }
.update-card .card-see-more {
  font-size: 13px;
  color: #ff0000;
  font-weight: 600;
}
.update-card:hover .card-see-more { color: #ffffff; }

/* ============================================================
   SEE MORE BUTTON
   ============================================================ */
.latest-more-wrap {
  text-align: center;
  margin: 32px auto 0;
  padding: 0 16px;
  display: flex;
  justify-content: center;
  width: 100%;
}

#update-see-more-wrap {
  max-width: 100%;
}

.btn-see-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  padding: 14px 36px;
  background: transparent;
  color: #ffffff;
  border: 1px solid #ff0000;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-see-more:hover:not(:disabled) {
  background: #ff0000;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.3);
}

.btn-see-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   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) {
  .update-grid { grid-template-columns: repeat(2, 1fr); }
  .skeleton-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  body { padding-bottom: 56px; }
  .page-header { padding: 20px 16px 10px; }
  .page-logo { width: 60px; height: 60px; }
  .page-header h1 { font-size: 22px; }
  .page-description { font-size: 13px; }
  .update-tabs { max-width: 100%; }
  .update-tabs .tab-btn { font-size: 15px; padding: 12px 16px; }
  .update-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .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; }
  .update-tabs .tab-btn { font-size: 14px; padding: 10px 12px; }
  .update-main { padding: 14px 10px 30px; }
  .update-grid { grid-template-columns: 1fr; gap: 14px; }
  .skeleton-grid { grid-template-columns: 1fr; gap: 14px; }
  .update-card .card-content { padding: 14px 14px 16px; }
  .update-card .card-title { font-size: 14px; }
  .footer-links { gap: 12px; }
  .footer-links a { font-size: 11px; }
  .bottom-nav { height: 50px; padding: 4px 0; }
  .nav-item span { font-size: 8px; }
  .btn-see-more {
    width: 100%;
    min-width: unset;
    padding: 12px 20px;
    font-size: 13px;
  }
  /* Gaming corners smaller on mobile */
  .update-card::before,
  .update-card::after {
    width: 18px;
    height: 18px;
  }
}

/* END OF update.css */