.modern-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.card-content {
    padding: 24px;
}

/* ===== ЗАГОЛОВОК КАРТОЧКИ - ПОЛНАЯ АДАПТИВНОСТЬ ===== */
.card-header {
    margin-bottom: 10px;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

/* Левая часть - фото и имя */
.user-main-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.avatar-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.verified-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: #10b981;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.user-name-section {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Правая часть - город и просмотры */
.user-meta-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.meta-items {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.location, .views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.location i, .views i {
    color: #667eea;
    flex-shrink: 0;
}

/* ===== ОСТАЛЬНЫЕ СЕКЦИИ ===== */
.description-section {
    position: relative;
    margin: 12px 0;
    padding: 0 0 0 40px;
}

.quote-icon {
    position: absolute;
    left: 0;
    top: 0;
    color: #667eea;
    opacity: 0.3;
    font-size: 24px;
}

.description-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
    font-style: italic;
}

.interests-section {
    margin: 24px 0;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.interest-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.2s ease;
}

.interest-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin: 8px 0;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.stat-value {
    font-size: 0.9rem;
    color: #1f2937;
    font-weight: 600;
}

.action-section {
    margin-top: 9px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ===== ПОЛНАЯ АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ===== */

/* Планшеты (768px и меньше) */
@media (max-width: 768px) {
    .card-content {
        padding: 20px;
    }

    .user-info {
        gap: 12px;
    }

    .user-main-info {
        gap: 12px;
    }

    .avatar-wrapper {
        width: 60px;
        height: 60px;
    }

    .user-name {
        font-size: 1.2rem;
    }

    .location, .views {
        font-size: 0.8rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .description-section {
        padding-left: 32px;
    }

    .quote-icon {
        font-size: 20px;
    }

    .interests-tags {
        justify-content: flex-start;
    }
}

/* Мобильные устройства (576px и меньше) */
@media (max-width: 576px) {
    .card-content {
        padding: 16px;
    }

    .user-info {
        align-items: flex-start;
        gap: 12px;
    }

    .user-main-info {
        gap: 12px;
        flex: 1;
    }

    .user-meta-info {
        align-items: flex-end;
    }

    .avatar-wrapper {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .avatar-placeholder {
        font-size: 20px;
    }

    .user-name {
        font-size: 1.1rem;
        -webkit-line-clamp: 2;
    }

    .meta-items {
        gap: 4px;
    }

    .location, .views {
        font-size: 0.75rem;
        gap: 4px;
    }

    .verified-badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .description-section {
        padding-left: 28px;
        margin: 20px 0;
    }

    .quote-icon {
        font-size: 18px;
    }

    .description-text {
        font-size: 0.9rem;
    }

    .interests-section {
        margin: 20px 0;
    }

    .section-title {
        font-size: 0.9rem;
    }

    .interest-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .stats-section {
        margin: 20px 0;
        padding: 16px;
        gap: 10px;
    }

    .stat-item {
        gap: 10px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-value {
        font-size: 0.85rem;
    }

    .action-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Очень маленькие экраны (400px и меньше) */
@media (max-width: 400px) {
    .card-content {
        padding: 12px;
    }

    .user-info {
        gap: 8px;
    }

    .user-main-info {
        gap: 8px;
    }

    .avatar-wrapper {
        width: 44px;
        height: 44px;
    }

    .user-name {
        font-size: 1rem;
    }

    .location, .views {
        font-size: 0.7rem;
    }

    .description-section {
        padding-left: 24px;
    }

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

    .description-text {
        font-size: 0.85rem;
    }

    .interests-tags {
        gap: 6px;
    }

    .interest-tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .stats-section {
        padding: 12px;
    }

    .action-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* Гарантия что контент не выходит за границы */
.user-name-section,
.user-details {
    overflow: hidden;
}

.meta-items span {
    text-align: right;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
 .description-section {
     position: relative;
     padding: 16px 20px;
     background: #f8faff;
     border-radius: 12px;
     border-left: 4px solid #667eea;
     margin-top: 12px;
 }

.quote-icon {
    position: absolute;
    top: -8px;
    left: 16px;
    color: #667eea;
    font-size: 20px;
    opacity: 0.3;
    background: #fff;
    padding: 0 8px;
}

.description-text {
    font-size: 14px;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
}

/* ===== ССЫЛКА "ЧИТАТЬ ДАЛЕЕ" ===== */
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-left: 6px;
    padding: 4px 12px 4px 8px;
    border-radius: 50px;
    background: rgba(102, 126, 234, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.read-more-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.read-more-link .read-more-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.read-more-link:hover .read-more-icon {
    transform: translateX(4px);
}

.read-more-text {
    font-size: 13px;
}

/* Альтернативный стиль с точками */
.read-more-link .dots {
    color: #a0aec0;
    font-weight: 400;
    margin-right: 4px;
}

/* Адаптив */
@media (max-width: 576px) {
    .read-more-link {
        font-size: 12px;
        padding: 2px 10px 2px 6px;
    }

    .read-more-link .read-more-text {
        font-size: 12px;
    }
}


