/* Стили шапки и прогресс-баров */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--light-text);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    margin: 8px;
    box-shadow: var(--shadow);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-actions {
    display: flex;
    gap: 6px;
}

.text-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--light-text);
    padding: 6px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 0;
}

.progress-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.progress-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px;
    backdrop-filter: blur(4px);
}

.progress-title {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-bottom: 2px;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
}

.progress-stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.6rem;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .header {
        padding: 6px 8px;
        margin: 6px;
    }
    
    .header h1 {
        font-size: 1rem;
    }
    
    .text-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .progress-cards {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
}

@media (max-height: 600px) {
    .header {
        padding: 4px 6px;
        margin: 4px;
    }
    
    .progress-card {
        padding: 4px;
    }
    
    .progress-title {
        font-size: 0.6rem;
        margin-bottom: 1px;
    }
    
    .stat-value {
        font-size: 0.8rem;
    }
    
    .stat-label {
        font-size: 0.5rem;
    }
}

/* Добавить в styles/header.css */
.lang-en #games-btn,
.lang-tr #games-btn {
    display: none;
}


/* Добавьте это в header.css или base.css */
.language-switcher {
    display: flex;
    gap: 4px;
    margin-right: 6px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--light-text);
    padding: 4px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 32px;
    text-align: center;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

.lang-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Адаптация для мобильных устройств */
@media (max-width: 480px) {
    .language-switcher {
        gap: 2px;
    }
    
    .lang-btn {
        padding: 3px 6px;
        font-size: 0.7rem;
        min-width: 28px;
    }
}

@media (max-height: 600px) {
    .lang-btn {
        padding: 2px 5px;
        font-size: 0.7rem;
    }
}