/* Тема Rust для сайта донатов */

:root {
  --rust-red: #e67e22;
  --rust-orange: #f39c12;
  --rust-dark: #2a2a2a;
  --rust-darker: #1e1e1e;
  --rust-medium: #404040;
  --rust-light-gray: #b8b8b8;
  --rust-light: #f5f5f5;
  --rust-accent: #f39c12;
  --rust-border: #505050;
  --rust-success: #27ae60;
  --rust-warning: #f39c12;
  --rust-danger: #e67e22;
}

/* Основные стили */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  background-color: var(--rust-dark);
  color: var(--rust-light);
  font-family: 'Roboto Condensed', sans-serif;
  background-image: url('/images/ui/rust-background.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

/* Навигация */
.navbar {
  background-color: rgba(17, 17, 17, 0.85) !important;
  border-bottom: 2px solid var(--rust-red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
  font-weight: 700;
  color: var(--rust-orange) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link {
  color: var(--rust-light) !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--rust-orange) !important;
  transform: translateY(-2px);
}

.navbar-toggler {
  border: 1px solid var(--rust-red);
}

/* Контейнеры */
.container {
  padding: 20px;
}

.rust-container {
  background-color: rgba(17, 17, 17, 0.8);
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.rust-container-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rust-orange);
  text-transform: uppercase;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rust-border);
}

/* Кнопки */
.btn-rust {
  background-color: var(--rust-red);
  color: white;
  border: none;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-rust:hover {
  background-color: var(--rust-orange);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn-rust:active {
  transform: translateY(0);
}

.btn-rust-secondary {
  background-color: var(--rust-medium);
  border: 1px solid var(--rust-border);
  color: var(--rust-light);
}

.btn-rust-secondary:hover {
  background-color: var(--rust-dark);
  color: var(--rust-orange);
}

/* Карточки товаров */
.product-card {
  background-color: rgba(25, 25, 25, 0.9);
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  border-color: var(--rust-orange);
}

.product-card-header {
  background-color: var(--rust-darker);
  padding: 10px;
  border-bottom: 1px solid var(--rust-border);
  text-align: center;
}

.product-card-body {
  padding: 15px;
  flex-grow: 1;
}

.product-card-footer {
  background-color: var(--rust-darker);
  padding: 10px;
  border-top: 1px solid var(--rust-border);
}

.product-img-container {
  background-color: rgba(0, 0, 0, 0.3);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 10px;
}

.product-img {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--rust-orange);
  margin-bottom: 5px;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rust-light);
}

/* Категории */
.category-container {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--rust-medium);
  color: var(--rust-light);
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 500;
}

.category-btn:hover, .category-btn.active {
  background-color: var(--rust-red);
  color: white;
  transform: translateY(-2px);
}

/* Формы */
.form-control {
  background-color: rgba(40, 40, 40, 0.6);
  border: 1px solid var(--rust-border);
  color: var(--rust-light);
  border-radius: 4px;
  padding: 10px 15px;
}

.form-control:focus {
  background-color: rgba(50, 50, 50, 0.8);
  border-color: var(--rust-orange);
  color: white;
  box-shadow: 0 0 0 0.25rem rgba(247, 145, 61, 0.25);
}

.form-label {
  color: var(--rust-light-gray);
  font-weight: 500;
  margin-bottom: 5px;
}

/* Профиль */
.profile-card {
  background-color: rgba(25, 25, 25, 0.9);
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}

.steam-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--rust-orange);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.user-nickname {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rust-orange);
  margin-top: 10px;
}

.user-balance {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--rust-light);
  margin-top: 5px;
}

/* Транзакции */
.transaction-list {
  max-height: 350px;
  overflow-y: auto;
  margin-top: 15px;
  padding-right: 10px;
}

.transaction-list::-webkit-scrollbar {
  width: 8px;
}

.transaction-list::-webkit-scrollbar-track {
  background: var(--rust-darker);
  border-radius: 4px;
}

.transaction-list::-webkit-scrollbar-thumb {
  background-color: var(--rust-border);
  border-radius: 4px;
}

.transaction-item {
  background-color: rgba(40, 40, 40, 0.6);
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid var(--rust-border);
  transition: all 0.2s ease;
}

.transaction-item:hover {
  background-color: rgba(45, 45, 45, 0.8);
}

.transaction-deposit {
  border-left: 3px solid var(--rust-success);
}

.transaction-spend {
  border-left: 3px solid var(--rust-danger);
}

.transaction-date {
  font-size: 0.85rem;
  color: var(--rust-light-gray);
}

.transaction-amount {
  font-weight: 600;
}

.transaction-amount.positive {
  color: var(--rust-success);
}

.transaction-amount.negative {
  color: var(--rust-danger);
}

/* Футер */
.footer {
  background-color: rgba(17, 17, 17, 0.85);
  border-top: 2px solid var(--rust-red);
  color: var(--rust-light-gray);
  padding: 20px 0;
  font-size: 0.9rem;
}

/* Анимации */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(247, 145, 61, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(247, 145, 61, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(247, 145, 61, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Серверный статус */
.server-status-card {
  background-color: rgba(25, 25, 25, 0.9);
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
}

.server-status-card.online {
  border-left: 3px solid var(--rust-success);
}

.server-status-card.offline {
  border-left: 3px solid var(--rust-danger);
}

.server-status-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--rust-light);
  margin-bottom: 10px;
}

.server-status-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.server-status-label {
  color: var(--rust-light-gray);
  font-size: 0.9rem;
}

.server-status-value {
  font-weight: 600;
  color: var(--rust-light);
}

.server-status-bar-container {
  height: 8px;
  background-color: var(--rust-darker);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}

.server-status-bar {
  height: 100%;
  background-color: var(--rust-red);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.online-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
}

.online-indicator.online {
  background-color: var(--rust-success);
  box-shadow: 0 0 5px var(--rust-success);
}

.online-indicator.offline {
  background-color: var(--rust-danger);
}

/* Адаптивность */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .rust-container {
    padding: 15px;
  }
  
  .product-card {
    margin-bottom: 15px;
  }
}

/* Утилиты */
.rust-shadow {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.rust-border {
  border: 1px solid var(--rust-border);
  border-radius: 4px;
}

.rust-border-orange {
  border: 1px solid var(--rust-orange);
  border-radius: 4px;
}

.rust-text-orange {
  color: var(--rust-orange) !important;
}

.rust-bg-dark {
  background-color: rgba(17, 17, 17, 0.8);
}

/* Индикатор загрузки */
.rust-loader {
  width: 40px;
  height: 40px;
  border: 3px solid var(--rust-medium);
  border-radius: 50%;
  border-top: 3px solid var(--rust-orange);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
} 