/*
 * WhiteRise — кастомная тема для сайта Minecraft Grief 1.16.5
 * Стиль: тёмно-синий фон, белые поверхности, фиолетовые акценты,
 * мягкое свечение, плавные анимации.
 *
 * Установка: подключите этот файл в ED после основного CSS.
 * Селекторы ниже намеренно универсальные; если у ED другие названия
 * классов, можно будет быстро адаптировать под HTML сайта.
 */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --wr-bg: #080b16;
  --wr-bg-soft: #0d1224;
  --wr-panel: rgba(18, 24, 45, 0.82);
  --wr-panel-solid: #12182d;
  --wr-border: rgba(177, 187, 255, 0.15);
  --wr-text: #f5f7ff;
  --wr-muted: #a8b0ca;
  --wr-purple: #a78bfa;
  --wr-purple-2: #7c5cff;
  --wr-blue: #6ea8ff;
  --wr-pink: #ed8bff;
  --wr-radius: 18px;
  --wr-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
  --wr-glow: 0 0 28px rgba(124, 92, 255, 0.18);
}

html {
  scroll-behavior: smooth;
  background: var(--wr-bg);
}

body {
  color: var(--wr-text);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(93, 70, 190, 0.19), transparent 36%),
    radial-gradient(ellipse at 90% 12%, rgba(67, 116, 220, 0.13), transparent 32%),
    var(--wr-bg);
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #fff;
  background: rgba(124, 92, 255, 0.65);
}

a {
  color: #c4b5fd;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

a:hover {
  color: #fff;
}

/* Контейнеры и секции */
.container, .wrapper, main, .content, .page-content {
  position: relative;
}

section, .section {
  position: relative;
}

h1, h2, h3, h4, h5 {
  color: var(--wr-text);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 5rem);
  text-shadow: 0 0 35px rgba(167, 139, 250, 0.18);
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
}

p, .text, .description {
  color: var(--wr-muted);
}

/* Шапка / навигация */
header, .header, .navbar, nav, .topbar {
  color: var(--wr-text);
}

header, .header, .navbar, .topbar {
  background: rgba(8, 11, 22, 0.76);
  border-bottom: 1px solid var(--wr-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

nav a, .navbar a, .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c7cce0;
  font-weight: 700;
  transition: color .2s ease, transform .2s ease;
}

nav a:hover, .navbar a:hover, .nav-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

/* Логотип и бренд */
.logo, .brand, .navbar-brand, .site-title {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.logo span, .brand span, .site-title span {
  background: linear-gradient(110deg, #fff 5%, #c4b5fd 42%, #8bb9ff 75%, #f0abfc 100%);
  background-size: 220% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: wr-gradient 7s ease-in-out infinite;
}

/* Главный экран */
.hero, .banner, .jumbotron, .intro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(124, 92, 255, .22), transparent 58%),
    linear-gradient(135deg, rgba(18, 24, 45, .95), rgba(8, 11, 22, .92));
  border-bottom: 1px solid var(--wr-border);
}

.hero::before, .banner::before, .jumbotron::before, .intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(167, 139, 250, .12) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, .14) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 68%, rgba(110, 168, 255, .18) 0 1px, transparent 2px);
  background-size: 130px 130px, 170px 170px, 210px 210px;
}

.hero p, .banner p, .jumbotron p, .intro p {
  max-width: 720px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

/* Карточки, блоки, товары, преимущества */
.card, .panel, .widget, .feature, .product-card, .store-item, .modal-content {
  color: var(--wr-text);
  background: linear-gradient(145deg, rgba(22, 29, 53, .94), rgba(13, 18, 36, .94));
  border: 1px solid var(--wr-border);
  border-radius: var(--wr-radius);
  box-shadow: var(--wr-shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card:hover, .panel:hover, .feature:hover, .product-card:hover, .store-item:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, .45);
  box-shadow: var(--wr-shadow), var(--wr-glow);
}

.card p, .panel p, .widget p, .feature p, .product-card p {
  color: var(--wr-muted);
}

/* Кнопки */
button, .btn, .button, input[type="submit"], .btn-primary {
  color: #fff;
  font: inherit;
  font-weight: 800;
  background: linear-gradient(110deg, var(--wr-purple-2), #8b5cf6 48%, #648cff);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(124, 92, 255, .22);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

button:hover, .btn:hover, .button:hover, input[type="submit"]:hover, .btn-primary:hover {
  color: #fff;
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(124, 92, 255, .32);
}

button:active, .btn:active, .button:active {
  transform: translateY(0) scale(.98);
}

/* Второстепенные кнопки */
.btn-secondary, .button-secondary, .btn-outline, .btn-light {
  color: #e7eaff;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--wr-border);
  box-shadow: none;
}

.btn-secondary:hover, .button-secondary:hover, .btn-outline:hover, .btn-light:hover {
  background: rgba(167, 139, 250, .12);
  border-color: rgba(167, 139, 250, .5);
}

/* Формы */
input, textarea, select, .form-control {
  width: auto;
  color: var(--wr-text);
  background: rgba(5, 8, 18, .72);
  border: 1px solid var(--wr-border);
  border-radius: 11px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input::placeholder, textarea::placeholder {
  color: #727d9e;
}

input:focus, textarea:focus, select:focus, .form-control:focus {
  border-color: var(--wr-purple);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, .12);
}

/* Таблицы и списки */
table {
  width: 100%;
  color: var(--wr-text);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: rgba(18, 24, 45, .72);
  border: 1px solid var(--wr-border);
  border-radius: 14px;
}

th {
  color: #e9e5ff;
  background: rgba(124, 92, 255, .14);
  font-weight: 800;
}

td, th {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(177, 187, 255, .09);
}

tr:last-child td {
  border-bottom: 0;
}

tr:hover td {
  background: rgba(167, 139, 250, .045);
}

/* Метки, статус сервера */
.badge, .tag, .label, .status {
  color: #ddd6fe;
  background: rgba(139, 92, 246, .14);
  border: 1px solid rgba(167, 139, 250, .25);
  border-radius: 999px;
  font-weight: 800;
}

/* Цены и выделенный текст */
.price, .amount, .highlight {
  color: #d8ccff;
  font-weight: 800;
}

hr {
  border: 0;
  border-top: 1px solid var(--wr-border);
}

/* Футер */
footer, .footer {
  color: var(--wr-muted);
  background: #070913;
  border-top: 1px solid var(--wr-border);
}

footer a, .footer a {
  color: #c4b5fd;
}

/* Скроллбар */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #080b16;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--wr-purple-2), #536fe7);
  border: 2px solid #080b16;
  border-radius: 999px;
}

/* Плавные анимации */
@keyframes wr-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  :root { --wr-radius: 14px; }

  h1 { font-size: clamp(2.1rem, 11vw, 3.4rem); }

  .card, .panel, .widget, .feature, .product-card, .store-item {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .24);
  }

  td, th { padding: 10px 11px; }
}
