/* Магический сад - основные стили */

/* Основные цвета */
:root {
    --primary-dark: #0f1e3d;    /* Темно-синий (ночное небо) */
    --primary-light: #3a5f8a;   /* Средне-синий (сумерки) */
    --accent-green: #2c855c;    /* Глубокий изумрудный (основной цвет листвы) */
    --accent-teal: #47c4b4;     /* Бирюзовый (светящиеся растения) */
    --accent-purple: #8764b8;   /* Фиолетовый (магические цветы) */
    --accent-gold: #e8b923;     /* Золотой (светлячки и магическая пыльца) */
    --light-glow: #c9f0e4;      /* Светло-бирюзовый (свечение) */
    --dark-earth: #2b1d0e;      /* Темно-коричневый (земля) */
    --bright-moss: #7aad5c;     /* Яркий мох */
}

/* Базовые стили */
body {
    background: var(--primary-dark);
    color: var(--light-glow);
    background-image: radial-gradient(ellipse at top, var(--primary-light) 0%, var(--primary-dark) 70%);
    font-family: "Montserrat", serif;
}

h1, h2, h3, h4 {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(232, 185, 35, 0.4);
}

h1 {
    font-size: 96px;
    background: linear-gradient(to bottom, var(--accent-gold), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

h2 {
    color: var(--accent-teal);
    text-shadow: 0 0 8px rgba(71, 196, 180, 0.5);
}

/* Навигация */
.navbar {
    background: rgba(15, 30, 61, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--accent-teal);
}

.navbar a {
    color: var(--light-glow);
    position: relative;
    overflow: hidden;
}

.navbar a:hover {
    color: var(--accent-gold);
    opacity: 1;
}

.navbar a:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.4s ease;
}

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

.logo {
    color: var(--accent-purple);
    text-shadow: 0 0 10px rgba(135, 100, 184, 0.6);
}

/* Гамбургер-меню */
.navbar-container .hamburger-lines .line {
    background: var(--accent-teal);
}

/* Карточки казино (для представления растений) */
.casino-wrapper {
    position: relative;
}

.casino-wrapper:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(ellipse at center, rgba(71, 196, 180, 0.2) 0%, rgba(15, 30, 61, 0) 70%);
    z-index: -1;
    border-radius: 20px;
}

.casino-item {
    background: var(--primary-dark);
    border: 1px solid var(--accent-teal);
    box-shadow: 0 0 15px rgba(71, 196, 180, 0.3);
    transition: all 0.5s ease;
    overflow: hidden;
    position: relative;
}

.casino-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(71, 196, 180, 0.5);
    border-color: var(--accent-gold);
}

.casino-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-teal), var(--accent-green));
    z-index: 1;
}

.casino-item h4 {
    color: var(--accent-gold);
    transition: color 0.3s ease;
}

.casino-item:hover h4 {
    color: var(--light-glow);
}

.casino-item p {
    color: var(--light-glow);
    font-style: italic;
}

/* Кнопки */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover:before {
    left: 0;
}

.btn-red {
    background: var(--accent-purple);
    box-shadow: 0 0 10px rgba(135, 100, 184, 0.5);
}

.btn-blue {
    background: var(--primary-light);
    box-shadow: 0 0 10px rgba(58, 95, 138, 0.5);
}

.btn-green {
    background: var(--accent-green);
    box-shadow: 0 0 10px rgba(44, 133, 92, 0.5);
}

.btn-light-red {
    background: var(--accent-purple);
    box-shadow: 0 0 10px rgba(135, 100, 184, 0.5);
}

.btn-white {
    background: var(--light-glow);
    color: var(--primary-dark);
    box-shadow: 0 0 10px rgba(201, 240, 228, 0.5);
}

/* Футер */
footer {
    border: none;
    background: linear-gradient(to bottom, rgba(15, 30, 61, 0) 0%, rgba(15, 30, 61, 0.9) 100%);
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, rgba(71, 196, 180, 0), var(--accent-teal), rgba(71, 196, 180, 0));
}

.footer-info {
    color: var(--light-glow);
}

.footer-age {
    background: rgba(43, 29, 14, 0.6);
    border-top: 1px solid rgba(71, 196, 180, 0.3);
}

.footer-links a {
    color: var(--accent-teal);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

/* Модальное окно */
.modal-overlay {
    backdrop-filter: blur(5px);
    background-color: rgba(15, 30, 61, 0.8);
}

.modal {
    background: var(--primary-dark);
    border: 1px solid var(--accent-teal);
    color: var(--light-glow);
    box-shadow: 0 0 30px rgba(71, 196, 180, 0.5);
}

.modal .age-circle {
    background: var(--accent-purple);
}

.modal h2 {
    color: var(--accent-gold);
}

.modal button {
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: bold;
    transition: all 0.3s ease;
}

.modal button:hover {
    background: var(--accent-teal);
    transform: scale(1.05);
}

/* Адаптивные улучшения для создания магической атмосферы */
@media screen and (max-width: 830px) {
    .casino-item {
        background: linear-gradient(to bottom, var(--primary-dark), rgba(15, 30, 61, 0.8));
    }

    .navbar .menu-items {
        background: var(--primary-dark);
        box-shadow: 0 0 20px rgba(71, 196, 180, 0.3);
    }
}

/* Анимации для создания "живого" сада */
@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(71, 196, 180, 0.3); }
    50% { box-shadow: 0 0 20px rgba(71, 196, 180, 0.6); }
    100% { box-shadow: 0 0 10px rgba(71, 196, 180, 0.3); }
}

.casino-item {
    animation: glow 3s infinite alternate;
}

/* Каждая карточка анимируется с небольшой задержкой */
.casino-item:nth-child(1) { animation-delay: 0s; }
.casino-item:nth-child(2) { animation-delay: 0.5s; }
.casino-item:nth-child(3) { animation-delay: 1s; }
.casino-item:nth-child(4) { animation-delay: 1.5s; }


/* Магический сад - основные стили */

/* Основные цвета */
:root {
    --primary-dark: #0f1e3d;    /* Темно-синий (ночное небо) */
    --primary-light: #3a5f8a;   /* Средне-синий (сумерки) */
    --accent-green: #2c855c;    /* Глубокий изумрудный (основной цвет листвы) */
    --accent-teal: #47c4b4;     /* Бирюзовый (светящиеся растения) */
    --accent-purple: #8764b8;   /* Фиолетовый (магические цветы) */
    --accent-gold: #e8b923;     /* Золотой (светлячки и магическая пыльца) */
    --light-glow: #c9f0e4;      /* Светло-бирюзовый (свечение) */
    --dark-earth: #2b1d0e;      /* Темно-коричневый (земля) */
    --bright-moss: #7aad5c;     /* Яркий мох */

    /* Дополнительные цвета и градиенты */
    --magical-gradient: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-teal) 50%, var(--accent-green) 100%);
    --glow-subtle: 0 0 15px rgba(71, 196, 180, 0.4);
    --glow-medium: 0 0 20px rgba(71, 196, 180, 0.6);
    --glow-strong: 0 0 30px rgba(71, 196, 180, 0.8);
    --mystical-shadow: 0 10px 30px -10px rgba(15, 30, 61, 0.8);
}

/* Базовые стили */
body {
    background: var(--primary-dark);
    color: var(--light-glow);
    background-image:
            radial-gradient(ellipse at top, var(--primary-light) 0%, var(--primary-dark) 70%),
            url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='1' fill='%233a5f8a' fill-opacity='0.1'/%3E%3Ccircle cx='30' cy='50' r='1' fill='%2347c4b4' fill-opacity='0.1'/%3E%3Ccircle cx='70' cy='30' r='1' fill='%238764b8' fill-opacity='0.1'/%3E%3Ccircle cx='90' cy='90' r='1' fill='%23e8b923' fill-opacity='0.1'/%3E%3Ccircle cx='50' cy='70' r='1' fill='%232c855c' fill-opacity='0.1'/%3E%3C/svg%3E");
    font-family: "Montserrat", serif;
    position: relative;
}

body:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 20%, rgba(71, 196, 180, 0.03) 0%, transparent 25%),
            radial-gradient(circle at 80% 40%, rgba(135, 100, 184, 0.03) 0%, transparent 25%),
            radial-gradient(circle at 30% 80%, rgba(44, 133, 92, 0.03) 0%, transparent 25%),
            radial-gradient(circle at 70% 90%, rgba(232, 185, 35, 0.03) 0%, transparent 25%);
    z-index: -2;
    pointer-events: none;
}

h1, h2, h3, h4 {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(232, 185, 35, 0.4);
    position: relative;
}

h1 {
    font-size: 96px;
    background: linear-gradient(to bottom, var(--accent-gold), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    position: relative;
}

h1:after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(to bottom, var(--accent-gold), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: blur(15px);
    opacity: 0.7;
}

h2 {
    color: var(--accent-teal);
    text-shadow: 0 0 8px rgba(71, 196, 180, 0.5);
    display: inline-block;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
    transparent,
    var(--accent-teal),
    transparent);
    opacity: 0.6;
}

/* Навигация */
.navbar {
    background: rgba(15, 30, 61, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--accent-teal);
}

.navbar a {
    color: var(--light-glow);
    position: relative;
    overflow: hidden;
}

.navbar a:hover {
    color: var(--accent-gold);
    opacity: 1;
}

.navbar a:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.4s ease;
}

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

.logo {
    color: var(--accent-purple);
    text-shadow: 0 0 10px rgba(135, 100, 184, 0.6);
}

/* Гамбургер-меню */
.navbar-container .hamburger-lines .line {
    background: var(--accent-teal);
}

/* Карточки казино (для представления растений) */
.casino-wrapper {
    position: relative;
}

.casino-wrapper:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(ellipse at center, rgba(71, 196, 180, 0.2) 0%, rgba(15, 30, 61, 0) 70%);
    z-index: -1;
    border-radius: 20px;
}

.casino-item {
    background: var(--primary-dark);
    border: 1px solid var(--accent-teal);
    box-shadow: 0 0 15px rgba(71, 196, 180, 0.3);
    transition: all 0.5s ease;
    overflow: hidden;
    position: relative;
}

.casino-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(71, 196, 180, 0.5);
    border-color: var(--accent-gold);
}

.casino-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-teal), var(--accent-green));
    z-index: 1;
}

.casino-item h4 {
    color: var(--accent-gold);
    transition: color 0.3s ease;
}

.casino-item:hover h4 {
    color: var(--light-glow);
}

.casino-item p {
    color: var(--light-glow);
    font-style: italic;
}

/* Кнопки */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    background-size: 200% auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.btn:after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 7px;
    background: linear-gradient(45deg,
    var(--accent-teal),
    var(--accent-purple),
    var(--accent-green),
    var(--accent-gold));
    background-size: 400% 400%;
    z-index: -2;
    filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    letter-spacing: 2px;
}

.btn:hover:before {
    left: 0;
}

.btn:hover:after {
    opacity: 0.7;
    animation: shimmer 3s infinite;
}

.btn-red {
    background: linear-gradient(45deg, var(--accent-purple) 0%, #a37ee0 50%, var(--accent-purple) 100%);
    box-shadow: 0 4px 15px rgba(135, 100, 184, 0.5);
}

.btn-blue {
    background: linear-gradient(45deg, var(--primary-light) 0%, #4a78b3 50%, var(--primary-light) 100%);
    box-shadow: 0 4px 15px rgba(58, 95, 138, 0.5);
}

.btn-green {
    background: linear-gradient(45deg, var(--accent-green) 0%, #3fa176 50%, var(--accent-green) 100%);
    box-shadow: 0 4px 15px rgba(44, 133, 92, 0.5);
}

.btn-light-red {
    background: linear-gradient(45deg, var(--accent-purple) 0%, #a782d2 50%, var(--accent-purple) 100%);
    box-shadow: 0 4px 15px rgba(135, 100, 184, 0.5);
}

.btn-white {
    background: linear-gradient(45deg, var(--light-glow) 0%, #e5fdf6 50%, var(--light-glow) 100%);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(201, 240, 228, 0.5);
}

/* Футер */
footer {
    border: none;
    background: linear-gradient(to bottom, rgba(15, 30, 61, 0) 0%, rgba(15, 30, 61, 0.9) 100%);
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, rgba(71, 196, 180, 0), var(--accent-teal), rgba(71, 196, 180, 0));
}

.footer-info {
    color: var(--light-glow);
}

.footer-age {
    background: rgba(43, 29, 14, 0.6);
    border-top: 1px solid rgba(71, 196, 180, 0.3);
}

.footer-links a {
    color: var(--accent-teal);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

/* Модальное окно */
.modal-overlay {
    backdrop-filter: blur(5px);
    background-color: rgba(15, 30, 61, 0.8);
}

.modal {
    background: var(--primary-dark);
    border: 1px solid var(--accent-teal);
    color: var(--light-glow);
    box-shadow: 0 0 30px rgba(71, 196, 180, 0.5);
}

.modal .age-circle {
    background: var(--accent-purple);
}

.modal h2 {
    color: var(--accent-gold);
}

.modal button {
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: bold;
    transition: all 0.3s ease;
}

.modal button:hover {
    background: var(--accent-teal);
    transform: scale(1.05);
}

/* Адаптивные улучшения для создания магической атмосферы */
@media screen and (max-width: 830px) {
    .casino-item {
        background: linear-gradient(to bottom, var(--primary-dark), rgba(15, 30, 61, 0.8));
    }

    .navbar .menu-items {
        background: var(--primary-dark);
        box-shadow: 0 0 20px rgba(71, 196, 180, 0.3);
    }
}

/* Анимации для создания "живого" сада */
@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(71, 196, 180, 0.3); }
    50% { box-shadow: 0 0 20px rgba(71, 196, 180, 0.6); }
    100% { box-shadow: 0 0 10px rgba(71, 196, 180, 0.3); }
}

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

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

@keyframes morphBorder {
    0% { border-radius: 10px 30px 10px 30px; }
    25% { border-radius: 30px 10px 30px 10px; }
    50% { border-radius: 10px 40px 10px 40px; }
    75% { border-radius: 40px 10px 40px 10px; }
    100% { border-radius: 10px 30px 10px 30px; }
}

@keyframes colorPulse {
    0% { border-color: var(--accent-teal); }
    33% { border-color: var(--accent-purple); }
    66% { border-color: var(--accent-green); }
    100% { border-color: var(--accent-teal); }
}

.casino-item {
    animation: glow 3s infinite alternate, morphBorder 12s infinite ease-in-out, colorPulse 8s infinite alternate;
    border-width: 2px;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.casino-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 0 30px rgba(71, 196, 180, 0.7);
}

.casino-item:hover h4 {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(232, 185, 35, 0.7);
}

.casino-item:hover img {
    filter: drop-shadow(0 0 8px var(--accent-teal));
    transform: scale(1.05) rotate(2deg);
}

.casino-item:after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(45deg,
    rgba(232, 185, 35, 0) 0%,
    rgba(232, 185, 35, 0.1) 50%,
    rgba(232, 185, 35, 0) 100%);
    background-size: 200% 200%;
    animation: shimmer 6s infinite;
    pointer-events: none;
}

/* Каждая карточка анимируется с небольшой задержкой */
.casino-item:nth-child(1) { animation-delay: 0s, 0s, 0s; }
.casino-item:nth-child(2) { animation-delay: 0.5s, 1s, 2s; }
.casino-item:nth-child(3) { animation-delay: 1s, 2s, 1s; }
.casino-item:nth-child(4) { animation-delay: 1.5s, 3s, 3s; }

/* Анимация для изображений внутри карточек */
.casino img {
    transition: all 0.6s ease;
    filter: drop-shadow(0 0 5px var(--accent-teal));
}

/* Волшебные частицы на фоне */
.container {
    position: relative;
}

.container:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
            radial-gradient(circle at 20% 30%, rgba(232, 185, 35, 0.3) 0%, rgba(232, 185, 35, 0) 5%),
            radial-gradient(circle at 70% 60%, rgba(71, 196, 180, 0.3) 0%, rgba(71, 196, 180, 0) 5%),
            radial-gradient(circle at 40% 80%, rgba(135, 100, 184, 0.3) 0%, rgba(135, 100, 184, 0) 5%),
            radial-gradient(circle at 80% 10%, rgba(44, 133, 92, 0.3) 0%, rgba(44, 133, 92, 0) 5%);
    z-index: -1;
}