/* ==========================================================================
   SNIPER NETWORK - MINEMEN CLUB AESTHETIC & MODERN COMPETITIVE THEME
   Inspired directly by https://minemen.club/
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Nunito:wght@700;800;900&display=swap');

:root {
  --white: #FFFFFF;
  --black: #000000;
  --text: #767D88;
  --main: #E911E5;
  --main-glow: rgba(233, 17, 229, 0.35);
  
  --header-top: #111216;
  --section-bg: #14161B;
  --card-bg: #1A1D24;
  --news-post-bg: #272A33;
  --post-info-bg: #373B47;
  --table-body: rgba(39, 42, 51, 0.4);
  
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Nunito', 'Inter', sans-serif;
  
  --color-gold: #F59E0B;
  --color-blue: #38BDF8;
  --color-green: #22C55E;
  --color-red: #EF4444;
}

/* Global Reset & Typography */
body {
  font-family: var(--font-base) !important;
  background-color: #111216 !important;
  color: #ECEEF2 !important;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Revert overly aggressive pixel font on ranked ladder */
.mc-panel, .mc-list, .mc-rank-table, .mc-server-entry {
  font-family: var(--font-base) !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #181A20 !important;
}

.mc-rank-table th, .mc-rank-table td {
  font-family: var(--font-base) !important;
}

/* ==========================================================================
   MINEMEN CLUB HOMEPAGE HERO (TOP INTRODUCTION)
   ========================================================================== */

.top-introduction {
  background: linear-gradient(180deg, rgba(17, 18, 22, 0.8) 0%, rgba(20, 22, 27, 0.95) 100%),
              radial-gradient(circle at 80% 30%, rgba(233, 17, 229, 0.12) 0%, transparent 60%);
  padding: 70px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.introduction-section {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.left-welcome {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.welcome-text {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}

.big-play {
  background: #1A1D24;
  border: 1px solid rgba(233, 17, 229, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(233, 17, 229, 0.1);
  border-radius: 12px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}

.play-join {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}

.play-sub-ip {
  font-family: monospace;
  font-size: 15px;
  color: #E2E8F0;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.copy-ip-btn {
  background: rgba(233, 17, 229, 0.2) !important;
  border: 1px solid var(--main) !important;
  color: var(--white) !important;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease-in-out;
}

.copy-ip-btn:hover {
  background: var(--main) !important;
  box-shadow: 0 0 20px var(--main-glow);
  transform: translateY(-1px);
}

.copy-ip-btn.is-copied {
  background: #22C55E !important;
  border-color: #22C55E !important;
}

/* ==========================================================================
   NEWS & ANNOUNCEMENTS SECTION
   ========================================================================== */

.news-section {
  background-color: var(--section-bg);
  padding: 50px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-section-inner .container-fluid {
  max-width: 1200px;
  margin: 0 auto;
}

.news-menu {
  margin-bottom: 24px;
}

.news-menu ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 16px;
}

.news-menu a {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text);
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
}

.news-menu a.active, .news-menu a:hover {
  color: var(--white);
  background: rgba(233, 17, 229, 0.2);
  border: 1px solid rgba(233, 17, 229, 0.4);
}

.top-posts {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

@media (max-width: 900px) {
  .top-posts {
    grid-template-columns: 1fr;
  }
}

.news-post-information {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-post-info-top span {
  color: var(--main);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.news-post-info-title span {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
}

.news-post-info-desc span {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.news-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.news-post {
  background: var(--news-post-bg);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(233, 17, 229, 0.3);
}

.post-photo {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.post-photo-1 {
  background: linear-gradient(135deg, #1e1b4b, #312e81), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=600&q=80') center/cover;
}

.post-photo-2 {
  background: linear-gradient(135deg, #831843, #be185d), url('https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=600&q=80') center/cover;
}

.post-photo-3 {
  background: linear-gradient(135deg, #064e3b, #047857), url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=600&q=80') center/cover;
}

.post-top-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--post-info-bg);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-icon img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.author-name span {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.post-date span {
  font-size: 12px;
  color: #94A3B8;
}

.news-title {
  padding: 12px 16px 6px;
}

.news-title span {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  transition: color 0.2s;
}

.news-post:hover .news-title span {
  color: var(--main);
}

.news-description {
  padding: 0 16px 16px;
  flex: 1;
}

.news-description span {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.post-topic span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--main);
  background: rgba(233, 17, 229, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
}

.post-read-more span {
  color: var(--text);
  letter-spacing: 2px;
  font-size: 12px;
}

/* ==========================================================================
   TOP ELO / LEADERBOARDS SECTION (Minemen #lbs style)
   ========================================================================== */

.leaderboards-section {
  background-color: #111216;
  padding: 60px 24px;
}

.leaderboards-section-inner .container-fluid {
  max-width: 1200px;
  margin: 0 auto;
}

.lbs-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
}

@media (max-width: 960px) {
  .lbs-layout {
    grid-template-columns: 1fr;
  }
}

.leaderboards-title span {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  display: inline-block;
  margin-bottom: 24px;
}

/* Top 3 Podium */
.lbs-top-3 {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.lbs-p {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.2s;
}

.lbs-p:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 17, 229, 0.4);
}

.lbs-p-1 {
  background: linear-gradient(180deg, #24222E 0%, #1A1D24 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding-bottom: 28px;
  transform: translateY(-8px);
}

.lbs-p-1:hover {
  transform: translateY(-12px);
}

.player-skin {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.player-skin img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #0D0E12;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.placement-num {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #64748B;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1A1D24;
}

.placement-num.num-1 {
  background: var(--color-gold);
  color: #000;
}

.player-name span {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  display: block;
}

.player-elo span {
  font-size: 14px;
  font-weight: 700;
  color: var(--main);
  margin-top: 4px;
  display: block;
}

/* FL Table */
.table-wrapper {
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 20px;
}

.fl-table {
  width: 100%;
  border-collapse: collapse;
}

.fl-table th {
  background: rgba(0, 0, 0, 0.25);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  text-align: left;
}

.fl-table th:last-child {
  text-align: right;
}

.fl-table td {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

.fl-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.player-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--white);
}

.player-link:hover {
  color: var(--main);
}

.table-avatar {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.elo-val {
  text-align: right;
  font-weight: 700;
  color: var(--color-gold);
}

.btn-see-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
  border-radius: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-see-more:hover {
  background: rgba(233, 17, 229, 0.2);
  border-color: var(--main);
  color: var(--white);
}

/* Side Column Cards */
.player-lbs-card {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.side-card-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--main);
  background: rgba(233, 17, 229, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.side-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 8px;
}

.side-card-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 16px;
}

.side-card-skin img {
  height: 180px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
}

.side-card-btn {
  background: var(--main);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 4px 15px var(--main-glow);
}

.side-card-btn:hover {
  background: #ff27fb;
}

.discord-side-card {
  background: linear-gradient(135deg, #1e1b4b, #2e2a72);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: var(--white);
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.discord-icon {
  font-size: 36px;
  color: #5865F2;
  margin-bottom: 10px;
}

.discord-side-card h4 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}

.discord-side-card p {
  font-size: 13px;
  color: #CBD5E1;
  margin: 0 0 16px;
}

.discord-btn {
  background: #5865F2;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  display: block;
}

.discord-btn:hover {
  background: #4752c4;
}

.mmc-home {
  width: 100%;
  margin: -1.5rem -1rem;
}
@media (min-width: 768px) {
  .mmc-home {
    margin: -2rem -1.5rem;
  }
}
