@import url('variables.css');
@import url('base.css');
@import url('animations.css');
@import url('header.css');
@import url('footer.css');
@import url('cookies.css');
@import url('hero.css');
@import url('game.css');
@import url('components.css');

/* Дополнительные стили для страниц */

/* Страница игр */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.game-item {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-normal);
    cursor: pointer;
    text-align: center;
}

.game-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.game-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.game-item.locked::after {
    content: 'Kilitli';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: var(--color-light-gray);
    padding: 4px 8px;
    border-radius: var(--border-radius-small);
}

.game-item-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.game-item h3 {
    margin-bottom: 0.5rem;
    color: var(--color-dark-blue);
}

.game-item p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.game-item-difficulty {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--border-radius-small);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
}

.game-item-difficulty.easy {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.game-item-difficulty.medium {
    background: rgba(255, 230, 109, 0.2);
    color: #FFA726;
}

.game-item-difficulty.hard {
    background: rgba(255, 107, 91, 0.2);
    color: var(--color-red-orange);
}

/* Формы */
.form-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-dark-blue);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-light-gray);
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
    background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-light-blue);
    box-shadow: 0 0 0 3px rgba(107, 182, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Рейтинг */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-top: 2rem;
}

.ranking-table thead {
    background: var(--gradient-primary);
    color: var(--color-white);
}

.ranking-table th,
.ranking-table td {
    padding: 1rem;
    text-align: left;
}

.ranking-table tbody tr {
    border-bottom: 1px solid var(--color-light-gray);
    transition: var(--transition-fast);
}

.ranking-table tbody tr:hover {
    background: rgba(107, 182, 255, 0.05);
}

.ranking-table tbody tr:last-child {
    border-bottom: none;
}

.rank-badge {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: 700;
    color: var(--color-white);
}

.rank-badge.gold {
    background: var(--color-yellow);
    color: var(--color-dark-blue);
}

.rank-badge.silver {
    background: #C0C0C0;
}

.rank-badge.bronze {
    background: #CD7F32;
}

.rank-badge.other {
    background: var(--color-light-blue);
}

/* Контакты */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-normal);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-item p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.contact-item-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: var(--color-white);
    transition: var(--transition-normal);
    position: relative;
}

.contact-icon-email::before {
    content: '@';
    font-weight: 700;
    font-size: 2rem;
}

.contact-icon-phone::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid currentColor;
    border-radius: 4px;
    position: relative;
}

.contact-icon-phone::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 3px solid currentColor;
    border-top: none;
    border-right: none;
    border-bottom-left-radius: 2px;
    top: -2px;
    left: -2px;
}

.contact-icon-address::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 16px solid currentColor;
    position: relative;
}

.contact-icon-address::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 12px;
    background: currentColor;
    border-radius: 2px;
    top: 10px;
    left: -8px;
}

.contact-item:hover .contact-item-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--color-dark-blue);
}

.map-container {
    margin-top: 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-table {
        font-size: 0.75rem;
        display: table;
        width: 100%;
        min-width: 600px;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 0.6rem 0.4rem;
        white-space: nowrap;
    }
    
    .ranking-table th:first-child,
    .ranking-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 10;
        background: var(--gradient-primary);
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    }
    
    .ranking-table tbody tr td:first-child {
        background: var(--color-white);
    }
    
    .ranking-table tbody tr:hover td:first-child {
        background: rgba(107, 182, 255, 0.05);
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .contact-item-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .form-section {
        padding: 2rem 0;
    }
    
    .map-container iframe {
        height: 300px;
    }
}
