/* site.css */

/* Основные стили */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  padding-bottom: 70px; /* Добавляем отступ снизу для футера */
  color: #e8e8e8; /* Более мягкий светлый текст */
  background-color: #1e1e1e; /* Менее агрессивный темный фон */
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px; /* Задаем фиксированную высоту футера */
  line-height: 60px; /* Выравниваем текст по вертикали */
  background-color: #2a2a2a; /* Более мягкий фон */
  color: #ffffff;
  border-top: 1px solid #404040; /* Менее контрастная граница */
}

/* Стили для темной темы */
.bg-rust-dark {
  background-color: #2a2a2a; /* Менее темный фон */
}

.bg-rust-navbar {
  background-color: #2d2d2d; /* Более мягкий фон навбара */
}

.text-rust-light {
  color: #f5f5f5; /* Более комфортный светлый текст */
}

.rust-text-orange {
  color: #e67e22; /* Более приятный оранжевый вместо красного */
}

/* Кнопки */
.btn-rust {
  background-color: #e67e22; /* Теплый оранжевый вместо красного */
  border-color: #e67e22;
  color: white;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-rust:hover {
  background-color: #d35400; /* Более темный оранжевый при наведении */
  border-color: #d35400;
  color: white;
}

.btn-rust-secondary {
  background-color: #404040; /* Более светлый серый */
  border-color: #505050;
  color: white;
  transition: all 0.3s ease;
}

.btn-rust-secondary:hover {
  background-color: #505050;
  border-color: #606060;
  color: white;
}

/* Контейнеры */
.rust-container {
  background-color: #2a2a2a; /* Более мягкий фон */
  border: 1px solid #404040; /* Менее контрастная граница */
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Немного больше тени */
}

.rust-container-title {
  color: #e67e22; /* Теплый оранжевый */
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
  border-bottom: 2px solid #404040; /* Менее контрастная граница */
  padding-bottom: 10px;
}

.rust-border {
  border: 1px solid #404040; /* Менее контрастная граница */
  border-radius: 5px;
}

/* Серверы */
.server-status-card {
  background-color: #2a2a2a; /* Более мягкий фон */
  border: 1px solid #404040; /* Менее контрастная граница */
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 10px;
}

.server-status-title {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.online-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 10px;
}

.online-indicator.online {
  background-color: #27ae60; /* Более мягкий зеленый */
}

.online-indicator.offline {
  background-color: #e74c3c; /* Более мягкий красный */
}

.server-status-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.server-status-label {
  color: #aaa; /* Более светлый серый */
  font-size: 0.9rem;
}

.server-status-value {
  color: #f5f5f5; /* Более комфортный белый */
  font-weight: 600;
}

.server-status-bar-container {
  height: 8px;
  background-color: #404040; /* Более светлый фон */
  border-radius: 4px;
  overflow: hidden;
}

.server-status-bar {
  height: 100%;
  background-color: #e67e22; /* Теплый оранжевый */
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Стили для магазина */
.product-card {
  background-color: #2a2a2a; /* Более мягкий фон */
  border: 1px solid #404040; /* Менее контрастная граница */
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.3s;
  margin-bottom: 20px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); /* Немного больше тени */
}

.product-card-header {
  background-color: #2d2d2d; /* Более мягкий темный фон */
  padding: 10px 15px;
  position: relative;
}

.product-title {
  color: #f5f5f5; /* Более комфортный белый */
  font-weight: bold;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.product-card-body {
  padding: 15px;
}

.product-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  background-color: #1a1a1a;
  margin: -15px;
  margin-bottom: 15px;
}

.product-img {
  max-height: 150px;
  max-width: 100%;
  object-fit: contain;
}

.product-price {
  color: #f8f9fa;
  font-weight: bold;
  font-size: 1.2rem;
}

.product-card-footer {
  padding: 10px 15px;
  background-color: #1a1a1a;
}

/* События */
.events-list {
  max-height: 350px;
  overflow-y: auto;
}

.event-item {
  background-color: #252525;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* Категории */
.category-container {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.category-btn {
  display: inline-block;
  margin-right: 5px;
  margin-bottom: 10px;
  padding: 5px 15px;
  background-color: #404040; /* Более светлый серый */
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.8rem;
}

.category-btn:hover, .category-btn.active {
  background-color: #e67e22; /* Теплый оранжевый */
}

/* Анимации */
.fade-in-element {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Стили для форм */
.form-control {
  background-color: #404040; /* Более светлый фон */
  border-color: #505050; /* Менее контрастная граница */
  color: white;
}

.form-control:focus {
  background-color: #404040; /* Более светлый фон */
  border-color: #e67e22; /* Теплый оранжевый фокус */
  color: white;
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.25); /* Оранжевая тень */
}

/* Улучшение контраста для текста на темном фоне */
.card {
  background-color: #2a2a2a; /* Более мягкий фон */
  border: 1px solid #404040; /* Менее контрастная граница */
}

.card-header {
  background-color: #2d2d2d; /* Более мягкий темный фон */
  border-bottom: 1px solid #404040; /* Менее контрастная граница */
}

.card-header h5, .card-body h4, .card-body span {
  color: #f5f5f5; /* Более комфортный белый */
}

.text-muted {
  color: #b8b8b8 !important; /* Делаем приглушенный текст более видимым */
}

/* Стили для профиля */
.profile-card {
  background-color: #2a2a2a; /* Более мягкий фон */
  border: 1px solid #404040; /* Менее контрастная граница */
}

.steam-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #e67e22; /* Теплый оранжевый */
}

.transaction-list {
  max-height: 300px;
  overflow-y: auto;
}

.transaction-item {
  background-color: #404040; /* Более светлый фон */
  margin-bottom: 5px;
  padding: 10px;
  border-radius: 3px;
}

.transaction-deposit {
  border-left: 3px solid #27ae60; /* Более мягкий зеленый */
}

.transaction-spend {
  border-left: 3px solid #e67e22; /* Теплый оранжевый */
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #e67e22; /* Оранжевый фокус */
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Улучшение контраста для страницы покупки */
.purchase-container {
  color: #f5f5f5; /* Более комфортный белый */
}

.purchase-container .card {
  background-color: #2a2a2a; /* Более мягкий фон */
}

.purchase-info {
  color: #f5f5f5; /* Более комфортный белый */
  font-weight: 500;
}

/* Стили для модального окна подтверждения покупки */
.modal-content {
  background-color: #2a2a2a; /* Более мягкий фон */
  border: 1px solid #404040; /* Менее контрастная граница */
}

.modal-header {
  background-color: #2d2d2d; /* Более мягкий темный фон */
  border-bottom: 1px solid #505050; /* Менее контрастная граница */
}

.modal-body {
  background-color: #2a2a2a; /* Более мягкий фон */
}

.modal-footer {
  background-color: #2d2d2d; /* Более мягкий темный фон */
  border-top: 1px solid #505050; /* Менее контрастная граница */
}

.purchase-details {
  background-color: #404040 !important; /* Более светлый фон */
  border: 1px solid #505050; /* Менее контрастная граница */
  border-radius: 5px;
}

.purchase-details h6 {
  color: #e67e22; /* Теплый оранжевый */
  margin-bottom: 15px;
  font-weight: bold;
}

.purchase-details .d-flex {
  margin-bottom: 5px;
}

.purchase-details span:first-child {
  color: #ccc; /* Более светлый серый */
}

.purchase-details strong {
  color: #f5f5f5; /* Более комфортный белый */
}

/* Стили для Toast уведомлений */
.toast {
  background-color: #2a2a2a; /* Более мягкий фон */
  border: 1px solid #404040; /* Менее контрастная граница */
  color: #f5f5f5; /* Более комфортный белый */
}

.toast-header {
  background-color: #2d2d2d; /* Более мягкий темный фон */
  border-bottom: 1px solid #505050; /* Менее контрастная граница */
  color: #f5f5f5; /* Более комфортный белый */
}

.toast-body {
  background-color: #2a2a2a; /* Более мягкий фон */
  color: #f5f5f5; /* Более комфортный белый */
}

/* Анимация для toast уведомлений */
.toast.show {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Улучшение видимости спиннера в toast */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Стили для alert предупреждений в модальном окне */
.alert-warning {
  background-color: rgba(255, 193, 7, 0.2);
  border-color: #ffc107;
  color: #fff;
}

.alert-warning strong {
  color: #ffc107;
}

/* Стили для страницы пополнения баланса */
.rust-info-block {
  background-color: rgba(230, 126, 34, 0.15); /* Полупрозрачный оранжевый фон */
  border: 1px solid #e67e22; /* Оранжевая граница */
  border-radius: 5px;
  padding: 15px;
  color: #f5f5f5;
}

.rust-danger-header {
  background-color: #e67e22; /* Теплый оранжевый вместо красного */
  border-bottom: 1px solid #d35400;
}

.border-rust {
  border-color: #505050 !important; /* Менее контрастная граница */
}

.bg-rust-dark {
  background-color: #404040 !important; /* Более светлый фон */
}

.text-rust-light {
  color: #f5f5f5 !important; /* Более комфортный светлый текст */
}

/* Улучшение input-group для страницы пополнения */
.input-group-text.bg-rust-dark {
  background-color: #404040 !important;
  border-color: #505050 !important;
}

/* Анимация для кнопок быстрого выбора суммы */
.btn-rust-secondary {
  transition: all 0.3s ease;
}

.btn-rust-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Стили для нового футера */
.rust-footer {
  background-color: #1a1a1a; /* Более темный фон для футера */
  border-top: 2px solid #e67e22; /* Оранжевая граница сверху */
  color: #f5f5f5;
  margin-top: auto;
}

/* Уменьшаем отступы внутри футера */
.rust-footer .container {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.rust-footer h5, .rust-footer h6 {
  line-height: 1.2; /* Уменьшаем межстрочный интервал */
}

.rust-footer p {
  line-height: 1.3; /* Уменьшаем межстрочный интервал для параграфов */
  margin-bottom: 0.25rem !important;
}

.footer-brand h5 {
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.footer-contacts .contact-item {
  margin-bottom: 0.05rem; /* Минимальный отступ */
  line-height: 1.1; /* Уменьшаем межстрочный интервал */
  display: flex;
  align-items: center;
}

/* Принудительно убираем отступы для всех элементов в контактах */
.footer-contacts .contact-item * {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.1 !important;
}

.footer-contacts .contact-item .text-rust-light {
  font-size: 0.85rem;
}

/* Дополнительные стили для минимизации отступов */
.footer-contacts {
  margin-bottom: 0.5rem !important;
  margin-top: 0.5rem !important; /* Добавляем отступ сверху */
}

.footer-contacts .contact-item {
  margin-bottom: 0.02rem !important; /* Еще меньше */
}

.footer-contacts h6 {
  margin-bottom: 0.25rem !important;
  margin-top: 0.25rem !important; /* Отступ сверху для заголовка */
}

.footer-legal .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-social {
  text-align: center;
}

@media (min-width: 768px) {
  .footer-social {
    text-align: left;
  }
}

/* Улучшенные социальные ссылки */
.social-links-enhanced {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Еще больше уменьшили отступ до 0.5rem */
}

.social-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem; /* Уменьшили padding */
  background-color: #2a2a2a;
  border: 1px solid #404040;
  border-radius: 6px; /* Уменьшили радиус */
  text-decoration: none;
  color: #f5f5f5;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: #fff;
}

.social-link i {
  font-size: 1rem; /* Уменьшили размер иконок */
  margin-right: 0.5rem; /* Уменьшили отступ */
  width: 20px; /* Уменьшили ширину */
  text-align: center;
}

.social-link span {
  font-weight: 500;
  font-size: 0.85rem; /* Уменьшили размер текста */
}

/* Специфичные цвета для каждой социальной сети */
.social-discord:hover {
  background-color: #5865f2;
  border-color: #5865f2;
}

.social-telegram-group:hover {
  background-color: #0088cc;
  border-color: #0088cc;
}

.social-telegram:hover {
  background-color: #28a745; /* Зеленый цвет для связи с админом */
  border-color: #28a745;
}

/* Граница для нижней части футера */
.border-rust {
  border-color: #404040 !important;
}

/* Адаптивность для социальных ссылок */
@media (max-width: 767px) {
  .social-links-enhanced {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .social-link {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
  
  .footer-social {
    margin-top: 2rem;
  }
}

/* Стили для дисклеймера */
.disclaimer {
  line-height: 1.4;
}

.disclaimer small {
  display: block;
}

/* Анимация появления футера */
.rust-footer {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}