/* Стили для страницы профиля пользователя */

.user-profile-container {
    display: flex;
    gap: 30px;
    padding: 20px;
}

.user-info-panel {
    width: 250px;
    max-width: 250px;
    min-width: 250px;
    padding: 20px;
    height: fit-content;
}

.user-listings-panel {
    flex: 1;
    padding: 20px;
}

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

/* Стили для простых карточек объявлений */
.listing-card-simple {
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.2s ease;
}

.listing-card-simple:hover {
    transform: translateY(-2px);
}

.listing-image-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.listing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-content {
    padding: 0;
}

.listing-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.listing-title {
    font-size: 15px;
    font-weight: 400;
    margin: 0;
    color: #333;
    line-height: 1.3;
    flex: 1;
    margin-right: 8px;
    transition: color 0.2s ease;
}

.listing-card-simple:hover .listing-title {
    color: #007bff;
}

.btn-favorite {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    font-family: monospace;
    position: relative;
    z-index: 2;
}

.btn-favorite:hover {
    color: #dc3545;
}

.btn-favorite svg {
    width: 20px;
    height: 20px;
}

.btn-favorite.active {
    color: #dc3545 !important;
}

.btn-favorite.active svg {
    color: #dc3545 !important;
    fill: #dc3545 !important;
}

.listing-age {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.listing-location, .listing-online {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.location-icon, .online-icon {
    font-size: 12px;
}

/* Стили для пагинации */
.pagination {
    padding: 32px 0;
}

.pagination ul {
    padding: 0;
    margin: 0;
}

.pagination ul li {
    display: inline-block;
    margin-bottom: 4px;
    font-weight: 400;
}

.pagination ul li a, .pagination ul li span {
    color: gray;
    text-align: center;
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 6px;
    border: 1px solid #e6e6e6;
    text-decoration: none;
}

.pagination ul li.active a, .pagination ul li.active span {
    background: var(--color-text-blue);
    color: #fff;
    border: 1px solid transparent;
}

.pagination ul li.disabled a, .pagination ul li.disabled span {
    background: var(--color-text-dark-200);
    color: var(--color-text-dark-400);
    border: 1px solid transparent;
}

.user-profile-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.user-avatar {
    flex-shrink: 0;
    position: relative;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.avatar-circle.has-image {
    background: none;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-text {
    z-index: 2;
}



.user-details {
    flex: 1;
}

.user-name {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px 0;
    text-align: left;
}

.user-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 16px;
}

.star.filled {
    color: #ffc107;
}

.star.half {
    color: #ffc107;
}

.rating-text {
    font-size: 14px;
    color: #666;
}



.user-activity {
    margin-bottom: 24px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.activity-icon {
    font-size: 16px;
}

.user-bio {
    margin-bottom: 24px;
    padding: 16px 0;
    border-top: 1px solid #eee;
}

.user-bio h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #333;
}

.user-bio p {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

.bio-content {
    position: relative;
}

.bio-text-short,
.bio-text-full {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0 0 8px 0;
}

.bio-text-short p,
.bio-text-full p {
    margin: 0 0 8px 0;
}

.bio-text-short p:last-child,
.bio-text-full p:last-child {
    margin-bottom: 0;
}

.bio-text-full.hidden {
    display: none !important;
}

.bio-text-short.hidden {
    display: none !important;
}

.bio-toggle-btn {
    background: none;
    border: none;
    color: #007bff;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    margin-top: 4px;
}

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

.user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.company-badge {
    background: #e8f5e8;
    color: #2e7d32;
}

.individual-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.verified-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-icon {
    font-size: 14px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-icon svg {
    width: 16px;
    height: 16px;
}





.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.listings-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.listings-count {
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 16px;
}

.no-ads {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-listings-icon {
    margin-bottom: 16px;
}

.no-listings-image {
    width: 120px;
    height: auto;
    max-width: 100%;
}

.no-ads h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.no-ads p {
    font-size: 14px;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .user-profile-container {
        flex-direction: column;
        padding: 16px;
    }
    
    .user-info-panel {
        flex: none;
    }
    
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .listings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
