.profile-section {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.profile-wrapper {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

.profile-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.profile-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.profile-nav a.active {
    color: #007bff;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn-login {
    background: #007bff;
    color: white;
}

.btn-register {
    background: #28a745;
    color: white;
}

.btn-logout {
    background: #dc3545;
    color: white;
}

.profile-container {
    padding: 40px 0;
    background: #f5f5f5;
}

.profile-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.profile-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    color: #666;
}

.form-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-save {
    grid-column: 1 / -1;
    background: #007bff;
    color: white;
    padding: 12px;
}

.games-stats {

}

.stats-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #007bff;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.profile-info {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar i {
    font-size: 100px;
    color: #666;
}

.profile-details {
    flex-grow: 1;
}

.info-group {
    margin-bottom: 15px;
}

.info-group label {
    font-weight: 600;
    color: #666;
    margin-right: 10px;
}

.profile-stats {
    margin-bottom: 40px;
}

.profile-stats h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.profile-history h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.history-list {
    border: 1px solid #eee;
    border-radius: 8px;
}

.history-item {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.history-item:last-child {
    border-bottom: none;
}

.game-date {
    color: #666;
}

.game-type {
    font-weight: 500;
}

.game-result {
    text-align: right;
    color: #28a745;
}

/* Мобильные стили */
@media (max-width: 767px) {
    .profile-section {
        padding: 30px 0;
    }

    .profile-wrapper {
        padding: 20px;
    }

    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-avatar {
        margin-bottom: 20px;
    }

    .history-item {
        grid-template-columns: 1fr;
        gap: 5px;
        text-align: center;
    }

    .game-result {
        text-align: center;
    }
}

@media (max-width: 768px) {

    .fixedHeader .mainNav ul li a {
        padding: 10px 0 10px;
    }
    .mainNav ul li  {
        line-height: 2.3;
    }

    .profile-form {
        grid-template-columns: 1fr;
    }

    .profile-nav {
        display: none;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .auth-buttons {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }
}
.profile-fields {
    display: grid;
    gap: 20px;
}

.field-group {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
}

.field-group label {
    display: block;
    color: #007bff;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
}

.field-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.field-value {
    color: white;
    flex-grow: 1;
}

.btn-edit {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.btn-edit:hover {
    color: #0056b3;
}

.edit-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.edit-controls input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px;
    border-radius: 4px;
}

.edit-controls input:focus {
    outline: none;
    border-color: #007bff;
}

.btn-save,
.btn-cancel {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.btn-save {
    color: #28a745;
}

.btn-cancel {
    color: #dc3545;
}

.btn-save:hover {
    color: #218838;
}

.btn-cancel:hover {
    color: #c82333;
}

@media (max-width: 768px) {
    .profile-content {
        margin: 20px;
        padding: 20px;
        backdrop-filter: none;
    }

    .field-group {
        padding: 10px;
    }

    .field-group label {
        font-size: 12px;
    }

    .field-value,
    .edit-controls input {
        font-size: 14px;
    }
}

.profile-info h2 {
    color: white;
    font-size: 24px;
}
