/* ================================
   ACCSFB.SHOP - СТРАНИЦА ЧЕКЕРА АККАУНТОВ
   Обновленный дизайн в едином стиле
   ================================ */

/* ===== ПЕРЕМЕННЫЕ И НАСТРОЙКИ ===== */
:root {
  --primary: #ffcc00;
  --primary-dark: #e6b800;
  --primary-light: #ffe066;
  --primary-gradient: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  --primary-transparent: rgba(255, 204, 0, 0.85);
  --secondary: #333;
  --secondary-light: #444;
  --text-dark: #222;
  --text-light: #666;
  --bg-light: #f8f8f8;
  --bg-dark: #111;
  --success: #388e3c;  /* Зеленый для валидных */
  --danger: #d32f2f;   /* Красный для невалидных */
  --warning: #FF9800;  /* Оранжевый для неизвестных */
  --border-radius: 10px;
  --card-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  --button-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --header-dark: linear-gradient(to right, #000000, #222222);
  --footer-gradient: linear-gradient(to right, #0a0a0a, #1a1a1a);
}

/* ===== СБРОС СТИЛЕЙ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== ОБЩИЕ НАСТРОЙКИ ===== */
body {
  font-family: Arial, sans-serif;
  color: var(--text-dark);
  background: linear-gradient(to bottom, #f4f4f4, #ececec);
  line-height: 1.6;
}

/* ===== ШАПКА ===== */
.top-bar {
  background: var(--header-dark);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  justify-content: space-between;
  border-bottom: 3px solid var(--primary);
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.top-bar::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, 
    var(--primary-dark), 
    var(--primary), 
    var(--primary-light), 
    var(--primary), 
    var(--primary-dark));
  opacity: 0.8;
}

/* Контейнер для логотипа */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 50px;
  margin-right: 10px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.05);
}

.logo-text {
  font-weight: bold;
  font-size: 1.2em;
  color: var(--primary);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Навигация */
nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-block;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: 0.5s;
}

nav ul li a:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

nav ul li a:hover::before {
  left: 100%;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-title {
  text-align: center;
  padding: 20px 0;
  margin: 0 0 30px;
  background: linear-gradient(to bottom, #f9f9f9, #f0f0f0);
  border-bottom: 2px solid var(--primary);
  font-size: 24px;
  color: var(--text-dark);
  font-weight: bold;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.main-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, 
    transparent 20%, 
    var(--primary) 40%, 
    var(--primary) 60%, 
    transparent 80%);
}

/* Контейнер чекера */
.checker-container {
  display: flex;
  max-width: 1000px;
  margin: 0 auto 50px;
  gap: 20px;
  padding: 0 20px;
}

/* Стили для панелей */
.input-panel, .results-panel {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background: linear-gradient(to bottom, #fff, #f9f9f9);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.input-panel:hover, .results-panel:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.panel-header {
  background: linear-gradient(to right, #e0e0e0, #f0f0f0);
  padding: 14px 15px;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  color: var(--text-dark);
  font-weight: bold;
  position: relative;
}

.panel-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15px;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

/* Textarea для ввода аккаунтов */
#accounts-input {
  width: 100%;
  height: 400px;
  padding: 15px;
  border: none;
  border-top: 1px solid #eee;
  resize: none;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dark);
  background: #fff;
  transition: var(--transition);
}

#accounts-input:focus {
  outline: none;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

/* Контейнер для результатов */
#results-container {
  height: 400px;
  padding: 15px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  background: #fff;
  border-top: 1px solid #eee;
}

/* Стилизация скроллбара */
#results-container::-webkit-scrollbar {
  width: 8px;
}

#results-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#results-container::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #ccc, #999);
  border-radius: 10px;
}

#results-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #bbb, #888);
}

/* Кнопки управления */
.control-buttons {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(to bottom, #fafafa, #f5f5f5);
  border-top: 1px solid #ddd;
}

.btn-primary, .btn-secondary {
  flex: 1;
  padding: 12px;
  font-size: 14px;
  border-radius: var(--border-radius);
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Кнопка Primary (черная) */
.btn-primary {
  background: linear-gradient(to bottom, #333, #000);
  color: var(--primary);
  box-shadow: var(--button-shadow);
}

.btn-primary::before, .btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: 0.5s;
}

.btn-primary:hover {
  background: linear-gradient(to bottom, #444, #222);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover::before, .btn-secondary:hover::before {
  left: 100%;
}

/* Кнопка Secondary (красная) */
.btn-secondary {
  background: linear-gradient(to bottom, #d32f2f, #b71c1c);
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: linear-gradient(to bottom, #ef5350, #c62828);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Активное состояние кнопок */
.btn-primary:active, .btn-secondary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* Статистика */
.stats-container {
  display: flex;
  align-items: center;
  padding: 15px;
  background: linear-gradient(to bottom, #fafafa, #f5f5f5);
  border-top: 1px solid #ddd;
  font-size: 14px;
  color: var(--text-dark);
}

.stat-item {
  display: flex;
  align-items: center;
  margin-right: 25px;
  padding: 6px 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.dot {
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.good .dot { 
  background: linear-gradient(to bottom right, var(--success), #2e7d32); 
}

.bad .dot { 
  background: linear-gradient(to bottom right, var(--danger), #b71c1c); 
}

.neutral .dot { 
  background: linear-gradient(to bottom right, var(--warning), #ef6c00); 
}

/* Результаты проверки */
.account-result {
  padding: 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--text-dark);
  transition: var(--transition);
}

.account-result:hover {
  background: rgba(0, 0, 0, 0.02);
}

.account-number {
  min-width: 30px;
  color: #90949c;
  margin-right: 10px;
  font-weight: bold;
}

.status-valid { 
  color: var(--success); 
  font-weight: bold;
}

.status-invalid { 
  color: var(--danger); 
  font-weight: bold;
}

.status-unknown { 
  color: var(--warning); 
  font-weight: bold;
}

/* Стили для блока с форматированием */
.formatting-info {
  background: linear-gradient(to bottom, #fff, #f9f9f9);
  padding: 30px;
  margin: 0 auto 50px;
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
  max-width: 1000px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.formatting-info:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.formatting-info h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: var(--text-dark);
}

.formatting-info h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.formatting-info p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 15px;
}

.formatting-info a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: var(--transition);
}

.formatting-info a:hover {
  color: var(--secondary);
}

.formatting-info a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s;
}

.formatting-info a:hover::after {
  width: 100%;
}

/* ===== ПОДВАЛ ===== */
footer {
  background: var(--footer-gradient);
  text-align: center;
  padding: 25px 20px;
  border-top: 1px solid #ddd;
  color: #fff;
  font-size: 14px;
  position: relative;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, 
    transparent 20%, 
    var(--primary) 40%, 
    var(--primary) 60%, 
    transparent 80%);
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .checker-container {
    flex-direction: column;
    gap: 20px;
  }
  
  #accounts-input,
  #results-container {
    height: 300px;
  }
  
  .control-buttons {
    flex-direction: column;
  }
  
  .stats-container {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .stat-item {
    margin-right: 10px;
    margin-bottom: 5px;
  }
  
  .formatting-info {
    padding: 20px;
  }
  
  .formatting-info h2 {
    font-size: 20px;
  }
  
  .main-title {
    font-size: 20px;
    padding: 15px 0;
  }
}

@media (max-width: 480px) {
  nav ul li {
    margin-left: 10px;
  }
  
  nav ul li a {
    padding: 5px 8px;
    font-size: 13px;
  }
  
  .logo-text {
    font-size: 1em;
  }
  
  .logo-img {
    max-height: 40px;
  }
  
  .panel-header {
    padding: 10px;
    font-size: 14px;
  }
  
  #accounts-input,
  #results-container {
    padding: 10px;
    font-size: 13px;
  }
  
  .btn-primary, .btn-secondary {
    padding: 10px;
    font-size: 13px;
  }
  
  .formatting-info {
    padding: 15px;
  }
  
  .formatting-info p {
    font-size: 14px;
  }
}

/* Плавный скролл для всего сайта */
html {
  scroll-behavior: smooth;
}