/* Переменные для тем */
:root {
    --primary: #1a3e72;
    --primary-hover: #2a4e92;
    --primary-light: rgba(26, 62, 114, 0.1);
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --background: #ffffff;
    --surface: #f8f9fa;
    --text: #212529;
    --text-light: #6c757d;
    --border: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    --primary: #4a86e8;
    --primary-hover: #6ba6ff;
    --primary-light: rgba(74, 134, 232, 0.15);
    --secondary: #8b9cb1;
    --success: #34c759;
    --danger: #ff3b30;
    --warning: #ffcc00;
    --background: #1a1a1a;
    --surface: #2d2d2d;
    --text: #e9ecef;
    --text-light: #8b9cb1;
    --border: #404040;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.4);
}

/* Базовые стили */
.card {
    color: inherit;
}

body {
    background-color: var(--background);
    color: var(--text);
    transition: all 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Шапка - ТЕМНЫЙ ЦВЕТ НЕЗАВИСИМО ОТ ТЕМЫ */
.header-section {
    background: #1a1a1a !important;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-section .navbar {
    background: transparent !important;
}

.navbar-brand {
    width: 100%;
}

/* Подвал - ТЕМНЫЙ ЦВЕТ НЕЗАВИСИМО ОТ ТЕМЫ */
.footer-section {
    background: #1a1a1a !important;
    border-top: 2px solid var(--primary);
    margin-top: auto;
    padding: 3rem 0 2rem !important;
}

/* Белый текст в подвале */
.footer-section .title,
.footer-section .footer-links a,
.footer-section .copyright,
.footer-section .footer-links {
    color: #ffffff !important;
}

.footer-section .footer-links a:hover {
    color: var(--primary) !important;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Белый текст в хедере */
.header-section .navbar-item,
.header-section .navbar-link {
    color: #ffffff !important;
}

.header-section .navbar-item:hover,
.header-section .navbar-link:hover {
    color: var(--primary) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.footer-section .column.is-4 span {
    width: 100%;
}

.footer-section .column.is-4 {
    text-align: center;
}

/* Логотип слева */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff !important;
    text-decoration: none;
}

/* Элементы справа */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* Переключатель тем */
.theme-dropdown .buttons {
    margin: 0;
}

.theme-option {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    min-width: 2.5rem;
    height: 2.5rem;
}

/* Кнопка Купить билеты */
.btn-ticket {
    white-space: nowrap;
}

/* Выпадающее меню (десктоп) */
.menu-dropdown .navbar-link {
    color: #ffffff !important;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.menu-dropdown .navbar-dropdown {
    background: #2d2d2d !important;
    border: 1px solid #404040;
    box-shadow: 0 4px 20px var(--shadow);
    border-radius: 8px;
}

.menu-dropdown .navbar-item {
    color: #ffffff !important;
}

.menu-dropdown .navbar-item:hover {
    background: var(--primary) !important;
    color: white !important;
}

/* Мобильное меню */
.mobile-menu-trigger .button {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    min-width: 2.5rem;
    height: 2.5rem;
}

.mobile-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 1rem;
    background: #2d2d2d !important;
    border: 1px solid #404040;
    box-shadow: 0 4px 20px var(--shadow);
    border-radius: 8px;
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.mobile-menu-dropdown.is-active {
    display: block;
}

.mobile-menu-dropdown .navbar-item {
    color: #ffffff !important;
    border-bottom: 1px solid #404040;
    display: block;
    padding: 0.75rem 1rem;
}

.mobile-menu-dropdown .navbar-item:last-child {
    border-bottom: none;
}

.mobile-menu-dropdown .navbar-item:hover {
    background: var(--primary) !important;
    color: white !important;
}

/* Кнопки */
.button.is-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    font-weight: 600;
}

.button.is-primary:hover {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

/* Основной контент */
.main-section {
    flex: 1;
    padding: 1.5rem 0;
}

.main-section .container.is-fluid {
    padding: 0 1.5rem;
}

/* Боксы и карточки */
.box {
    background: var(--surface) !important;
    color: var(--text) !important;
    box-shadow: 0 2px 15px var(--shadow) !important;
    border-radius: 12px;
    border: 1px solid var(--border);
}



.ad-placeholder {
    color: var(--text-light);
    font-style: italic;
    font-size: 1.1rem;
}

/* Хлебные крошки */
.breadcrumb {
    margin-bottom: 2rem !important;
}

.breadcrumb a {
    color: var(--primary) !important;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-hover) !important;
}

.breadcrumb ul li+li::before {
    color: var(--text-light) !important;
}
/* Рекламные блоки */
.ad-container {
    background: transparent !important;
     border: 0 !important;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: sticky;

     overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

/* Левый сайдбар */
.left-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    
    /* Убираем все скроллы */
    overflow: hidden !important;
}

/* Правый сайдбар */
.right-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    
    /* Убираем все скроллы */
    overflow: hidden !important;
}

/* Отключаем скролл для рекламных блоков */
.left-sidebar .ad-container,
.right-sidebar .ad-container {
    position: static;
    overflow: visible;
}
/* Мобильная адаптация */
@media (max-width: 1023px) {

    .column.is-8,
    .column.is-8-tablet {
        flex: none;
        width: calc(100% - var(--bulma-column-gap)/2);
    }

    .header-section .container.is-fluid,
    .main-section .container.is-fluid,
    .footer-section .container.is-fluid {
        padding: 0 1rem;
    }

    .navbar-brand {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-actions {
        gap: 0.5rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1rem;
    }

    .logo-img {
        height: 35px;
    }



    .btn-ticket .icon {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .title.is-1 {
        font-size: 1.1rem !important;
    }

    .mb-6 {
        margin-bottom: 0.5rem !important;
    }

    .logo-text {
        font-size: 0.8rem;
    }

    .logo-img {
        height: 20px;
    }

    .navbar-actions {
        gap: 0.6rem;
    }

    .theme-option {
        min-width: 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
    }

    .mobile-menu-dropdown {
        right: 0.5rem;
        min-width: 180px;
    }

    .btn-ticket {
        background: #0038a4;
        border-radius: 0.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: white;
    }

    .btn-ticket span {
        font-size: 0.6rem;
        margin: 0.3rem;
        text-align: center;
        width: 100%;
    }

    .navbar-item,
    .navbar-link {
        color: hsl(var(--bulma-navbar-h), var(--bulma-navbar-s), var(--bulma-navbar-item-color-l));
        display: block;
        line-height: 1.5;
        padding: 0rem 0rem;
        position: relative
    }

    .mobile-menu-trigger .button {
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
        min-width: 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
    }

    .logo-container {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

    .footer-section {
        background: #1a1a1a !important;
        border-top: 2px solid var(--primary);
        margin-top: auto;
        padding: 0.5rem 0 0.5rem !important;
    }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 0rem;
        margin-top: 0rem;
    }

    .columns:not(:last-child) {
        margin-bottom: 0rem;
        margin-top: 0.5rem;

    }

    .footer-section .is-flex {
        justify-content: center;
        display: flex !important;
    }

    .footer-section .columns {

        text-align: center;
    }

    .column.is-4 {
        padding: 0rem !important;
        margin: 0rem 0rem 1rem !important;
    }

    .footer-section .title {
        margin-bottom: 0.1rem !important;
        font-size: 1rem;
    }

    .footer-links li {
        font-size: 0.8rem;
    }

    .buttons.are-small {
        gap: 0.3rem;
    }


}

@media (max-width: 380px) {
    .navbar-actions {
        gap: 0.2rem;
    }

    .buttons.are-small {
        gap: 0.2rem;
    }

   
  .logo-text {
    font-size: 0.6rem;
  }
}
