/* Основные стили для модернизированного казино-сайта */

/* Импорт премиального шрифта */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Общие стили */
:root {
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-dark: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
  --gradient-card: linear-gradient(145deg, #16213e 0%, #0f3460 100%);
  --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --gradient-button: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-strong: 0 15px 35px rgba(0, 0, 0, 0.5);
  --glow-primary: 0 0 15px rgba(var(--primary-color-rgb), 0.5);
  --glow-gold: 0 0 15px rgba(255, 215, 0, 0.4);
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  --transition-fast: all 0.3s ease;
  --transition-medium: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: var(--background-color);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(var(--primary-color-rgb), 0.08) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(var(--secondary-color-rgb), 0.08) 0%, transparent 33%);
  color: var(--text-color);
  padding: 20px;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Анимация для элементов */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Шапка сайта */
header {
  text-align: center;
  padding: 40px 30px;
  background: var(--gradient-dark);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-strong);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 48%, rgba(var(--primary-color-rgb), 0.3) 50%, transparent 52%);
  background-size: 200% 200%;
  animation: shine 8s linear infinite;
  pointer-events: none;
  z-index: 1;
}

h1 {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  letter-spacing: 1px;
}

h1 span {
  color: var(--primary-color);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

header p {
  font-size: 18px;
  color: #ddd;
  max-width: 800px;
  margin: 0 auto 15px;
  position: relative;
  z-index: 2;
}

/* Верхнее меню навигации */
.main-nav {
  background-color: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius-md);
  margin-bottom: 30px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 20px;
  z-index: 100;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
}

.main-nav li {
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 18px 25px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition-fast);
  white-space: nowrap;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
  border-radius: 5px 5px 0 0;
}

.main-nav a:hover::after, .main-nav a.active::after {
  width: 70%;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--primary-color);
}

.main-nav a.active {
  background-color: rgba(var(--primary-color-rgb), 0.1);
}

@media (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
  }
  
  .main-nav a {
    text-align: center;
    padding: 15px;
  }
  
  .main-nav a::after {
    bottom: 5px;
  }
}

/* Кнопки входа и регистрации */
.user-menu {
  display: flex;
  justify-content: flex-end;
  padding: 10px 0;
  position: relative;
  z-index: 3;
}

.user-actions {
  display: flex;
  gap: 15px;
}

.login-btn, .register-btn {
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-bounce);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.login-btn {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.login-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(var(--primary-color-rgb), 0.3);
}

.register-btn {
  background: var(--gradient-button);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.4);
}

.register-btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  background: var(--gradient-button);
  filter: blur(10px);
  opacity: 0;
  transition: var(--transition-fast);
}

.register-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.5);
}

.register-btn:hover::before {
  opacity: 0.7;
}

/* Кнопка возврата наверх */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-button);
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-medium);
  box-shadow: var(--shadow-soft);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  animation: float 3s ease-in-out infinite;
}

.back-to-top:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.5);
}

/* Чат поддержки */
.support-chat {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
}

.chat-bubble {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--gradient-button);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 28px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-bounce);
  animation: pulse 3s infinite;
  position: relative;
}

.chat-bubble::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-button);
  z-index: -1;
  opacity: 0.6;
  filter: blur(8px);
  transition: var(--transition-fast);
}

.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.5);
}

.chat-bubble:hover::after {
  transform: scale(1.2);
  opacity: 0.8;
}

.chat-window {
  position: fixed;
  bottom: 110px;
  left: 20px;
  width: 350px;
  height: 450px;
  background-color: #16213e;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-strong);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transform: translateY(20px);
  transition: var(--transition-fast);
}

.chat-window.open {
  display: flex;
  transform: translateY(0);
  animation: fadeIn 0.4s forwards;
}

.chat-header {
  background: var(--gradient-button);
  color: white;
  padding: 18px 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.chat-close {
  cursor: pointer;
  padding: 5px;
  transition: var(--transition-fast);
}

.chat-close:hover {
  transform: rotate(90deg);
}

.chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 85%;
  position: relative;
  animation: fadeIn 0.3s forwards;
  line-height: 1.4;
  font-size: 14px;
}

.message.support {
  background: var(--gradient-primary);
  color: white;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  box-shadow: 0 3px 10px rgba(var(--primary-color-rgb), 0.2);
}

.message.user {
  background: #1e293b;
  color: #e2e8f0;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.chat-input {
  display: flex;
  padding: 15px;
  background-color: #1a1a2e;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input input {
  flex-grow: 1;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  margin-right: 10px;
  background-color: #0f172a;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
}

.chat-input input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

.chat-input button {
  background: var(--gradient-button);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
}

.chat-input button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(var(--primary-color-rgb), 0.3);
}

/* Основной контент */
.content-block {
  background: var(--gradient-dark);
  border-radius: var(--border-radius-lg);
  padding: 35px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  transition: var(--transition-medium);
}

.content-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.content-block h2 {
  font-size: 28px;
  margin-bottom: 25px;
  color: #fff;
  position: relative;
  padding-bottom: 15px;
}

.content-block h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.content-block p {
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 20px;
  font-size: 16px;
}

/* Заголовок секции */
.section-title {
  font-size: 32px;
  margin: 50px 0 30px;
  color: #fff;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
  font-weight: 700;
}

.section-title::after {
  content: '';
  display: block;
  width: 120px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 15px auto 0;
  border-radius: 4px;
}

/* Иконки соцсетей в футере */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #1a1a2e;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 20px;
  transition: var(--transition-bounce);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-fast);
  z-index: -1;
}

.social-icon:hover {
  transform: translateY(-8px) rotate(360deg);
  color: white;
}

.social-icon:hover::before {
  opacity: 1;
}

/* Email в футере */
.contact-email {
  margin: 15px 0;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: block;
  text-align: center;
  font-size: 16px;
  transition: var(--transition-fast);
  position: relative;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
}

.contact-email:hover {
  color: var(--secondary-color);
}

.contact-email:hover::after {
  width: 120px;
}

/* Подвал */
footer {
  text-align: center;
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  font-size: 14px;
}

/* VIP-бейдж и другие акценты */
.vip-badge {
  background: var(--gradient-gold);
  color: #000;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  display: inline-block;
  margin-left: 10px;
  text-transform: uppercase;
  box-shadow: var(--glow-gold);
  animation: pulse 2s infinite;
}

.accent-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* Карточка на странице ошибки */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
  background: var(--gradient-dark);
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-strong);
  max-width: 600px;
  margin: 50px auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.error-code {
  font-size: 120px;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 30px;
  position: relative;
}

.error-code::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-gold);
  filter: blur(40px);
  opacity: 0.5;
  z-index: -1;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  
  h1 {
    font-size: 32px;
  }
  
  header {
    padding: 30px 15px;
  }
  
  .content-block {
    padding: 25px;
  }
}

@media (max-width: 576px) {
  .user-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0;
    z-index: 100;
  }
  
  .login-btn, .register-btn {
    flex: 1;
    text-align: center;
    border-radius: 0;
    padding: 15px;
  }
  
  .support-chat {
    bottom: 90px;
  }
  
  .back-to-top {
    bottom: 90px;
  }
}

/* Стили для хлебных крошек */
.breadcrumbs {
    margin: 15px 0;
    font-size: 14px;
}

.breadcrumbs ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--text-color);
    opacity: 0.7;
}

.breadcrumbs a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Стили для SEO-меню в футере */
.footer-seo-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-menu-block {
    flex: 1;
    min-width: 180px;
    margin: 0 15px 20px 0;
}

.footer-menu-block h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-menu-block ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-menu-block li {
    margin-bottom: 8px;
}

.footer-menu-block a {
    color: var(--text-color);
    opacity: 0.8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.footer-menu-block a:hover {
    color: var(--primary-color);
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-seo-menu {
        flex-direction: column;
    }
    
    .footer-menu-block {
        margin-right: 0;
        margin-bottom: 25px;
    }
}
