/* --- КАРТОЧКА ПОЛЬЗОВАТЕЛЯ --- */
.profile-card {
    background: rgba(30, 25, 50, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 1px solid rgba(108, 92, 231, 0.2);
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #6c5ce7, #00d2ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
    flex-shrink: 0;
}

.profile-info {
    flex-grow: 1;
}

.profile-name {
    font-size: 2em;
    margin-bottom: 10px;
    color: white;
}

.profile-details p {
    color: #bdc3c7;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.profile-details strong {
    color: #a29bfe;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-btn {
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95em;
    border: 1px solid transparent;
}

.btn-edit {
    background: rgba(108, 92, 231, 0.2);
    color: #a29bfe;
    border-color: #6c5ce7;
}
.btn-edit:hover { background: #6c5ce7; color: white; }

.btn-orders {
    background: rgba(0, 210, 255, 0.1);
    color: #00d2ff;
    border-color: #00d2ff;
}
.btn-orders:hover { background: #00d2ff; color: #000; }

.btn-logout {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border-color: #ff6b6b;
}
.btn-logout:hover { background: #ff6b6b; color: white; }


/* --- СПИСОК ОТЗЫВОВ (КАК В ТОВАРЕ) --- */
.user-reviews-section h3 {
    font-size: 1.8em;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.profile-review-card {
    background: rgba(45, 40, 65, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.profile-review-card:hover {
    transform: translateX(5px);
    border-color: rgba(108, 92, 231, 0.3);
}

.p-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.product-link-title {
    font-size: 1.3em;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: block;
    margin-bottom: 5px;
}

.product-link-title:hover {
    color: #a29bfe;
    text-shadow: 0 0 10px rgba(162, 155, 254, 0.5);
}

.p-review-date {
    color: #888;
    font-size: 0.9em;
}

.p-review-stars {
    color: #ffd700;
    font-size: 1.1em;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.p-review-text {
    color: #ecf0f1;
    line-height: 1.6;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
}

/* Адаптивность для карточки профиля */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    .profile-actions {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
}


/* --- АДАПТИВ ДЛЯ ПРОФИЛЯ --- */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column; /* Элементы идут друг под другом */
        text-align: center;
        padding: 30px 20px; /* Уменьшаем боковые отступы, чтобы карточка влезала в экран */
        gap: 20px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2em;
        margin: 0 auto; /* Жестко центрируем аватар */
    }

    .profile-info {
        width: 100%;
        overflow-wrap: break-word; /* Чтобы длинный email не растягивал карточку */
    }

    .profile-actions {
        flex-direction: column; /* Кнопки выстраиваем в столбик, а не в ряд! */
        width: 100%;
        gap: 12px;
    }

    .profile-btn {
        width: 100%; /* Растягиваем кнопки на всю ширину */
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 14px; /* Увеличиваем высоту кнопок для удобства на смартфонах */
    }
}

@media (max-width: 600px) {
    .p-review-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}