/* ═══════════════════════════════════════════════════════════════════════════
   SERVER DETAIL PAGE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Page Hero */
.page-hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-card);
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.8) 0%,
    rgba(10, 10, 10, 0.9) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 10;
}

.page-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* Server Layout */
.server-info {
  padding: var(--space-2xl) 0;
}

.server-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--space-xl);
  align-items: start;
}

/* Main Content */
.server-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.info-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.info-card h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.info-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.info-card p:last-child {
  margin-bottom: 0;
}

/* Rates Grid */
.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-md);
}

.rate-item {
  text-align: center;
  padding: var(--space-md);
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-md);
}

.rate-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.rate-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Settings List */
.settings-list {
  list-style: none;
  columns: 2;
  column-gap: var(--space-xl);
}

.settings-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  break-inside: avoid;
}

.settings-list li strong {
  color: var(--text-primary);
}

/* Mods List */
.mods-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.mod-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mod-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mod-name {
  color: var(--text-primary);
}

.mod-badge {
  padding: 0.25rem 0.5rem;
  background: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
}

/* Badge Color Variants - add these classes to mod-badge */
.mod-badge-blue {
  background: #3b82f6;
}

.mod-badge-green {
  background: #10b981;
}

.mod-badge-purple {
  background: #8b5cf6;
}

.mod-badge-orange {
  background: #f97316;
}

.mod-badge-yellow {
  background: #eab308;
  color: #1a1a1a;
}

/* Sidebar */
.server-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-card .btn {
  width: 100%;
  margin-bottom: var(--space-sm);
}

.sidebar-card .btn:last-child {
  margin-bottom: 0;
}

/* Maps List */
.maps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.map-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

.map-name {
  font-size: 0.9rem;
}

.map-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.map-status.online {
  background: rgba(5, 150, 105, 0.2);
  color: #10b981;
}

.map-status.offline {
  background: rgba(220, 38, 38, 0.2);
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAP CARDS - Large image cards for available maps
   ═══════════════════════════════════════════════════════════════════════════ */
.maps-section {
  margin-top: var(--space-xl);
}

.maps-section h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.map-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
}

.map-card:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.map-card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.map-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.map-card:hover .map-card-image img {
  transform: scale(1.1);
}

/* Placeholder for missing images */
.map-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  padding: var(--space-md);
}

.map-card-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  opacity: 0.5;
}

.map-card-placeholder span {
  opacity: 0.7;
  font-size: 0.8rem;
}

/* Gradient overlay on image */
.map-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
  pointer-events: none;
}

.map-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  z-index: 10;
}

.map-card-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
}

.map-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.map-card-status.online {
  color: #10b981;
}

.map-card-status.online::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-status 2s infinite;
}

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

.map-card-status.offline {
  color: var(--primary);
}

.map-card-status.offline::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* Edit hint overlay */
.map-card-edit-hint {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.map-card:hover .map-card-edit-hint {
  opacity: 1;
}

/* Stats List */
.stats-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .server-layout {
    grid-template-columns: 1fr;
  }
  
  .server-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .sidebar-card {
    flex: 1;
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 140px 0 60px;
  }
  
  .settings-list {
    columns: 1;
  }
  
  .server-sidebar {
    flex-direction: column;
  }
  
  .sidebar-card {
    min-width: 100%;
  }
}
