/**
 * Bans Page Styles
 * Modern, clean design with smooth animations
 */

/* ============================================
   PAGE LAYOUT
   ============================================ */
.bans-page {
  padding: 2rem 0;
  min-height: calc(100vh - 160px);
}

/* ============================================
   HEADER
   ============================================ */
.bans-header {
  text-align: center;
  padding: 6rem 0 4rem;
}

@media (max-width: 1023px) {
  .bans-header {
    padding: 2rem 0 2rem;
  }
}

@media (max-width: 1920px) {
  .bans-header {
    padding: 4rem 0 3rem;
  }
}

.bans-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.bans-title-normal {
  color: var(--foreground);
}

.bans-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted-foreground);
  margin: 0;
  animation-delay: 0.1s;
}

/* ============================================
   INFO CARD
   ============================================ */
.bans-info {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  margin-bottom: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.bans-info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(226, 1, 205, 0.2), rgba(31, 158, 158, 0.2));
  border-radius: 12px;
  color: var(--primary);
  border: 1px solid var(--glass-border);
}

.bans-info-content {
  flex: 1;
}

.bans-info-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.5rem 0;
}

.bans-info-text {
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   BAN LIST CONTAINER
   ============================================ */
.bans-list-container {
  padding: 2.5rem;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  margin-bottom: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.bans-list-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.bans-list-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 0.5rem 0;
}

.bans-list-description {
  color: var(--muted-foreground);
  margin: 0;
  font-size: 1rem;
}

.bans-list-content {
  /* Стили для контента из include будут применяться здесь */
  min-height: 200px;
}

/* Стилизация таблицы банов (если она есть в include) */
.bans-list-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.bans-list-content th {
  background: rgba(226, 1, 205, 0.1);
  color: var(--foreground);
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid var(--glass-border);
}

.bans-list-content td {
  padding: 1rem;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--glass-border);
}

.bans-list-content tr:hover {
  background: rgba(226, 1, 205, 0.05);
}

.bans-list-content tr:last-child td {
  border-bottom: none;
}

/* Стилизация iframe (если используется) */
.bans-list-content iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  border-radius: calc(var(--radius) - 8px);
  background: transparent;
}

/* ============================================
   REMINDER CARD
   ============================================ */
.bans-reminder {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(226, 1, 205, 0.1), rgba(31, 158, 158, 0.1));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--primary);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  box-shadow: none;
}

.bans-reminder-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.bans-reminder-content {
  flex: 1;
}

.bans-reminder-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.5rem 0;
}

.bans-reminder-text {
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   LINKS
   ============================================ */
.bans-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.bans-link:hover {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slide-up 0.8s ease-out forwards;
  opacity: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .bans-header {
    padding: 3rem 0 2rem;
  }
  
  .bans-info {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
  }
  
  .bans-info-icon {
    width: 40px;
    height: 40px;
  }
  
  .bans-list-container {
    padding: 1.5rem;
  }
  
  .bans-list-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }
  
  .bans-list-title {
    font-size: 1.5rem;
  }
  
  .bans-list-content th,
  .bans-list-content td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .bans-reminder {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
  }
  
  .bans-reminder-icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .bans-page {
    padding: 1rem 0;
  }
  
  .bans-header {
    padding: 2rem 0 1.5rem;
  }
  
  .bans-info {
    padding: 1rem;
  }
  
  .bans-info-title {
    font-size: 1.125rem;
  }
  
  .bans-list-container {
    padding: 1.25rem;
  }
  
  .bans-list-title {
    font-size: 1.25rem;
  }
  
  .bans-list-description {
    font-size: 0.9rem;
  }
  
  .bans-list-content th,
  .bans-list-content td {
    padding: 0.5rem 0.25rem;
    font-size: 0.85rem;
  }
  
  .bans-reminder {
    padding: 1rem;
  }
  
  .bans-reminder-title {
    font-size: 1.125rem;
  }
}

/* ============================================
   DARK THEME ADJUSTMENTS
   ============================================ */
[data-theme="dark"] .bans-list-content th {
  background: rgba(226, 1, 205, 0.08);
}

[data-theme="dark"] .bans-list-content tr:hover {
  background: rgba(226, 1, 205, 0.03);
}

/* ============================================
   LOADING STATE
   ============================================ */
.bans-list-content.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.bans-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--glass-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   EMPTY STATE
   ============================================ */
.bans-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted-foreground);
}

.bans-empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.bans-empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.bans-empty-state p {
  margin: 0;
}
