/* Ледяной дракон - атмосферные стили */

/* Базовые стили */
body {
    background: linear-gradient(to bottom, #0a1425 0%, #1e3c5a 100%);
    color: #e3f4ff;
    font-family: "Montserrat", serif;
}

h1, h2, h3, h4 {
    color: #b9e0ff;
    text-shadow: 0 0 10px rgba(150, 210, 255, 0.6);
}

/* Навигация */
.navbar {
    background: rgba(9, 28, 53, 0.8);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #4e89b9;
}

.navbar a {
    color: #cbe7ff;
}

.navbar a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #72b4e0;
    opacity: 1;
}

.navbar-container .hamburger-lines .line {
    background: #cbe7ff;
}

/* Карточки для казино (можно использовать для основных элементов) */
.casino-item {
    background: rgba(25, 48, 78, 0.7);
    border: 1px solid #5c99c7;
    box-shadow: 0 0 20px rgba(100, 180, 255, 0.2);
    backdrop-filter: blur(5px);
}

.casino-item h4 {
    color: #c9e5ff;
}

.casino-item p {
    color: #a8cff2;
}

/* Кнопки */
.btn-red {
    background: #3665a4;
    box-shadow: 0 0 15px rgba(54, 147, 224, 0.5);
}

.btn-white {
    background: #cde3ff;
    color: #0a1d36;
}

.btn-blue {
    background: #0e3b72;
    box-shadow: 0 0 15px rgba(54, 147, 224, 0.5);
}

.btn-green {
    background: #3a7aac;
    box-shadow: 0 0 15px rgba(54, 147, 224, 0.5);
}

.btn-light-red {
    background: #5995d3;
    box-shadow: 0 0 15px rgba(54, 147, 224, 0.5);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(150, 210, 255, 0.7);
}

/* Футер */
footer {
    border: 1px solid #5a93c2;
    background: rgba(10, 30, 55, 0.7);
    box-shadow: 0 -5px 15px rgba(30, 80, 145, 0.3);
}

.footer-age {
    background: #081729;
    border-top: 1px solid #3e6a9a;
}

.footer-links a {
    color: #b1d5f9;
}

.footer-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #72b4e0;
}

/* Модальное окно */
.modal-overlay {
    backdrop-filter: blur(8px);
    background-color: rgba(9, 28, 53, 0.85);
}

.modal {
    background: linear-gradient(to bottom, #1a3d5c 0%, #0a1d36 100%);
    border: 1px solid #5c99c7;
    color: #e3f4ff;
    box-shadow: 0 0 30px rgba(100, 180, 255, 0.3);
}

.modal .age-circle {
    background-color: #2a5684;
}

.modal h2 {
    color: #c9e5ff;
}

.modal button {
    background-color: #5995d3;
    color: #ffffff;
}

.modal button:hover {
    background-color: #3e7ac4;
}

/* Эффект инея для изображений */
img {
    filter: drop-shadow(0 0 5px rgba(150, 210, 255, 0.5));
}

/* Дополнительные эффекты для заголовков */
h1 {
    background: linear-gradient(to bottom, #ffffff, #a8d0f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(150, 210, 255, 0.8);
}

/* Ледяной дракон - атмосферные стили */

/* Анимация дыхания дракона */
@keyframes dragonBreath {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* Анимация парящего льда */
@keyframes floatingIce {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Анимация ледяного мерцания */
@keyframes iceglow {
    0% { text-shadow: 0 0 5px rgba(150, 210, 255, 0.4); }
    50% { text-shadow: 0 0 15px rgba(150, 210, 255, 0.8), 0 0 25px rgba(150, 210, 255, 0.4); }
    100% { text-shadow: 0 0 5px rgba(150, 210, 255, 0.4); }
}

/* Базовые стили */
body {
    background: linear-gradient(to bottom, #0a1425 0%, #1e3c5a 100%);
    background-size: 400% 400%;
    animation: dragonBreath 15s ease infinite;
    color: #e3f4ff;
    font-family: "Montserrat", serif;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4 {
    color: #b9e0ff;
    text-shadow: 0 0 10px rgba(150, 210, 255, 0.6);
    animation: iceglow 5s infinite;
}

/* Навигация */
.navbar {
    background: rgba(9, 28, 53, 0.8);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #4e89b9;
    position: relative;
}

.navbar::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(150, 210, 255, 0.1) 0%, rgba(9, 28, 53, 0) 70%);
    animation: dragonBreath 10s ease infinite;
    pointer-events: none;
}

.navbar a {
    color: #cbe7ff;
    position: relative;
}

.navbar a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #72b4e0, transparent);
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #72b4e0, 0 0 15px rgba(150, 210, 255, 0.7);
    opacity: 1;
}

.navbar-container .hamburger-lines .line {
    background: #cbe7ff;
    box-shadow: 0 0 5px rgba(150, 210, 255, 0.7);
}

/* Карточки для казино (можно использовать для основных элементов) */
.casino-item {
    background: rgba(25, 48, 78, 0.7);
    border: 1px solid #5c99c7;
    box-shadow: 0 0 20px rgba(100, 180, 255, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    animation: floatingIce 6s ease-in-out infinite;
}

.casino-item::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    transition: 0.6s all;
    animation: iceSweep 8s linear infinite;
}

@keyframes iceSweep {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.casino-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(100, 180, 255, 0.4);
    border-color: #8ac3ff;
}

.casino-item h4 {
    color: #c9e5ff;
    position: relative;
}

.casino-item h4::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8ac3ff, transparent);
}

.casino-item p {
    color: #a8cff2;
    text-shadow: 0 0 8px rgba(0, 40, 80, 0.5);
}

/* Кнопки */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-red {
    background: linear-gradient(135deg, #2c5a91, #3665a4, #2c5a91);
    background-size: 200% 200%;
    box-shadow: 0 0 15px rgba(54, 147, 224, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(150, 210, 255, 0.3);
}

.btn-white {
    background: linear-gradient(135deg, #b9d8ff, #cde3ff, #b9d8ff);
    background-size: 200% 200%;
    color: #0a1d36;
    box-shadow: 0 0 15px rgba(150, 210, 255, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(150, 210, 255, 0.5);
}

.btn-blue {
    background: linear-gradient(135deg, #0a2f5c, #0e3b72, #0a2f5c);
    background-size: 200% 200%;
    box-shadow: 0 0 15px rgba(54, 147, 224, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(150, 210, 255, 0.3);
}

.btn-green {
    background: linear-gradient(135deg, #2e6591, #3a7aac, #2e6591);
    background-size: 200% 200%;
    box-shadow: 0 0 15px rgba(54, 147, 224, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(150, 210, 255, 0.3);
}

.btn-light-red {
    background: linear-gradient(135deg, #4c83ba, #5995d3, #4c83ba);
    background-size: 200% 200%;
    box-shadow: 0 0 15px rgba(54, 147, 224, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(150, 210, 255, 0.3);
}

.btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 5px 20px rgba(150, 210, 255, 0.7);
    animation: buttonDragonBreath 3s ease infinite;
}

@keyframes buttonDragonBreath {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* Футер */
footer {
    border: 1px solid #5a93c2;
    background: rgba(10, 30, 55, 0.7);
    box-shadow: 0 -5px 15px rgba(30, 80, 145, 0.3);
}

.footer-age {
    background: #081729;
    border-top: 1px solid #3e6a9a;
}

.footer-links a {
    color: #b1d5f9;
}

.footer-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #72b4e0;
}

/* Модальное окно */
.modal-overlay {
    backdrop-filter: blur(8px);
    background-color: rgba(9, 28, 53, 0.85);
}

.modal {
    background: linear-gradient(to bottom, #1a3d5c 0%, #0a1d36 100%);
    border: 1px solid #5c99c7;
    color: #e3f4ff;
    box-shadow: 0 0 30px rgba(100, 180, 255, 0.3);
}

.modal .age-circle {
    background-color: #2a5684;
}

.modal h2 {
    color: #c9e5ff;
}

.modal button {
    background-color: #5995d3;
    color: #ffffff;
}

.modal button:hover {
    background-color: #3e7ac4;
}

/* Эффект инея для изображений */
img {
    filter: drop-shadow(0 0 5px rgba(150, 210, 255, 0.5));
    transition: all 0.5s ease;
    position: relative;
}

img:hover {
    filter: drop-shadow(0 0 10px rgba(150, 210, 255, 0.8)) brightness(1.1);
    transform: scale(1.02);
}

/* Эффект ледяной энергии для контейнера */
.container {
    position: relative;
    z-index: 1;
}

.container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(150, 210, 255, 0.05) 0%, rgba(9, 28, 53, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Дополнительные эффекты для заголовков */
h1 {
    background: linear-gradient(to bottom, #ffffff, #a8d0f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

h1::before {
    content: attr(data-text);
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    color: transparent;
    text-shadow: 0 0 20px rgba(150, 210, 255, 0.8);
    animation: iceGlowing 2.5s infinite alternate;
}

@keyframes iceGlowing {
    0% { text-shadow: 0 0 20px rgba(150, 210, 255, 0.5); }
    100% { text-shadow: 0 0 30px rgba(150, 210, 255, 0.9), 0 0 40px rgba(150, 210, 255, 0.6); }
}

/* Дополнительный эффект дыхания дракона для всего сайта */
section, footer {
    position: relative;
    z-index: 1;
}

section::before, footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(150, 210, 255, 0.08) 0%, rgba(9, 28, 53, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Анимация для ссылок в футере */
.footer-links a {
    position: relative;
    overflow: hidden;
}

.footer-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #72b4e0, transparent);
    transition: width 0.4s ease;
}

.footer-links a:hover::after {
    width: 100%;
}