/* css/style.css - Тёмная тема */

/* Сброс отступов и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #0f1219;
    color: #e5e9f0;
    line-height: 1.4;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Основной контейнер */
.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* Шапка */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    background: #1e2430;
    padding: 18px 25px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #2d3440;
}

@media (max-width: 480px) {
    .header {
        padding: 15px 20px;
        gap: 10px;
    }
}

.header-icon {
    width: 48px;
    height: 48px;
    background: #2a313e;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.header-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.95);
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    max-width: calc(100% - 60px);
}

@media (min-width: 480px) {
    .header h1 {
        font-size: 22px;
    }
}

@media (min-width: 768px) {
    .header h1 {
        font-size: 26px;
    }
}

/* Подзаголовок */
.subheader {
    margin-bottom: 20px;
    padding: 0 5px;
}

.subheader h2 {
    font-size: 16px;
    font-weight: 400;
    color: #e0e4f0;
    line-height: 1.5;
    text-align: center;
}

@media (min-width: 768px) {
    .subheader h2 {
        font-size: 18px;
    }
}

/* Список казино */
.casino-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Карточка казино */
.casino-item {
    background: #1a1f2a;
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid #2a313e;
    transition: all 0.2s ease;
}

.casino-item:hover {
    border-color: #3a4355;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* Иконка казино */
.casino-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: #232a36;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.casino-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95);
    border-radius: 11px;
}

/* Контент (название + бонус) */
.casino-content {
    flex: 1;
    min-width: 0;
}

.casino-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.casino-bonus {
    font-size: 16px;
    font-weight: 700;
    color: #4caf50;
    line-height: 1.3;
    word-break: break-word;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Обёртка для кнопок */
.buttons-wrapper {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Кнопка Инфо */
.info-btn {
    flex-shrink: 0;
    background: transparent;
    color: #eab948;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 16px;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    border: 1px solid #eab948;
    cursor: pointer;
    display: inline-block;
    letter-spacing: 0.3px;
    background-color: #1a1f2a;
}

.info-btn:hover {
    background-color: #2a313e;
    border-color: #f0c45a;
    color: #f0c45a;
    transform: translateY(-2px);
}

.info-btn:active {
    transform: translateY(1px);
}

/* Кнопка играть */
.play-btn {
    flex-shrink: 0;
    background: linear-gradient(145deg, #eab948, #d9a534);
    color: #0f1219;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 28px;
    border-radius: 16px;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 6px 14px rgba(234, 185, 72, 0.25);
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 215, 120, 0.3);
}

.play-btn:hover {
    background: linear-gradient(145deg, #f0c45a, #e0aa2e);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(234, 185, 72, 0.35);
    border-color: rgba(255, 225, 140, 0.5);
}

.play-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(234, 185, 72, 0.3);
}

/* Выпадающая панель с информацией */
.info-panel {
    display: none;
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #2a313e;
}

/* Класс для открытого состояния */
.casino-item.expanded .info-panel {
    display: block;
}

/* Стили для строк информации */
.info-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 15px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 700;
    color: #e5e9f0;
    min-width: 140px;
}

.info-value {
    font-weight: 400;
    color: #a0a8b8;
}

/* Десктоп версия */
@media (min-width: 768px) {
    body {
        padding: 30px 40px;
    }

    .header {
        padding: 22px 30px;
        margin-bottom: 30px;
        background: #1e2430;
    }

    .header h1 {
        font-size: 30px;
    }

    .subheader h2 {
        font-size: 18px;
    }

    .casino-item {
        padding: 20px 25px;
        gap: 20px;
        background: #1a1f2a;
    }

    .casino-icon {
        width: 80px;
        height: 80px;
        background: #232a36;
    }

    .casino-name {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .casino-bonus {
        font-size: 18px;
    }

    .buttons-wrapper {
        align-self: center;
    }

    .info-btn {
        font-size: 17px;
        padding: 14px 24px;
    }

    .play-btn {
        font-size: 17px;
        padding: 14px 32px;
    }

    .info-panel {
        margin-left: 96px;
        width: calc(100% - 96px);
    }

    .info-row {
        font-size: 16px;
    }
}

    .info-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

    .info-label {
    min-width: 160px;
    flex-shrink: 0;
}

    .info-value {
    flex: 1;
}

/* Большие десктопы */
@media (min-width: 1200px) {
    .container {
        max-width: 900px;
    }

    .casino-item {
        padding: 22px 28px;
    }

    .casino-icon {
        width: 85px;
        height: 85px;
    }

    .info-panel {
        margin-left: 101px; /* 85px + 16px */
        width: calc(100% - 101px);
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
    .casino-item {
        flex-wrap: wrap;
        padding: 16px;
    }

    .casino-content {
        min-width: calc(100% - 86px);
    }

    .buttons-wrapper {
        width: 100%;
        margin-top: 10px;
    }
    
    .play-btn, .info-btn {
        flex: 1;
        text-align: center;
    }
    
    .info-row {
        flex-direction: column;
        margin-bottom: 12px;
    }
    
    .info-label {
        min-width: auto;
        margin-bottom: 2px;
    }
}

/* Еще меньше */
@media (max-width: 360px) {
    .header h1 {
        font-size: 22px;
    }

    .casino-name {
        font-size: 16px;
    }

    .casino-bonus {
        font-size: 14px;
    }
}

/* Футер */
.footer {
    width: 100%;
    margin-top: 40px;
    background: #1e2430;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #2d3440;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px 25px 20px;
}

.footer-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-icon {
    width: 36px;
    height: 36px;
    background: #2a313e;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.95);
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.footer-divider {
    height: 1px;
    background: #2d3440;
    margin: 0 0 25px 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    text-align: center;
}

.footer-link {
    color: #a0a8b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #eab948;
}

.footer-copyright {
    text-align: center;
    color: #5b677b;
    font-size: 13px;
}

/* Десктоп версия футера */
@media (min-width: 768px) {
    .footer-container {
        max-width: 800px;
        padding: 30px 30px 25px;
    }

    .footer-header {
        justify-content: center;
        margin-bottom: 20px;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
        text-align: center;
    }

    .footer-link {
        font-size: 14px;
        position: relative;
    }

    .footer-link:not(:last-child)::after {
        content: "|";
        color: #2d3440;
        position: absolute;
        right: -14px;
        top: 0;
    }

    .footer-copyright {
        text-align: center;
        margin-top: 10px;
    }
}

/* Адаптация под большие десктопы */
@media (min-width: 1200px) {
    .footer-container {
        max-width: 900px;
    }
}

/* Адаптация под маленькие экраны */
@media (max-width: 480px) {
    .footer-container {
        padding: 20px 20px 15px;
    }
    
    .footer-title {
        font-size: 18px;
    }
}

/* Текстовый блок (обновлённый) */
.content-block {
    width: 100%;
    margin: 30px 0 20px;
    background: #1a1f2a;
    border-radius: 20px;
    border: 1px solid #2a313e;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    padding: 25px;
}

.content-block__title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a313e;
}

.content-block__subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #eab948;
    margin: 25px 0 12px;
}

.content-block__subtitle:first-of-type {
    margin-top: 0;
}

.content-block p {
    font-size: 15px;
    line-height: 1.6;
    color: #e5e9f0;
    margin-bottom: 15px;
}

.content-block p:last-child {
    margin-bottom: 0;
}

/* Десктоп версия */
@media (min-width: 768px) {
    .content-block {
        margin: 40px 0 30px;
        padding: 30px;
    }

    .content-block__title {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .content-block__subtitle {
        font-size: 22px;
        margin: 30px 0 15px;
    }

    .content-block p {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* Большие десктопы */
@media (min-width: 1200px) {
    .content-block {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Адаптация под маленькие экраны */
@media (max-width: 480px) {
    .content-block {
        padding: 18px;
    }

    .content-block__title {
        font-size: 22px;
    }

    .content-block__subtitle {
        font-size: 18px;
        margin: 20px 0 10px;
    }

    .content-block p {
        font-size: 14px;
    }
}

/* Блок с описанием казино (таблицы) */
.casino-description-block {
    width: 100%;
    margin: 30px 0 20px;
    background: #1a1f2a;
    border-radius: 20px;
    border: 1px solid #2a313e;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    padding: 25px;
}

.casino-description-block .container {
    max-width: 800px;
    margin: 0 auto;
}

.description-main-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.description-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #a0a8b8;
    text-align: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.description-subtitle strong {
    color: #eab948;
    font-weight: 700;
}

.casino-description-item {
    margin-bottom: 35px;
    background: #1e2430;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #2d3440;
}

.casino-description-item:last-child {
    margin-bottom: 0;
}

.casino-description-title {
    font-size: 20px;
    font-weight: 700;
    color: #eab948;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2d3440;
}

.casino-description-table {
    width: 100%;
    border-collapse: collapse;
}

.casino-description-table tr {
    border-bottom: 1px solid #2a313e;
}

.casino-description-table tr:last-child {
    border-bottom: none;
}

.casino-description-table td {
    padding: 12px 10px;
    font-size: 15px;
}

.table-label {
    font-weight: 700;
    color: #ffffff;
    width: 40%;
    background: #232a36;
    border-radius: 8px 0 0 8px;
}

.table-value {
    font-weight: 400;
    color: #a0a8b8;
    width: 60%;
}

/* Десктоп версия */
@media (min-width: 768px) {
    .casino-description-block {
        margin: 40px 0 30px;
        padding: 30px;
    }

    .description-main-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .description-subtitle {
        font-size: 18px;
        margin-bottom: 35px;
    }

    .casino-description-item {
        padding: 25px;
        margin-bottom: 40px;
    }

    .casino-description-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .casino-description-table td {
        padding: 14px 15px;
        font-size: 16px;
    }
}

/* Большие десктопы */
@media (min-width: 1200px) {
    .casino-description-block .container {
        max-width: 900px;
    }
}

/* Адаптация под маленькие экраны */
@media (max-width: 480px) {
    .casino-description-block {
        padding: 15px;
    }

    .description-main-title {
        font-size: 20px;
    }

    .description-subtitle {
        font-size: 14px;
    }

    .casino-description-item {
        padding: 15px;
    }

    .casino-description-title {
        font-size: 18px;
    }

    .casino-description-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .table-label {
        width: 45%;
    }
    
    .table-value {
        width: 55%;
    }
}

/* Контейнер списка казино - инициализируем счетчик */
.casino-list {
    counter-reset: casino-counter; /* сбрасываем счетчик для нового списка */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.casino-item {
    counter-increment: casino-counter;
    position: relative;
    background: #1a1f2a;
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid #2a313e;
    transition: all 0.2s ease;
}

.casino-item::before {
    content: counter(casino-counter) "";
    position: absolute;
    top: -8px;
    left: -8px;
    background: #eab948;
    color: #0f1219;
    font-weight: 700;
    font-size: 14px;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #0f1219;
    z-index: 2;
}

@media (min-width: 768px) {
    .casino-item::before {
        font-size: 15px;
        min-width: 28px;
        height: 28px;
        border-radius: 14px;
        top: -10px;
        left: -10px;
    }
}

/* Блок FAQ */
.faq-block {
    width: 100%;
    margin: 30px 0 20px;
    background: #1a1f2a;
    border-radius: 20px;
    border: 1px solid #2a313e;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.faq-block .container {
    max-width: 800px;
    padding: 25px;
}

.faq-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: #1e2430;
    border-radius: 16px;
    border: 1px solid #2d3440;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #e5e9f0;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background: #232a36;
}

.faq-question span:first-child {
    flex: 1;
    padding-right: 15px;
    line-height: 1.4;
}

.faq-icon {
    font-size: 14px;
    color: #eab948;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* Повернутая иконка для открытого состояния */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 20px 20px;
    color: #a0a8b8;
    font-size: 15px;
    line-height: 1.6;
    border-top: 1px solid #2d3440;
    background: #1a1f2a;
    align-items: center;
}

.faq-item.active .faq-answer {
    display: flex;
}

.faq-answer p {
    margin: 0;
    width: 100%;
}

/* Десктоп версия */
@media (min-width: 768px) {
    .faq-block {
        margin: 40px 0 30px;
    }

    .faq-block .container {
        padding: 30px;
    }

    .faq-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .faq-question {
        padding: 18px 25px;
        font-size: 17px;
    }

    .faq-answer {
        padding: 25px 25px;
        font-size: 16px;
    }
}

/* Большие десктопы */
@media (min-width: 1200px) {
    .faq-block .container {
        max-width: 900px;
    }
}

/* Адаптация под маленькие экраны */
@media (max-width: 480px) {
    .faq-block .container {
        padding: 20px;
    }

    .faq-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .faq-question {
        padding: 14px 16px;
        font-size: 15px;
    }

    .faq-answer {
        padding: 16px 16px;
        font-size: 14px;
    }
}

/* Блок с автором */
.author-block {
    width: 100%;
    margin: 20px 0 30px;
}

.author-block .container {
    max-width: 800px;
    padding: 0 25px;
}

.author-content {
    background: #1e2430;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid #2d3440;
    display: flex;
    flex-direction: column; /* всегда в колонку */
    align-items: center;
    text-align: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.author-label {
    font-weight: 400;
    color: #a0a8b8;
    font-size: 15px;
}

.author-name {
    font-weight: 600;
    color: #eab948;
    font-size: 16px;
}

.author-description {
    font-weight: 400;
    color: #e5e9f0;
    font-size: 15px;
}

/* Десктоп версия - просто увеличиваем отступы */
@media (min-width: 768px) {
    .author-block {
        margin: 30px 0 40px;
    }

    .author-block .container {
        padding: 0 30px;
    }

    .author-content {
        padding: 20px 25px;
        gap: 8px;
    }

    .author-label {
        font-size: 16px;
    }

    .author-name {
        font-size: 18px;
    }

    .author-description {
        font-size: 16px;
    }
}

/* Большие десктопы */
@media (min-width: 1200px) {
    .author-block .container {
        max-width: 900px;
    }
}

/* Для совсем маленьких экранов оставляем как есть */
@media (max-width: 480px) {
    .author-content {
        padding: 14px 16px;
        gap: 4px;
    }

    .author-label, .author-name, .author-description {
        font-size: 14px;
    }
}

/* Сравнительные таблицы */
.comparison-tables {
    margin: 30px 0;
}

.comparison-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.comparison-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #eab948;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a313e;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1f2a;
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #2a313e;
    font-size: 14px;
}

.comparison-table th {
    background: #1e2430;
    color: #eab948;
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td {
    color: #e5e9f0;
}

@media (max-width: 768px) {
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    .comparison-title {
        font-size: 20px;
    }
    .comparison-subtitle {
        font-size: 18px;
    }
}