/* ============================================
   sections.css — Server Info, Store, Vote,
                  Status, Guide
   ============================================ */

/* ==========================================
   SERVER INFO — Game Modes
   ========================================== */
.server-info { background: var(--night-2); }

.gamemodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gamemode-card {
  background: var(--night-3);
  border: 2px solid var(--border);
  padding: 2rem 1.5rem;
  position: relative;
  transition: var(--transition);
  cursor: default;
  overflow: hidden;
}

.gamemode-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 70%, rgba(90,175,58,0.05) 100%);
  transition: var(--transition);
}

.gamemode-card:hover {
  border-color: var(--green);
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 var(--green-dark);
}

.active-card { border-color: var(--green-dark); }

.card-icon  { font-size: 2.5rem; margin-bottom: 1rem; }

.gamemode-card h3 {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--green-light);
  margin-bottom: 0.75rem;
}

.gamemode-card p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.feature-list { display: flex; flex-direction: column; gap: 0.3rem; }
.feature-list li { font-size: 1rem; color: var(--text-main); }

.card-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  padding: 0.3rem 0.5rem;
  box-shadow: var(--pixel-shadow);
}

.badge-green { background: var(--green-dark); color: #fff; border: 1px solid var(--green); }
.badge-blue  { background: #0a4a8a; color: var(--diamond); border: 1px solid var(--diamond); }
.badge-red   { background: #5a1010; color: var(--red);     border: 1px solid var(--red); }

/* ==========================================
   STORE — Ranks
   ========================================== */
.store { background: var(--night); overflow: hidden; }

.store-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(255,255,255,0.02) 32px),
    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(255,255,255,0.02) 32px);
  pointer-events: none;
}

.ranks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.rank-card {
  background: var(--night-2);
  border: 2px solid var(--border);
  padding: 2rem 1.5rem;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

/* Glow blobs */
.rank-glow {
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 80px;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
}

.rank-iron    .rank-glow { background: rgba(150,150,150,0.3); }
.rank-gold    .rank-glow { background: rgba(245,200,66,0.3); }
.rank-diamond .rank-glow { background: rgba(77,228,255,0.3); }

/* Hover states */
.rank-iron:hover    { border-color: var(--stone);   transform: translate(-4px,-4px); box-shadow: 4px 4px 0 var(--stone); }
.rank-gold:hover    { border-color: var(--gold);     transform: translate(-4px,-4px); box-shadow: 4px 4px 0 var(--gold-dark); }
.rank-diamond:hover { border-color: var(--diamond);  transform: translate(-4px,-4px); box-shadow: 4px 4px 0 var(--diamond-dark); }

/* Featured card */
.featured-rank {
  border-color: var(--gold) !important;
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(245,200,66,0.15);
}

.rank-featured-tag {
  position: absolute;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  background: var(--gold);
  color: #000;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
}

.rank-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.rank-name {
  font-family: var(--font-pixel);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.rank-iron    .rank-name { color: var(--stone); }
.rank-gold    .rank-name { color: var(--gold); }
.rank-diamond .rank-name { color: var(--diamond); }

.rank-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.price-amount   { font-family: var(--font-pixel); font-size: 2rem; color: var(--text-main); }
.price-currency { font-size: 1rem; color: var(--text-muted); }

.rank-perks { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.5rem; }
.rank-perks li { font-size: 1rem; color: var(--text-main); }

/* Rank buttons */
.btn-rank {
  display: block;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 0.75rem;
  border: 2px solid;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--pixel-shadow);
}

.btn-rank:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(0,0,0,0.5); }

.btn-rank-iron    { background: var(--stone);        border-color: #aaa;          color: #fff; }
.btn-rank-gold    { background: var(--gold-dark);    border-color: var(--gold);   color: #000; }
.btn-rank-diamond { background: var(--diamond-dark); border-color: var(--diamond); color: #000; }

.store-disclaimer {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 2.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--night-2);
}

/* ==========================================
   VOTE
   ========================================== */
.vote { background: var(--night-2); }

.vote-rewards-banner {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.reward-item {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  background: rgba(90,175,58,0.1);
  border: 2px solid var(--green-dark);
  padding: 0.5rem 1rem;
  color: var(--green-light);
  box-shadow: var(--pixel-shadow);
  animation: reward-pulse 2s ease-in-out infinite;
}

.reward-item:nth-child(2) { animation-delay: 0.5s; }
.reward-item:nth-child(3) { animation-delay: 1.0s; }
.reward-item:nth-child(4) { animation-delay: 1.5s; }

@keyframes reward-pulse {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

.vote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.vote-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--night-3);
  border: 2px solid var(--border);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.vote-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--green);
  transform: scaleY(0);
  transition: var(--transition);
}

.vote-card:hover {
  border-color: var(--green);
  transform: translate(-4px,-4px);
  box-shadow: 4px 4px 0 var(--green-dark);
}

.vote-card:hover::after { transform: scaleY(1); }

.vote-number {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: var(--green-dark);
  min-width: 40px;
}

.vote-info   { flex: 1; }
.vote-site   { display: block; font-family: var(--font-pixel); font-size: 0.55rem; color: var(--text-main); margin-bottom: 0.25rem; }
.vote-reward { display: block; font-size: 1rem; color: var(--green-light); }

.vote-arrow { font-family: var(--font-pixel); font-size: 1rem; color: var(--green); transition: var(--transition); }
.vote-card:hover .vote-arrow { transform: translateX(4px); }

.vote-tip {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gold);
  margin-top: 2rem;
  padding: 0.75rem;
  border: 1px dashed var(--gold-dark);
  background: rgba(245,200,66,0.05);
}

/* ==========================================
   SERVER STATUS
   ========================================== */
.status { background: var(--night); }

.status-panel {
  background: var(--night-2);
  border: 2px solid var(--border);
  padding: 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.status-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
}

.status-dot {
  width: 16px;
  height: 16px;
  background: var(--stone);
  image-rendering: pixelated;
  animation: dot-pulse 2s ease-in-out infinite;
}

.status-dot.online  { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-dot.offline { background: var(--red); }

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.2); }
}

.status-ip-display { font-family: var(--font-pixel); font-size: 0.5rem; color: var(--text-muted); }
.status-ip-value   { color: var(--green-light); margin-left: 0.5rem; }

.status-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-block {
  text-align: center;
  background: var(--night-3);
  border: 2px solid var(--border);
  padding: 1.25rem 1rem;
  transition: var(--transition);
  min-width: 0; /* permite shrink */
}

.stat-block:hover { border-color: var(--green-dark); }

.stat-icon  { font-size: 1.5rem; margin-bottom: 0.4rem; }
.stat-value {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--green-light);
  margin-bottom: 0.3rem;
  white-space: nowrap;      /* nu rupe pe rânduri */
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); }

.status-players-list {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--text-muted);
  min-height: 24px;
  margin-bottom: 1rem;
  word-break: break-all;
}

.btn-refresh {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  background: var(--night-3);
  border: 2px solid var(--green-dark);
  color: var(--green-light);
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--pixel-shadow);
}

.btn-refresh:hover { background: var(--green-dark); transform: translate(-2px,-2px); }
.btn-refresh.spinning #refreshIcon { display: inline-block; animation: spin 1s linear infinite; }

.status-last-check { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.75rem; }

/* ==========================================
   GUIDE — How to Connect
   ========================================== */
.guide { background: var(--night-2); }

.guide-steps {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-card {
  width: 100%;
  background: var(--night-3);
  border: 2px solid var(--border);
  padding: 1.75rem;
  display: flex;
  gap: 1.5rem;
  position: relative;
  transition: var(--transition);
  opacity: 0;
  transform: translateX(-20px);
}

.step-card.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.step-card:hover { border-color: var(--green-dark); }

.step-num {
  font-family: var(--font-pixel);
  font-size: 2rem;
  color: var(--green-dark);
  min-width: 60px;
  line-height: 1;
}

.step-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.step-content h3 {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--green-light);
  margin-bottom: 0.5rem;
}

.step-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 0.5rem; }

.step-tip {
  font-size: 1rem;
  color: var(--gold);
  background: rgba(245,200,66,0.07);
  border-left: 3px solid var(--gold-dark);
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

.step-tip a { color: var(--gold); text-decoration: underline; }

.ip-copy-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--night);
  border: 2px solid var(--green-dark);
  padding: 0.4rem 0.75rem;
  margin: 0.5rem 0;
}

.ip-copy-box code { font-family: var(--font-pixel); font-size: 0.55rem; color: var(--green-light); }

.mini-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}
.mini-copy-btn:hover { transform: scale(1.2); }

.step-arrow {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: var(--green-dark);
  margin: 0.5rem 0;
  animation: arrow-bounce 1s ease-in-out infinite;
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

/* Help */
.guide-help       { text-align: center; margin-top: 3rem; }
.guide-help h3    { font-family: var(--font-pixel); font-size: 0.65rem; margin-bottom: 1rem; color: var(--text-muted); }
.help-options     { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.help-btn {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  padding: 0.6rem 1rem;
  border: 2px solid var(--border);
  background: var(--night-3);
  color: var(--text-muted);
  transition: var(--transition);
  box-shadow: var(--pixel-shadow);
}

.help-btn:hover {
  border-color: var(--green-dark);
  color: var(--green-light);
  transform: translate(-2px,-2px);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
  .gamemodes-grid { grid-template-columns: 1fr; }
  .ranks-grid     { grid-template-columns: 1fr; }
  .featured-rank  { transform: scale(1); }
  .status-stats   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .vote-grid   { grid-template-columns: 1fr; }
  .step-card   { flex-direction: column; gap: 0.75rem; }
  .step-num    { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .section-title { font-size: 1.1rem; }
  .status-stats  { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================
   COUNTDOWN EVENT
   ========================================== */
.countdown-section { background: var(--night-3); overflow: hidden; position: relative; }

.countdown-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,200,66,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.countdown-badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  background: rgba(245,200,66,0.15);
  border: 2px solid var(--gold-dark);
  color: var(--gold);
  padding: 0.4rem 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  box-shadow: var(--pixel-shadow);
  animation: reward-pulse 2s ease-in-out infinite;
}

.countdown-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.countdown-box {
  text-align: center;
  background: var(--night-2);
  border: 2px solid var(--gold-dark);
  padding: 1.5rem 2rem;
  min-width: 100px;
  position: relative;
  box-shadow: var(--pixel-shadow), 0 0 30px rgba(245,200,66,0.06);
  transition: var(--transition);
}

.countdown-box:hover {
  border-color: var(--gold);
  transform: translate(-2px,-2px);
  box-shadow: 4px 4px 0 var(--gold-dark), 0 0 30px rgba(245,200,66,0.12);
}

.cd-number {
  font-family: var(--font-pixel);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 0 var(--gold-dark);
  transition: color 0.3s ease;
}

.cd-label {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.countdown-sep {
  font-family: var(--font-pixel);
  font-size: 2rem;
  color: var(--gold-dark);
  animation: blink 1s step-end infinite;
  padding-bottom: 1.2rem;
}

.countdown-date-display {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.countdown-date-display strong { color: var(--gold); }

/* ==========================================
   DISCORD WIDGET
   ========================================== */
.discord-section { background: var(--night-2); }

.discord-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(88,101,242,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.discord-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.discord-info h3 {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: #7289da;
  margin-bottom: 1rem;
}

.discord-info p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.discord-perks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.discord-perks li {
  font-size: 1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  background: #5865f2;
  border: 2px solid #4752c4;
  color: #fff;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--pixel-shadow);
  text-decoration: none;
}

.btn-discord:hover {
  background: #4752c4;
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
}

.discord-widget-wrap {
  background: var(--night-3);
  border: 2px solid rgba(88,101,242,0.3);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--pixel-shadow);
}

.discord-widget-wrap iframe {
  display: block;
  width: 100%;
  border: none;
  min-height: 300px;
}

/* placeholder când nu e configurat Discord ID */
.discord-placeholder {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

.discord-placeholder .ph-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.discord-placeholder p {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  line-height: 2;
}

.discord-placeholder code {
  color: var(--green-light);
  background: var(--night-2);
  padding: 0.2rem 0.5rem;
  font-size: 0.55rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .discord-layout  { grid-template-columns: 1fr; }
  .countdown-box   { min-width: 80px; padding: 1rem 1.5rem; }
  .cd-number       { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .countdown-grid { gap: 0.5rem; }
  .countdown-box  { min-width: 65px; padding: 0.75rem 1rem; }
  .cd-number      { font-size: 1.4rem; }
  .countdown-sep  { font-size: 1.4rem; }
}
