/* ════════════════════════════════════════════════════════════════
   ULTRA-VIBRANT AKATSUKI ROGUE NINJA VISUAL ENGINE — SHINOBI CLASSIC V2
   Master Palette: Deep Velvet Black (#040308), Crimson Blood (#ff003c), Flame Red (#880015), Magatama Gold (#ffd700)
════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800;900&family=Be+Vietnam+Pro:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  --aka-bg-black:      #040308;
  --aka-bg-dark:       #0a0712;
  --aka-neon-red:      #ff003c;
  --aka-crimson-red:   #e11d48;
  --aka-dark-red:      #880015;
  --aka-gold-main:     #ffd700;
  --aka-gold-light:    #ffe88a;
  --aka-silver-light:  #ffffff;
}

/* ══════════════════════════════════════════════════
   GLOBAL BODY & ATMOSPHERIC BACKDROP & SAFETY
══════════════════════════════════════════════════ */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

img {
  max-width: 100% !important;
  height: auto;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background-color: var(--aka-bg-black);
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 0, 60, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 85% 100%, rgba(136, 0, 21, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 80%, rgba(225, 29, 72, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, #040308 0%, #0d0818 50%, #040308 100%);
  background-attachment: fixed;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Dynamic Crimson Top Bar Flow */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #880015, #ff003c, #ffd700, #ff003c, #880015);
  background-size: 200% auto;
  animation: akaTopBarFlow 3s linear infinite;
  z-index: 10000;
  box-shadow: 0 0 18px rgba(255, 0, 60, 0.95);
  pointer-events: none;
}

@keyframes akaTopBarFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ══════════════════════════════════════════════════
   HEADER & NAVBAR
══════════════════════════════════════════════════ */
.melior #page-header,
.content-header,
header.navbar,
.navbar,
#page-header {
  background: rgba(4, 3, 8, 0.96) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1.5px solid rgba(255, 0, 60, 0.5) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 0, 60, 0.35) !important;
}

.melior #page-container.page-header-fixed #page-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1031;
}

.melior #page-container.page-header-fixed #main-container {
  padding-top: 84px;
}

.navbar-nav .nav-link,
.content-header a,
#page-header a {
  color: #ffe88a !important;
  font-family: 'Orbitron', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.5px !important;
  transition: all 0.25s ease !important;
}

.navbar-nav .nav-link:hover,
.content-header a:hover,
#page-header a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 16px rgba(255, 0, 60, 0.95), 0 0 25px rgba(255, 215, 0, 0.7) !important;
}

.navbar-brand,
.navbar-brand span,
.header-logo {
  font-family: 'Orbitron', sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: 2px !important;
  background: linear-gradient(90deg, #ff003c, #ffd700, #ff003c) !important;
  background-size: 220% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: akaShimmer 4s linear infinite;
}

/* ══════════════════════════════════════════════════
   EMBEDDED NEWS & EVENTS TABS (INSIDE SLIDER CARD)
══════════════════════════════════════════════════ */
.embedded-news-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1.5px solid rgba(255, 0, 60, 0.35);
}

.embedded-news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.embedded-news-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 10px rgba(255, 0, 60, 0.8);
}

.embedded-news-tabs {
  display: flex;
  gap: 6px;
}

.emb-tab-btn {
  background: rgba(136, 0, 21, 0.5);
  border: 1px solid rgba(255, 0, 60, 0.4);
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.emb-tab-btn.active, .emb-tab-btn:hover {
  background: linear-gradient(135deg, #880015, #ff003c);
  color: #ffd700;
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255,0,60,0.8);
}

.embedded-news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.embedded-news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14, 10, 24, 0.95) !important;
  border: 1px solid rgba(255, 0, 60, 0.3) !important;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.embedded-news-item:hover {
  border-color: #ffd700 !important;
  background: rgba(136, 0, 21, 0.45) !important;
  transform: translateX(6px);
  box-shadow: 0 0 16px rgba(255, 0, 60, 0.6);
}

.embedded-news-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.news-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
}

.badge-hot { background: #ff003c; box-shadow: 0 0 8px #ff003c; }
.badge-new { background: #00e676; box-shadow: 0 0 8px #00e676; color: #000; }
.badge-gift { background: #ffd700; color: #000; box-shadow: 0 0 8px #ffd700; }

.embedded-news-item-title {
  font-size: 13px;
  color: #ffffff !important;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.embedded-news-date {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  color: #ffd700 !important;
  flex-shrink: 0;
  margin-left: 8px;
}

/* ══════════════════════════════════════════════════
   SECTION HEADINGS
══════════════════════════════════════════════════ */
.aka-section-heading {
  text-align: center;
  margin: 45px 0 25px;
}

.aka-section-heading h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 2px;
  text-shadow: 0 0 16px rgba(255, 0, 60, 0.85);
  margin-bottom: 6px;
}

.aka-section-heading p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ══════════════════════════════════════════════════
   AKATSUKI LEADERBOARD / 3D RANK BADGES
══════════════════════════════════════════════════ */
.aka-leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

.rank-card {
  background: linear-gradient(150deg, rgba(14, 10, 24, 0.95), rgba(6, 4, 12, 0.98));
  border: 2px solid rgba(255,0,60,0.4);
  border-radius: 18px;
  padding: 26px 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.rank-card:hover {
  transform: translateY(-8px);
  border-color: #ffd700;
  box-shadow: 0 0 40px rgba(255,0,60,0.6);
}

.rank-crown {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: #000;
  z-index: 10;
}

.crown-gold { background: linear-gradient(135deg, #ffe88a, #ffd700); box-shadow: 0 0 20px #ffd700; }
.crown-silver { background: linear-gradient(135deg, #ffffff, #b0bec5); box-shadow: 0 0 20px #ffffff; }
.crown-bronze { background: linear-gradient(135deg, #ff8a65, #d84315); box-shadow: 0 0 20px #ff8a65; }

/* 3D METALLIC RANK ICON BADGES */
.rank-icon-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 10px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: transform 0.3s ease;
}

.icon-gold {
  background: radial-gradient(circle at 30% 30%, #ffd700, #880015 80%);
  border: 2px solid #ffd700;
  color: #ffd700;
  box-shadow: 0 0 25px #ffd700, inset 0 0 15px rgba(255,215,0,0.5);
  font-size: 38px;
}

.icon-silver {
  background: radial-gradient(circle at 30% 30%, #ffffff, #263238 80%);
  border: 2px solid #ffffff;
  color: #ffffff;
  box-shadow: 0 0 20px #ffffff, inset 0 0 12px rgba(255,255,255,0.4);
}

.icon-bronze {
  background: radial-gradient(circle at 30% 30%, #ff8a65, #3e2723 80%);
  border: 2px solid #ff8a65;
  color: #ff8a65;
  box-shadow: 0 0 20px #ff8a65, inset 0 0 12px rgba(255,138,101,0.4);
}

.rank-card:hover .rank-icon-badge {
  transform: scale(1.12) rotate(6deg);
}

.rank-player-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 4px;
}

.rank-player-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.rank-player-power {
  margin-top: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #ff003c;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════
   GAME FEATURE HIGHLIGHTS GRID
══════════════════════════════════════════════════ */
.aka-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 45px;
}

.feature-card {
  background: linear-gradient(150deg, rgba(14, 10, 24, 0.95), rgba(6, 4, 12, 0.98));
  border: 1.5px solid rgba(255, 0, 60, 0.4);
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0,0,0,0.85);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: #ffd700;
  box-shadow: 0 0 30px rgba(255, 0, 60, 0.6);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(136, 0, 21, 0.8), rgba(6, 4, 12, 0.9));
  border: 1.5px solid #ff003c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #ffd700;
  margin: 0 auto 14px;
  box-shadow: 0 0 16px rgba(255, 0, 60, 0.6);
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.12) rotate(6deg);
  color: #ffffff;
  box-shadow: 0 0 25px #ff003c;
}

.feature-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════════════════════════
   AKATSUKI 10 MEMBER ROSTER GALLERY
══════════════════════════════════════════════════ */
.aka-roster-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 50px;
}

.roster-card {
  background: linear-gradient(145deg, rgba(14, 10, 24, 0.95), rgba(6, 4, 12, 0.98));
  border: 1.5px solid rgba(255, 0, 60, 0.4);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 18px rgba(0,0,0,0.85);
}

.roster-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: #ffd700;
  box-shadow: 0 0 30px rgba(255, 0, 60, 0.7);
}

.roster-ring-tag {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 900;
  color: #ffd700;
  background: linear-gradient(135deg, #880015, #ff003c);
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid #ffd700;
  box-shadow: 0 0 10px rgba(255, 0, 60, 0.8);
  margin-bottom: 8px;
}

.roster-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 0 8px rgba(255, 0, 60, 0.8);
}

.roster-title {
  font-size: 11px;
  color: #ffd700;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════
   ⛩️ 3D AKATSUKI ALTAR SHRINE MASTER STYLING
══════════════════════════════════════════════════ */
.aka-altar-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 20px 40px;
  background: #040308 url('/images/akatsuki_altar.jpg') center top / contain no-repeat;
  border-radius: 24px;
  border: 2px solid rgba(255, 0, 60, 0.6);
  box-shadow: 0 0 70px rgba(0,0,0,0.98), 0 0 45px rgba(255, 0, 60, 0.45);
  overflow: hidden;
}

.aka-altar-header {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 7, 18, 0.92);
  border: 1.5px solid rgba(255, 0, 60, 0.5);
  border-radius: 16px;
  padding: 10px 20px;
  box-shadow: 0 0 25px rgba(0,0,0,0.9), inset 0 0 15px rgba(255,0,60,0.2);
}

.aka-altar-header-left { display: flex; align-items: center; gap: 10px; }
.aka-header-title { font-family: 'Orbitron', sans-serif; font-size: 15px; font-weight: 900; color: #ffd700; letter-spacing: 1.5px; text-shadow: 0 0 14px rgba(255,0,60,0.9); }
.aka-header-badge { font-family: 'Orbitron', sans-serif; font-size: 10px; font-weight: 800; color: #fff; background: linear-gradient(90deg, #880015, #ff003c); padding: 3px 10px; border-radius: 12px; box-shadow: 0 0 10px #ff003c; }

.aka-altar-header-right { text-align: right; }
.aka-bank-label { display: block; font-family: 'Orbitron', sans-serif; font-size: 9px; font-weight: 800; color: rgba(255,215,0,0.7); letter-spacing: 2px; }
.aka-bank-value { font-family: 'Orbitron', sans-serif; font-size: 16px; font-weight: 900; color: #ffd700; text-shadow: 0 0 14px rgba(255,0,60,0.9); }

.aka-altar-attendance-stage { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 140px; }
.altar-pedestal { display: flex; flex-direction: column; align-items: center; transition: transform 0.3s ease; }
.altar-pedestal:hover { transform: translateY(-8px); }

.pedestal-card { background: rgba(14, 10, 24, 0.92); border: 1.5px solid rgba(255,0,60,0.5); border-radius: 16px; padding: 14px 12px; text-align: center; width: 100%; box-shadow: 0 0 25px rgba(0,0,0,0.9), inset 0 0 15px rgba(255,0,60,0.25); backdrop-filter: blur(10px); }
.pedestal-img { font-size: 32px; margin-bottom: 8px; filter: drop-shadow(0 0 14px rgba(255,215,0,0.8)); }
.pedestal-rewards { font-size: 11px; color: rgba(255,255,255,0.85); line-height: 1.6; text-align: left; }

.pedestal-btn { margin-top: 10px; font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 900; letter-spacing: 1.5px; color: #fff; background: linear-gradient(135deg, #1f1424, #361726); border: 1.5px solid rgba(255,0,60,0.6); padding: 6px 20px; border-radius: 20px; cursor: pointer; box-shadow: 0 0 15px rgba(0,0,0,0.8); transition: all 0.25s; }
.pedestal-btn.active, .pedestal-btn:hover { background: linear-gradient(135deg, #880015, #ff003c); color: #ffd700; border-color: #ffd700; box-shadow: 0 0 20px rgba(255,0,60,0.9); }

.aka-sharingan-seal-wrap { position: relative; z-index: 5; margin: 40px auto 20px; text-align: center; max-width: 420px; }
.seal-form-row { display: flex; gap: 10px; justify-content: center; }
.aka-seal-select { background: rgba(14, 10, 24, 0.95); border: 1.5px solid rgba(255,0,60,0.6); color: #ffd700; font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 700; padding: 10px 16px; border-radius: 10px; outline: none; }
.aka-seal-btn { background: linear-gradient(135deg, #880015, #ff003c, #880015); border: 1.5px solid #ffd700; color: #ffd700; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 12px; letter-spacing: 1px; padding: 10px 20px; border-radius: 10px; cursor: pointer; box-shadow: 0 0 25px rgba(255,0,60,0.85); transition: all 0.25s; }
.aka-seal-btn:hover { transform: scale(1.05); color: #fff; box-shadow: 0 0 35px rgba(255,0,60,1); }
.seal-status-text { margin-top: 8px; font-size: 12px; color: #4ade80; font-weight: 700; text-shadow: 0 0 10px rgba(74,222,128,0.6); }

.aka-ninja-scroll-banner { position: relative; z-index: 5; margin: 30px auto; max-width: 460px; background: linear-gradient(135deg, #ecd6ad, #d4b580, #ecd6ad); border: 2px solid #8b5a2b; border-radius: 12px; padding: 16px; text-align: center; box-shadow: 0 0 30px rgba(0,0,0,0.9), inset 0 0 15px rgba(139,90,43,0.4); color: #3e2305; }
.scroll-title { font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 900; color: #8b0000; letter-spacing: 2px; }
.scroll-heading { font-family: 'Orbitron', sans-serif; font-size: 20px; font-weight: 900; color: #2b1500; letter-spacing: 2px; margin: 4px 0; }
.scroll-sub { font-size: 11px; font-weight: 700; color: #5c3a10; }

.aka-altar-menu-grid { position: relative; z-index: 5; margin-top: 30px; text-align: center; }
.altar-menu-heading { font-family: 'Orbitron', sans-serif; font-size: 22px; font-weight: 900; color: #ffd700; letter-spacing: 4px; text-shadow: 0 0 20px rgba(255,0,60,0.9); margin-bottom: 24px; }
.altar-menu-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.altar-menu-node { background: linear-gradient(145deg, rgba(14, 10, 24, 0.95), rgba(6, 4, 12, 0.98)); border: 1.5px solid rgba(255, 0, 60, 0.45); border-radius: 16px; padding: 18px 12px; text-align: center; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 0 20px rgba(0,0,0,0.85); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.altar-menu-node:hover { transform: translateY(-6px) scale(1.04); border-color: #ffd700; box-shadow: 0 0 35px rgba(255,0,60,0.8), 0 0 20px rgba(255,215,0,0.5); }

.node-icon { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, rgba(136,0,21,0.8), rgba(6,4,12,0.9)); border: 1.5px solid #ff003c; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #ffd700; box-shadow: 0 0 16px rgba(255,0,60,0.6); transition: transform 0.3s; }
.altar-menu-node:hover .node-icon { transform: scale(1.12) rotate(6deg); color: #fff; box-shadow: 0 0 25px #ff003c; }

.node-madara-dome { border-color: #ffd700; box-shadow: 0 0 25px rgba(255,0,60,0.9); }
.node-madara-dome img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.altar-menu-node span { font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 800; color: #ffffff; text-shadow: 0 0 10px rgba(255,0,60,0.8); }

@media (max-width: 991px) {
  .aka-leaderboard-grid { grid-template-columns: 1fr; }
  .aka-features-grid { grid-template-columns: repeat(2, 1fr); }
  .aka-roster-grid { grid-template-columns: repeat(3, 1fr); }
  .aka-altar-attendance-stage { grid-template-columns: 1fr; margin-top: 40px; }
  .altar-menu-items { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .aka-features-grid { grid-template-columns: 1fr; }
  .aka-roster-grid { grid-template-columns: repeat(2, 1fr); }
  .altar-menu-items { grid-template-columns: 1fr; }
  .seal-form-row { flex-direction: column; }
}
