Перейти к содержанию

MediaWiki:Common.css

Материал из Horny Jail WIKI

Замечание: Возможно, после публикации вам придётся очистить кэш своего браузера, чтобы увидеть изменения.

  • Firefox / Safari: Удерживая клавишу Shift, нажмите на панели инструментов Обновить либо нажмите Ctrl+F5 или Ctrl+R (⌘+R на Mac)
  • Google Chrome: Нажмите Ctrl+Shift+R (⌘+Shift+R на Mac)
  • Edge: Удерживая Ctrl, нажмите Обновить либо нажмите Ctrl+F5
  • Opera: Нажмите Ctrl+F5.
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');

/* ================== ОСНОВНЫЕ ПЕРЕМЕННЫЕ ================== */
:root {
  --hj-primary: #165a70;
  --hj-primary-light: #1e7a96;
  --hj-primary-dark: #0d3d4d;
  --hj-accent: #ff4757;
  --hj-accent-glow: rgba(255, 71, 87, 0.4);
  --hj-bg-dark: #0a0a0f;
  --hj-bg-card: #12121a;
  --hj-bg-card-hover: #1a1a26;
  --hj-text: #e8e8e8;
  --hj-text-muted: #8a8a9a;
  --hj-border: rgba(255, 255, 255, 0.08);
  --hj-glow: 0 0 20px rgba(22, 90, 112, 0.3);
  --hj-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Comfortaa', cursive, sans-serif;
  background: var(--hj-bg-dark);
  color: var(--hj-text);
}

/* ================== HERO СЕКЦИЯ ================== */
.hj-hero {
  position: relative;
  padding: 60px 20px 80px;
  text-align: center;
  background: 
    radial-gradient(ellipse at top, rgba(22, 90, 112, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(255, 71, 87, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0f 0%, #0d1015 100%);
  border-bottom: 1px solid var(--hj-border);
  overflow: hidden;
}

.hj-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
  background-size: 30px 30px;
  animation: hj-stars 60s linear infinite;
  pointer-events: none;
}

@keyframes hj-stars {
  from { transform: translateY(0); }
  to { transform: translateY(-30px); }
}

.hj-hero-logo {
  position: relative;
  z-index: 1;
  width: 180px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 30px rgba(255, 71, 87, 0.5));
  animation: hj-float 4s ease-in-out infinite;
}

@keyframes hj-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hj-hero-title {
  position: relative;
  z-index: 1;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8em;
  font-weight: 700;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #ffffff 0%, #1e7a96 50%, #ff4757 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hj-gradient 6s ease infinite;
}

@keyframes hj-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hj-hero-subtitle {
  position: relative;
  z-index: 1;
  font-size: 1.1em;
  color: var(--hj-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.hj-hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--hj-primary), var(--hj-primary-light));
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  margin-top: 15px;
  box-shadow: var(--hj-glow);
}

/* ================== СЕКЦИИ КОНТЕЙНЕРЫ ================== */
.hj-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hj-section-header {
  text-align: center;
  margin-bottom: 30px;
}

.hj-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8em;
  font-weight: 600;
  color: var(--hj-text);
  margin: 0 0 8px 0;
  position: relative;
  display: inline-block;
}

.hj-section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--hj-primary), transparent);
  border-radius: 2px;
}

.hj-section-desc {
  color: var(--hj-text-muted);
  font-size: 0.95em;
  margin-top: 15px;
}

/* ================== НАВИГАЦИОННЫЕ КАРТОЧКИ ================== */
.hj-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.hj-nav-card {
  position: relative;
  background: var(--hj-bg-card);
  border: 1px solid var(--hj-border);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--hj-text);
  transition: var(--hj-transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 140px;
}

.hj-nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--hj-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--hj-transition);
}

.hj-nav-card:hover {
  background: var(--hj-bg-card-hover);
  border-color: var(--card-accent, var(--hj-primary));
  transform: translateY(-4px);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 30px var(--card-glow, rgba(22, 90, 112, 0.2));
}

.hj-nav-card:hover::before {
  transform: scaleX(1);
}

.hj-nav-card-icon {
  font-size: 2em;
  margin-bottom: 12px;
  filter: grayscale(0.2);
  transition: var(--hj-transition);
}

.hj-nav-card:hover .hj-nav-card-icon {
  transform: scale(1.1);
  filter: grayscale(0);
}

.hj-nav-card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15em;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.hj-nav-card-desc {
  font-size: 0.9em;
  color: var(--hj-text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.hj-nav-card-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 1.2em;
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--hj-transition);
}

.hj-nav-card:hover .hj-nav-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Цветовые варианты карточек */
.hj-nav-card--rules { --card-accent: #ff4757; --card-glow: rgba(255, 71, 87, 0.2); }
.hj-nav-card--guide { --card-accent: #2ecc71; --card-glow: rgba(46, 204, 113, 0.2); }
.hj-nav-card--lore { --card-accent: #9b59b6; --card-glow: rgba(155, 89, 182, 0.2); }
.hj-nav-card--jobs { --card-accent: #f39c12; --card-glow: rgba(243, 156, 18, 0.2); }
.hj-nav-card--discord { --card-accent: #5865f2; --card-glow: rgba(88, 101, 242, 0.2); }
.hj-nav-card--sop { --card-accent: #1abc9c; --card-glow: rgba(26, 188, 156, 0.2); }
.hj-nav-card--law { --card-accent: #e74c3c; --card-glow: rgba(231, 76, 60, 0.2); }

/* ================== БЫСТРЫЕ ССЫЛКИ ================== */
.hj-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 30px 20px;
  background: linear-gradient(180deg, transparent, rgba(22, 90, 112, 0.05));
  border-radius: 16px;
}

.hj-quicklink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hj-bg-card);
  border: 1px solid var(--hj-border);
  border-radius: 30px;
  padding: 10px 20px;
  color: var(--hj-text);
  text-decoration: none;
  font-size: 0.9em;
  transition: var(--hj-transition);
}

.hj-quicklink:hover {
  background: var(--hj-primary);
  border-color: var(--hj-primary);
  transform: translateY(-2px);
  box-shadow: var(--hj-glow);
}

.hj-quicklink-icon {
  font-size: 1.1em;
}

/* ================== НОВОСТИ / ОБНОВЛЕНИЯ ================== */
.hj-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.hj-news-card {
  background: var(--hj-bg-card);
  border: 1px solid var(--hj-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--hj-transition);
}

.hj-news-card:hover {
  border-color: var(--hj-primary);
  transform: translateY(-2px);
}

.hj-news-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid var(--hj-border);
}

.hj-news-content {
  padding: 20px;
}

.hj-news-date {
  font-size: 0.8em;
  color: var(--hj-primary-light);
  margin-bottom: 8px;
}

.hj-news-title {
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.hj-news-excerpt {
  font-size: 0.9em;
  color: var(--hj-text-muted);
  line-height: 1.5;
}

/* ================== FEATURE БЛОКИ ================== */
.hj-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

@media (max-width: 800px) {
  .hj-features {
    grid-template-columns: 1fr;
  }
}

.hj-feature {
  padding: 30px 20px;
}

.hj-feature-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
  display: block;
}

.hj-feature-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.hj-feature-desc {
  font-size: 0.9em;
  color: var(--hj-text-muted);
  line-height: 1.5;
}

/* ================== ФУТЕР ================== */
.hj-footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--hj-border);
  background: rgba(0, 0, 0, 0.3);
}

.hj-footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hj-footer-link {
  color: var(--hj-text-muted);
  text-decoration: none;
  font-size: 0.9em;
  transition: var(--hj-transition);
}

.hj-footer-link:hover {
  color: var(--hj-primary-light);
}

.hj-footer-text {
  color: var(--hj-text-muted);
  font-size: 0.85em;
  opacity: 0.7;
}

.hj-footer-heart {
  color: var(--hj-accent);
  animation: hj-heartbeat 1.5s ease infinite;
}

@keyframes hj-heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ================== БАННЕР ПРЕДУПРЕЖДЕНИЯ ================== */
.hj-banner {
  background: linear-gradient(90deg, rgba(255, 71, 87, 0.1), rgba(255, 71, 87, 0.05));
  border: 1px solid rgba(255, 71, 87, 0.3);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.hj-banner--info {
  background: linear-gradient(90deg, rgba(22, 90, 112, 0.15), rgba(22, 90, 112, 0.05));
  border-color: rgba(22, 90, 112, 0.4);
}

.hj-banner-icon {
  font-size: 1.5em;
  flex-shrink: 0;
}

.hj-banner-text {
  font-size: 0.95em;
  line-height: 1.5;
}

/* ================== РАЗДЕЛИТЕЛЬ ================== */
.hj-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hj-border), var(--hj-primary), var(--hj-border), transparent);
  margin: 40px auto;
  max-width: 600px;
}

/* ================== СТАТИСТИКА ================== */
.hj-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 30px 20px;
  flex-wrap: wrap;
}

.hj-stat {
  text-align: center;
}

.hj-stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--hj-primary-light), var(--hj-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hj-stat-label {
  font-size: 0.9em;
  color: var(--hj-text-muted);
  margin-top: 5px;
}

/* ================== СИСТЕМА ХАОСА: ТАБЫ И БЛОКИ (ОБНОВЛЕНО) ================== */

.hj-chaos-container {
  margin-bottom: 1.5em;
  border-radius: 16px;
  overflow: hidden;
}

.hj-chaos-tabs {
  display: flex;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: var(--hj-bg-card);
}

.hj-chaos-tab-button {
  flex: 1 1 0;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: var(--hj-bg-card);
  border: none;
  position: relative;
  transition: var(--hj-transition);
  color: var(--hj-text);
}

.hj-chaos-tab-button:hover {
  background: var(--hj-bg-card-hover);
}

.hj-chaos-tab-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 0.95em;
}

.hj-chaos-tab-desc {
  font-size: 0.8em;
  opacity: 0.7;
}

/* Цвета вкладок */
.hj-chaos-tab-button[data-chaos="overview"] { border-top: 3px solid transparent; }
.hj-chaos-tab-button[data-chaos="calm"]     { border-top: 3px solid transparent; }
.hj-chaos-tab-button[data-chaos="medium"]   { border-top: 3px solid transparent; }
.hj-chaos-tab-button[data-chaos="high"]     { border-top: 3px solid transparent; }

.hj-chaos-tab-button.active[data-chaos="overview"] { 
  background: #2f3b4d; 
  border-top-color: #4b6284;
}
.hj-chaos-tab-button.active[data-chaos="calm"] { 
  background: #1e3d22; 
  border-top-color: #3f7a47;
}
.hj-chaos-tab-button.active[data-chaos="medium"] { 
  background: #3d3215; 
  border-top-color: #c9982b;
}
.hj-chaos-tab-button.active[data-chaos="high"] { 
  background: #3d1818; 
  border-top-color: #c33a3a;
}

.hj-chaos-block {
  display: none;
  padding: 24px;
  background: var(--hj-bg-card);
  border-radius: 0 0 12px 12px;
}

.hj-chaos-block.active {
  display: block;
}

.hj-chaos-block[data-chaos="overview"] { background: #2f3b4d; }
.hj-chaos-block[data-chaos="calm"]     { background: #1e3d22; }
.hj-chaos-block[data-chaos="medium"]   { background: #3d3215; }
.hj-chaos-block[data-chaos="high"]     { background: #3d1818; }

/* Карточки правил */
.hj-rule-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.hj-rule-card {
  padding: 20px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--hj-transition);
}

.hj-rule-card:hover {
  background: rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.hj-rule-card h3,
.hj-rule-card h4 {
  font-family: 'Orbitron', sans-serif;
  margin: 0 0 10px 0;
  font-size: 1em;
}

.hj-rule-card p {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.hj-rule-card ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
  font-size: 0.9em;
  line-height: 1.6;
}

/* ================== АДАПТИВНОСТЬ ================== */
@media (max-width: 768px) {
  .hj-hero-title {
    font-size: 2em;
  }
  
  .hj-nav-grid {
    grid-template-columns: 1fr;
  }
  
  .hj-stats {
    gap: 30px;
  }
  
  .hj-chaos-tabs {
    flex-direction: column;
  }
  
  .hj-chaos-tab-button {
    border-top: none !important;
    border-left: 3px solid transparent;
  }
  
  .hj-chaos-tab-button.active {
    border-left-color: inherit;
  }
}

/* ================== УТИЛИТЫ ================== */
.hj-text-center { text-align: center; }
.hj-text-muted { color: var(--hj-text-muted); }
.hj-mt-0 { margin-top: 0; }
.hj-mb-0 { margin-bottom: 0; }
.hj-glow-text {
  text-shadow: 0 0 10px var(--hj-primary), 0 0 20px var(--hj-primary);
}

/* Скрываем серый фон у стандартных элементов MediaWiki */
.thumbinner,
.thumb {
  background: none !important;
  border: none !important;
}

.inline-img {
  background: none !important;
  vertical-align: middle;
}

/* Стилизация стандартных таблиц */
.wikitable {
  background: var(--hj-bg-card) !important;
  border: 1px solid var(--hj-border) !important;
  border-radius: 12px;
  overflow: hidden;
}

.wikitable th {
  background: rgba(22, 90, 112, 0.3) !important;
  border-color: var(--hj-border) !important;
}

.wikitable td {
  border-color: var(--hj-border) !important;
}