/* main-redesign.css - Обновленные стили для всего сайта */

/* Основные стили для всего документа */
body {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0c1622 0%, #162436 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Основное содержимое */
.main-content {
    margin-left: 220px;
    padding: 1.5rem;
    width: calc(100% - 220px);
    max-width: 100%;
    margin-top: 80px; /* Увеличиваем отступ сверху для фиксированного хедера */
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* Секции */
.main-content > section {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
}

.main-content > section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Заголовки секций */
.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
    border-radius: 3px;
}

.section-header .view-all {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: absolute;
    right: 0;
}

.section-header .view-all:hover {
    color: #fff;
    transform: translateX(3px);
}

/* Карточки игр */
.game-carousel {
    position: relative;
    margin-bottom: 2rem;
    background: var(--bg-dark);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
    padding: 0.5rem;
}

.game-card {
    background: var(--bg-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 15px rgba(255, 199, 44, 0.2);
    border-color: rgba(255, 199, 44, 0.2);
}

.game-image {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* Соотношение сторон 4:3 */
}

.game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.game-btn {
    flex: 1;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.play-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #000;
}

.demo-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 199, 44, 0.3);
}

.demo-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.game-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #fff;
    transition: all 0.3s ease;
}

.game-provider {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.game-card:hover .game-title {
    color: var(--gold);
}

/* Провайдеры */
.providers-section {
    padding: 2rem;
    background: var(--bg-dark);
    border-radius: var(--border-radius-lg);
    margin-bottom: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.provider-logo {
    background: linear-gradient(135deg, rgba(28, 44, 62, 0.8) 0%, rgba(37, 53, 72, 0.9) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100px;
    text-align: center;
}

.provider-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 199, 44, 0.2);
}

.provider-logo svg {
    max-width: 100%;
    max-height: 100%;
    transition: all 0.3s ease;
}

.provider-logo:hover svg {
    filter: drop-shadow(0 0 5px rgba(255, 199, 44, 0.5));
}

/* Живые ставки */
.live-bets {
    padding: 2rem;
    background: var(--bg-dark);
    border-radius: var(--border-radius-lg);
    margin-bottom: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bets-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.bets-table th, .bets-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bets-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bets-table tr {
    transition: all 0.3s ease;
}

.bets-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.bets-table .win {
    color: var(--green);
}

.bets-table .loss {
    color: var(--red);
}

/* Методы оплаты */
.payment-methods-section {
    padding: 2rem;
    background: var(--bg-dark);
    border-radius: var(--border-radius-lg);
    margin-bottom: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-methods-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.payment-method-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 150px;
    height: 150px;
}

.payment-method-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 199, 44, 0.2);
}

.payment-method-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.payment-method-card:hover .payment-method-icon {
    transform: scale(1.1);
}

.payment-method-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-align: center;
}

.payment-method-card:hover .payment-method-name {
    color: #fff;
}

/* Футер */
.footer {
    background: linear-gradient(135deg, rgba(26, 32, 53, 0.95) 0%, rgba(18, 24, 40, 0.95) 100%);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 199, 44, 0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--gold);
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-media {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-icon i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #fff;
    transform: translateX(3px);
}

.social-icon:hover i {
    background: var(--gold);
    color: #000;
    transform: rotate(360deg);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 992px) {
    .main-content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }

    .carousel-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .providers-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .payment-methods-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
        margin-top: 70px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .carousel-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .providers-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .payment-methods-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }

    .footer-section {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 0.8rem;
        margin-top: 60px;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .carousel-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .providers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .payment-methods-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .game-info {
        padding: 0.8rem;
    }

    .game-title {
        font-size: 0.9rem;
    }

    .game-provider {
        font-size: 0.75rem;
    }
}
