/* Основные стили для "Тропа забытых рун" */

/* Базовые элементы */
body {
    background: #0D1117;
    color: #E5D0A0;
    font-family: "Montserrat", serif;
}

h1, h2, h3, h4 {
    font-weight: 700;
    text-transform: uppercase;
    color: #D7B26B;
}

/* Фоны и основные цвета */
.navbar, footer {
    background: #141920;
    border-bottom: 1px solid #2A3039;
}

.casino-item {
    background: #161C24;
    border: 1px solid #2A3039;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Декоративные элементы */
.casino-wrapper {
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.8) 0%, rgba(30, 40, 56, 0.4) 100%);
    border: none;
}

.footer-age {
    background: #131921;
}

/* Кнопки */
.btn-red {
    background: #B94D2D;
    color: #F3EBD4;
    border: 1px solid #8A3921;
}

.btn-red:hover {
    background: #873420;
}

.btn-white {
    background: #D7B26B;
    color: #0D1117;
    border: 1px solid #B79553;
}

.btn-white:hover {
    background: #C6A059;
}

.btn-blue {
    background: #394869;
    color: #F3EBD4;
    border: 1px solid #2A3650;
}

.btn-blue:hover {
    background: #2A3650;
}

.btn-green {
    background: #4D624A;
    color: #F3EBD4;
    border: 1px solid #3A4A38;
}

.btn-green:hover {
    background: #3A4A38;
}

.btn-light-red {
    background: #9D4E4A;
    color: #F3EBD4;
    border: 1px solid #7A3C39;
}

.btn-light-red:hover {
    background: #7A3C39;
}

/* Основной текст */
p {
    color: #D0C6A9;
    line-height: 1.6;
}

/* Ссылки */
a {
    color: #D7B26B;
    transition: 0.3s all ease;
}

a:hover {
    color: #B79553;
}

.navbar a {
    color: #D7B26B;
}

.navbar a:hover {
    color: #F3EBD4;
}

/* Модальное окно */
.modal {
    background: #1A202C;
    color: #D0C6A9;
    border: 1px solid #2A3039;
}

.modal .age-circle {
    background-color: #9D4E4A;
}

.modal h2 {
    color: #D7B26B;
}

.modal button {
    background-color: #D7B26B;
    color: #0D1117;
}

.modal button:hover {
    background-color: #B79553;
}

/* Меню бургер линии */
.navbar-container .hamburger-lines .line {
    background: #D7B26B;
}

/* Эффекты наведения */
.casino-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid #D7B26B;
}

/* Дополнительные стили для атмосферности */
.container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M25,25 L35,15 M65,15 L75,25 M25,75 L35,85 M65,85 L75,75" stroke="%23634D28" stroke-width="0.5" opacity="0.1"/></svg>');
    pointer-events: none;
    z-index: -1;
}

/* Подсветка элементов */
h1::after, h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: #B79553;
    margin-top: 10px;
}

.casino h4 {
    position: relative;
}

.casino h4::before, .casino h4::after {
    content: "•";
    color: #D7B26B;
    position: absolute;
    opacity: 0.6;
}

.casino h4::before {
    left: -15px;
}

.casino h4::after {
    right: -15px;
}

/* Подсвечивающиеся кнопки */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

/* Основные стили для "Тропа забытых рун" */

/* Базовые элементы */
body {
    background: #0D1117 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"><circle cx="2" cy="2" r="0.35" fill="%23352A1B" opacity="0.15"/></svg>');
    color: #E5D0A0;
    font-family: "Montserrat", serif;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D7B26B, transparent);
    z-index: 9999;
    opacity: 0.7;
    animation: scanline 4s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

h1, h2, h3, h4 {
    font-weight: 700;
    text-transform: uppercase;
    color: #D7B26B;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

h1 {
    background: linear-gradient(180deg, #F3EBD4, #B79553);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    position: relative;
}

/* Фоны и основные цвета */
.navbar, footer {
    background: #141920;
    border-bottom: 1px solid #2A3039;
    position: relative;
    overflow: hidden;
}

.navbar::after, footer::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D7B26B, transparent);
    opacity: 0.6;
}

.casino-item {
    background: #161C24;
    border: 1px solid #2A3039;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Магические руны на фоне */
.navbar::before {
    content: "ᚠᚢᚦᚨᚱᚲᚷᚹᚺᚾᛁᛃᛇᛈᛉᛊᛏᛒᛖᛗᛚᛜᛞᛟ";
    position: absolute;
    white-space: nowrap;
    bottom: -18px;
    left: 0;
    right: 0;
    color: rgba(215, 178, 107, 0.05);
    font-size: 24px;
    letter-spacing: 20px;
    z-index: -1;
}

footer::before {
    content: "ᚠᚢᚦᚨᚱᚲᚷᚹᚺᚾᛁᛃᛇᛈᛉᛊᛏᛒᛖᛗᛚᛜᛞᛟ";
    position: absolute;
    white-space: nowrap;
    bottom: -18px;
    left: 0;
    right: 0;
    color: rgba(215, 178, 107, 0.05);
    font-size: 24px;
    letter-spacing: 20px;
    z-index: -1;
}

/* Улучшенный эффект для casino-wrapper */
.casino-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.casino-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(215, 178, 107, 0.05), transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Декоративные элементы */
.casino-wrapper {
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.8) 0%, rgba(30, 40, 56, 0.4) 100%);
    border: none;
}

.footer-age {
    background: #131921;
}

/* Кнопки */
.btn-red {
    background: linear-gradient(135deg, #B94D2D, #8A3921);
    color: #F3EBD4;
    border: 1px solid #8A3921;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.btn-red:hover {
    background: linear-gradient(135deg, #C15A3A, #7A3218);
    box-shadow: 0 0 10px rgba(185, 77, 45, 0.5);
}

.btn-white {
    background: linear-gradient(135deg, #E7C27B, #B79553);
    color: #0D1117;
    border: 1px solid #B79553;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-white:hover {
    background: linear-gradient(135deg, #F3CE87, #A58643);
    box-shadow: 0 0 10px rgba(215, 178, 107, 0.5);
}

.btn-blue {
    background: linear-gradient(135deg, #465B80, #2A3650);
    color: #F3EBD4;
    border: 1px solid #2A3650;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.btn-blue:hover {
    background: linear-gradient(135deg, #536B95, #202A3E);
    box-shadow: 0 0 10px rgba(57, 72, 105, 0.5);
}

.btn-green {
    background: linear-gradient(135deg, #5A735B, #3A4A38);
    color: #F3EBD4;
    border: 1px solid #3A4A38;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.btn-green:hover {
    background: linear-gradient(135deg, #68876A, #2E3C2D);
    box-shadow: 0 0 10px rgba(77, 98, 74, 0.5);
}

.btn-light-red {
    background: linear-gradient(135deg, #AE5A56, #7A3C39);
    color: #F3EBD4;
    border: 1px solid #7A3C39;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.btn-light-red:hover {
    background: linear-gradient(135deg, #C16864, #692F2D);
    box-shadow: 0 0 10px rgba(157, 78, 74, 0.5);
}

/* Основной текст */
p {
    color: #D0C6A9;
    line-height: 1.6;
    position: relative;
}

/* Добавляем эффект для casino-item p (описания) */
.casino-item p {
    font-style: italic;
    color: #B5AA8F;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 0 15px;
}

.casino-item p::before, .casino-item p::after {
    content: """;
    position: absolute;
    color: rgba(215, 178, 107, 0.4);
    font-size: 2em;
    line-height: 0.1em;
}

.casino-item p::before {
    left: 0;
    top: 0.5em;
}

.casino-item p::after {
    content: """;
    right: 0;
    bottom: 0;
}

/* Эффект для больших текстовых блоков */
.col p, .col-2 p, .col-3 p {
    position: relative;
    overflow: hidden;
}

.col p::after, .col-2 p::after, .col-3 p::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(215, 178, 107, 0.2), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.col:hover p::after, .col-2:hover p::after, .col-3:hover p::after {
    opacity: 1;
    transform: translateY(0);
}

/* Ссылки */
a {
    color: #D7B26B;
    transition: 0.3s all ease;
}

a:hover {
    color: #B79553;
}

.navbar a {
    color: #D7B26B;
}

.navbar a:hover {
    color: #F3EBD4;
}

/* Модальное окно */
.modal {
    background: #1A202C;
    color: #D0C6A9;
    border: 1px solid #2A3039;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(215, 178, 107, 0.3);
    animation: modalAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalAppear {
    0% { opacity: 0; transform: translateY(-20px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M20,20 L30,30 M70,30 L80,20 M20,80 L30,70 M70,70 L80,80" stroke="%23634D28" stroke-width="0.5" opacity="0.1"/></svg>');
    opacity: 0.1;
    z-index: -1;
}

.modal .age-circle {
    background: linear-gradient(135deg, #B35953, #7A3C39);
    color: #F3EBD4;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), 0 0 10px rgba(157, 78, 74, 0.4);
    position: relative;
    overflow: hidden;
}

.modal .age-circle::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 70%);
    opacity: 0;
    animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0; }
    100% { opacity: 0.5; }
}

.modal h2 {
    color: #D7B26B;
    position: relative;
    display: inline-block;
}

.modal h2::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #B79553, transparent);
}

.modal button {
    background: linear-gradient(135deg, #E7C27B, #B79553);
    color: #0D1117;
    border: none;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 5px rgba(215, 178, 107, 0.5);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.modal button::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4), transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.modal button:hover {
    background: linear-gradient(135deg, #F3CE87, #A58643);
    transform: translateY(-2px);
}

.modal button:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Меню бургер линии */
.navbar-container .hamburger-lines .line {
    background: #D7B26B;
}

/* Эффекты наведения */
.casino-item {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.casino-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid #D7B26B;
}

.casino-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(215, 178, 107, 0.1),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.casino-item:hover::before {
    opacity: 1;
    animation: pulseLight 2s infinite;
}

@keyframes pulseLight {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.casino-item::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #D7B26B, transparent 40%, #D7B26B);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 12px;
    background-size: 300% 300%;
    animation: borderShine 4s ease infinite;
}

.casino-item:hover::after {
    opacity: 0.5;
}

@keyframes borderShine {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Дополнительные стили для атмосферности */
.container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M25,25 L35,15 M65,15 L75,25 M25,75 L35,85 M65,85 L75,75" stroke="%23634D28" stroke-width="0.5" opacity="0.1"/></svg>');
    pointer-events: none;
    z-index: -1;
    animation: backgroundPulse 8s infinite alternate;
}

@keyframes backgroundPulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

/* Мистические частицы */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(215, 178, 107, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(215, 178, 107, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(215, 178, 107, 0.04) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
    animation: mistParticles 15s infinite alternate;
}

@keyframes mistParticles {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Эффект затемнения фона */
.navbar::before, footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(13, 17, 23, 0.7) 0%, transparent 50%, rgba(13, 17, 23, 0.7) 100%);
    z-index: -1;
}

/* Подсветка элементов */
h1::after, h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #B79553, transparent);
    margin-top: 10px;
    animation: runeGlimmer 4s infinite alternate;
}

@keyframes runeGlimmer {
    0% { width: 60px; opacity: 0.7; }
    50% { width: 100px; opacity: 1; }
    100% { width: 60px; opacity: 0.7; }
}

.casino h4 {
    position: relative;
}

.casino h4::before, .casino h4::after {
    content: "ᛦ";
    font-family: Arial, sans-serif;
    color: #D7B26B;
    position: absolute;
    opacity: 0.8;
    font-size: 1.2em;
    top: 50%;
    transform: translateY(-50%);
}

.casino h4::before {
    left: -25px;
    animation: runeRotate 5s infinite alternate;
}

.casino h4::after {
    right: -25px;
    animation: runeRotate 5s 0.5s infinite alternate-reverse;
}

@keyframes runeRotate {
    0% { transform: translateY(-50%) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-50%) rotate(5deg); opacity: 1; }
    100% { transform: translateY(-50%) rotate(0deg); opacity: 0.6; }
}

/* Магическая подсветка для изображений */
.casino img {
    position: relative;
    transition: 0.5s ease all;
    filter: brightness(0.9) contrast(1.1);
}

.casino img:hover {
    filter: brightness(1.2) contrast(1.2);
    transform: scale(1.03);
}

.casino img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(215, 178, 107, 0.3), transparent 70%);
    opacity: 0;
    transition: 0.5s;
    mix-blend-mode: overlay;
}

.casino img:hover::after {
    opacity: 1;
}

/* Подсвечивающиеся кнопки */
.btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(215, 178, 107, 0.3);
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(215, 178, 107, 0.5), 0 0 5px rgba(215, 178, 107, 0.3) inset;
}

.btn::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: linear-gradient(45deg, #D7B26B, transparent, #D7B26B);
    transform: scale(1.03);
    animation: runicGlow 3s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 7px;
}

.btn:hover::before {
    opacity: 1;
}

@keyframes runicGlow {
    0% { background-position: 0% 100%; }
    50% { background-position: 100% 0%; }
    100% { background-position: 0% 100%; }
}