/* Стили для страниц игр Welvura */

/* Секция hero для игр */
.game-hero {
    background: linear-gradient(135deg, #8758f1 0%, #a282e8 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.game-hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('../images/games/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.2;
    z-index: 0;
}

.game-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.game-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-hero p {
    font-size: 20px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Секция описания игры */
.game-description {
    padding: 80px 0;
    background-color: white;
}

.game-description-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.game-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.game-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.game-text p {
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.7;
}

.game-text h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--dark-color);
}

.game-text ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.game-text ul li {
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Секция правил игры */
.game-rules {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.game-rules h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.rules-block {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.rules-block h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.rules-block p {
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.7;
}

.rules-block ol, .rules-block ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.rules-block ol li, .rules-block ul li {
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Игровой интерфейс */
.game-interface {
    padding: 80px 0;
    background-color: white;
}

.game-interface h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.game-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-window {
    width: 100%;
    max-width: 600px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.game-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-title {
    font-size: 24px;
    font-weight: 700;
}

.game-balance {
    font-size: 18px;
}

.game-board {
    padding: 20px;
}

.cookies-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.cookie {
    aspect-ratio: 1;
    background-color: #f8e6b2;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: var(--dark-color);
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.cookie::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('../images/games/cookie.png') center/cover no-repeat;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.cookie.opened::before {
    opacity: 0;
}

.cookie.disabled {
    pointer-events: none;
    opacity: 0.7;
}

.cookie.bomb::before {
    background: url('../images/games/bomb.png') center/cover no-repeat;
    opacity: 1;
}

.cookie.opened {
    background-color: #e2f0cb;
}

.cookie.bomb {
    background-color: #ffcccc;
}

.game-controls {
    padding: 20px;
    border-top: 1px solid #eee;
}

.bet-controls {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.bet-controls label {
    margin-right: 10px;
    font-weight: 600;
}

.bet-controls input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}

.btn-minus, .btn-plus {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 5px;
}

.game-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.btn-start, .btn-collect {
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    margin: 0 10px;
}

.btn-start {
    background-color: var(--secondary-color);
    color: white;
}

.btn-collect {
    background-color: var(--accent-color);
    color: white;
}

.btn-start:hover, .btn-collect:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-start:disabled, .btn-collect:disabled {
    background-color: #ddd;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.multiplier {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
}

/* FAQ-секция */
.faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.faq-section h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-color);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Адаптивность */
@media (max-width: 992px) {
    .game-description-content {
        grid-template-columns: 1fr;
    }
    
    .game-image {
        margin-bottom: 30px;
    }
    
    .cookies-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .game-hero h1 {
        font-size: 32px;
    }
    
    .game-hero p {
        font-size: 18px;
    }
    
    .game-text h2 {
        font-size: 28px;
    }
    
    .game-text h3 {
        font-size: 22px;
    }
    
    .rules-block h3 {
        font-size: 22px;
    }
    
    .game-buttons {
        flex-direction: column;
    }
    
    .btn-start, .btn-collect {
        margin: 10px 0;
    }
    
    .cookies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .cookies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
} 