/*
Theme Name: Cassino Brasil
Author: Adapted for Online Casinos in Brazil
Description: WordPress theme for online casinos ranking with a modern dark design
Version: 1.0.6
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700;900&family=Open+Sans:wght@400;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h1, h2 {
    color: #00cc66; /* Яркий зелёный для заголовков */
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
}

h3, h4 {
    color: #00cc66;
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
}

a {
    color: #1e90ff; /* Голубой для ссылок */
    text-decoration: none;
}

a:hover {
    text-decoration: none; /* Убрано подчеркивание по умолчанию при наведении */
}

body {
    background: linear-gradient(180deg, #0a1c2b, #1a2b3c); /* Тёмный градиент */
    font-family: 'Open Sans', sans-serif;
    color: #f0f0f0;
    line-height: 1.6;
}
.label{color: #07be66;}
.container-brasil {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.faq {
    max-width: 900px;
    margin: 50px auto;
}

.faq-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(0,204,102,0.35);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    font-size: 18px;
    background: none;
    border: none;
    color: #00cc66;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.faq-question:hover {
    background: rgba(0,204,102,0.10);
}

.faq-answer {
    display: none;
    padding: 14px 18px;
    font-size: 15px;
    color: #f0f0f0;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-aviso {
    margin-top: 25px;
    font-size: 13px;
    color: #bbb;
    text-align: center;
}



/* Header */
header {
    background: rgb(14 39 60 / 95%);
    padding: 1px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(to right, transparent, #00cc66, transparent); /* Симметричный градиент */
    margin-top: 10px;
}

main.site-main-brasil {
    background: #0f2435; /* Лёгкий контраст с фоном body */
    padding-top: 20px;
}
.container-br {max-width: 1200px;
    margin: auto;}
.brasil-branding {
    display: flex;
    justify-content: center;
}

.logo-link-brasil {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #00cc66;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-part-brasil {
    display: inline-block;
    opacity: 0;
    visibility: hidden; /* Скрываем до начала анимации */
    font-family: 'Roboto Condensed', Arial, sans-serif; /* Запасной шрифт */
    animation: fadeIn 0.6s cubic-bezier(0.6, 0, 0.4, 1) forwards; /* Уменьшена длительность */
    will-change: opacity; /* Оптимизация рендеринга */
    backface-visibility: hidden; /* Устранение артефактов */
}
.casino-details-left {
    text-align: center;
    margin-bottom: 6px;
    margin-top: -4px;
}

/* Задержки для последовательного появления */
.logo-part-brasil:nth-child(1) { animation-delay: 0.2s; } /* Cassino */
.logo-part-brasil:nth-child(2) { animation-delay: 0.4s; } /* - */
.logo-part-brasil:nth-child(3) { animation-delay: 0.6s; } /* Online */
.logo-part-brasil:nth-child(4) { animation-delay: 0.8s; } /* - */
.logo-part-brasil:nth-child(5) {
    animation: rotateIn 1s cubic-bezier(0.6, 0, 0.4, 1) 1.0s forwards; /* Уменьшена длительность */
    transform: scale(0.9); /* Начальный масштаб */
    font-family: 'Roboto Condensed', Arial, sans-serif; /* Запасной шрифт */
    will-change: opacity, transform, scale; /* Оптимизация */
    backface-visibility: hidden;
} /* Brasil */
.logo-part-brasil:nth-child(6) { animation-delay: 1.2s; } /* .Com */

@keyframes fadeIn {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    100% {
        opacity: 1;
        visibility: visible; /* Показываем в конце */
    }
}

@keyframes rotateIn {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: rotate(-360deg) scale(0.9);
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: rotate(0deg) scale(1);
    }
}

.brasil-main-navigation {
    position: relative;
}

.brasil-main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.brasil-main-navigation .menu-item-brasil {
    margin: 0 20px;
    position: relative; /* Для подчеркивания */
}

.brasil-main-navigation .menu-item-brasil a {
    color: #f0f0f0;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 5px;
    transition: color 0.3s ease;
    display: block; /* Для предотвращения перехода в мобильном */
    position: relative;
}

.brasil-main-navigation .menu-item-brasil a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00cc66;
    transition: width 0.3s ease;
}

.brasil-main-navigation .menu-item-brasil:hover a::after {
    width: 100%;
}

.brasil-main-navigation .menu-item-brasil:hover a {
    color: #00cc66;
}

.brasil-main-navigation .sub-menu-brasil {
    display: none;
    position: absolute;
    background: #0f2435ab;
    border-radius: 5px;
    padding: 10px;
    min-width: 200px;
    z-index: 1000;
    margin-top: 3px;
}

.brasil-main-navigation .menu-item-has-children-brasil:hover > .sub-menu-brasil {
    display: block;
}

.brasil-main-navigation .sub-menu-brasil .menu-item-brasil a {
    padding: 8px 16px;
}

.brasil-main-navigation .sub-menu-brasil .menu-item-brasil a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00cc66;
    transition: width 0.3s ease;
}

.brasil-main-navigation .sub-menu-brasil .menu-item-brasil:hover a::after {
    width: 100%;
}

.menu-toggle-checkbox-brasil {
    display: none;
}

.menu-toggle-brasil {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #f0f0f0;
}

/* Casinos Rating */
.casinos-rating-brasil {
    padding: 40px 0;
}

.section-title-brasil {
    font-size: 32px;
    margin-bottom: 30px;
}

.rating-list-brasil {
    list-style: none;
}

.rating-item-brasil {
    margin-bottom: 40px;
    display: flex;
    align-items: center; /* Выравнивание по вертикали */
}

.casino-number {
    font-size: 48px;
    color: #00cc66;
    font-weight: 900;
    margin-right: 20px;
    text-align: center;
    flex-shrink: 0;
}

.casino-card {
    display: flex;
    background: #0f2435;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgb(15 130 87 / 82%);
    flex: 1;
}

.casino-thumbnail {
    flex-shrink: 0;
    margin: 11px;
    border-radius: 32px;
}

.casino-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 7px;
    box-shadow: 0 4px 10px rgb(15 105 130 / 82%);
}

.casino-info-brasil {
    padding: 20px;
}

.casino-info-item-brasil {
    margin-bottom: 10px;
}

.label-brasil {
    color: #00cc66;
}

.value-brasil {
    color: #fff;
    font-weight: 600;
}

.casino-right-column {
    padding: 11px;
    flex: 1;
}

.casino-title-brasil {
    font-size: 24px;
}

.casino-description-brasil {
    margin: 15px 0;
}

.casino-details-brasil {
    display: flex;
    justify-content: space-between;
}

.casino-details-lower {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.casino-rating-text-brasil {
    font-weight: 600;
}

.casino-buttons-brasil {
    display: flex;
    gap: 10px;
    margin: auto;
}

.casino-btn-brasil {
    display: inline-block;
    position: relative;
    overflow: hidden;
    padding: 10px 20px; /* Уменьшил размер кнопок */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: box-shadow 0.3s ease;
}

.casino-btn-brasil::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -200%;
    width: 300%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewY(-30deg);
    transition: left 0.5s ease;
}

.casino-btn-brasil:hover::before {
    left: 100%; /* Блик пробегает */
}

.casino-btn-brasil:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.goto-brasil {
    background: #00cc66;
    color: #0a1c2b;
}

.review-brasil {
    background: #1e90ff;
    color: #fff;
}

/* Overview (Review) Styles */
.overview-main-brasil {
    padding: 20px;
}

.overview-seo-text {
    margin-bottom: 20px;
	text-align: center;
}

.overview-article {
    margin-bottom: 20px;
}

.overview-info {
    width: 100%;
    border-collapse: collapse;
}

.overview-info td {
    padding: 12px;
    border: 1px solid #00cc66;
    color: #f0f0f0;
    width: 50%;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.overview-card {
    padding: 20px;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.overview-card.pros {
    background: linear-gradient(to top, rgba(0, 204, 102, 0.15), transparent); /* Мягкий зелёный градиент */
    border: 1px solid rgba(0, 204, 102, 0.5); /* Обводка */
}

.overview-card.pros:hover {
    border-color: #00cc66; /* Fade при hover */
}

.overview-card.cons {
    background: linear-gradient(to top, rgba(255, 165, 0, 0.15), transparent); /* Мягкий оранжевый градиент */
    border: 1px solid rgba(255, 165, 0, 0.5); /* Обводка */
}

.overview-card.cons:hover {
    border-color: #ffa500; /* Fade при hover */
}

.overview-desc {
    list-style: disc;
    padding-left: 20px;
}

.overview-btn {
    display: inline-block;
    position: relative;
    overflow: hidden;
    background: #00cc66;
    color: #0a1c2b;
    padding: 10px 20px; /* Уменьшил размер кнопок */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: box-shadow 0.3s ease;
}

.overview-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -200%;
    width: 300%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewY(-30deg);
    transition: left 0.5s ease;
}

.overview-btn:hover::before {
    left: 100%; /* Блик пробегает */
}

.overview-btn:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* SEO Text */
.seo-text-brasil {
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(30, 144, 255, 0.1), transparent);
}

.seo-text-brasil h1 {
    font-size: 28px;
    color: #00cc66;
    margin-bottom: 20px;
}

.seo-text-brasil p {
    font-size: 16px;
    color: #f0f0f0;
}

/* Footer */
.brasil-footer {
    background: #0a1c2b;
    padding: 40px 0;
    color: #f0f0f0;
}

.brasil-footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.brasil-footer-logo {
    flex: 1;
    min-width: 200px;
}

.brasil-footer-column {
    flex: 1;
    min-width: 150px;
    margin: 10px;
}

.brasil-footer-column h3 {
    margin-bottom: 15px;
}

.brasil-footer-column ul {
    list-style: none;
}

.brasil-footer-column li {
    margin-bottom: 10px;
}

.brasil-footer-bottom {
    text-align: center;
    margin-top: 20px;
}

.social-links-brasil a {
    margin: 0 10px;
    color: #1e90ff;
}

.social-links-brasil a:hover {
    color: #00cc66;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .casino-card {
        flex-direction: column;
        align-items: center;
    }

    .rating-item-brasil {
        flex-direction: column; /* Номер сверху в мобильной версии */
        align-items: center;
    }

    .casino-number {
        text-align: center;
        margin-bottom: 10px;
        order: -3; /* Номер самый верхний */
    }

    .casino-title-brasil {
        text-align: center;
        margin: 0 0 10px;
        order: -2; /* Заголовок сразу после номера, выше thumbnail */
    }

    /* === ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ === */
    .casino-thumbnail {
       /* width: 100%;*/
       
        margin: 0;               /* Убираем margin: 11px и любые другие отступы */
        padding: 0;
        order: -1;               /* Thumbnail после заголовка */
        border-radius: 7px;
        overflow: hidden;
    }

    .casino-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;       /* Чтобы изображение заполняло блок без искажений */
        border-radius: 7px;
        box-shadow: 0 4px 10px rgb(15 105 130 / 82%);
    }

    .casino-info-brasil {
        padding: 15px 20px 0 20px; /* Отступы только сверху и по бокам */
        margin-bottom: 0;
        order: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .casino-description-brasil {
        text-align: center;
        margin: 10px 0;
    }

    .casino-details-lower {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }

    .casino-buttons-brasil {
        display: flex;
        justify-content: center;
        gap: 15px;
        width: 100%;
        margin-top: 15px;
    }

    .casino-buttons-brasil .casino-btn-brasil {
        padding: 9px 11px;
        flex: 1;
        max-width: 180px;
        text-align: center;
    }

    .brasil-main-navigation .menu-item-brasil {
        margin: 10px 0;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .menu-toggle-brasil {
        display: block;
        text-align: center;
    }

    .brasil-main-navigation ul {
        display: none;
        flex-direction: column;
    }

    .menu-toggle-checkbox-brasil:checked ~ ul {
        display: flex;
    }
}/* Блок авторов на главной */
.authors-block-brasil img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}
.authors-block-brasil img:hover {
    transform: scale(1.05);
}
.authors-end-block {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.authors-end-block img {
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Улучшение мобильного вида карточек */
@media (max-width: 768px) {
    .authors-block-brasil,
    .authors-end-block {
        padding: 20px;
    }
    .authors-block-brasil h2,
    .authors-end-block h2 {
        font-size: 1.8em;
    }
}