.to-all-posts-btn {
    background: var(--hover-bg);
    color: var(--text-primary-2);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.to-all-posts-btn:hover {
    color: var(--text-primary-2);
    transform: translateX(-5px);
}

/* Стили для карточек на главной странице */
.card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px var(--shadow-color);
    background-color: var(--bg-element);
}

.card-body {
    padding-top: 24px;
}

.card-title a {
    transition: color 0.3s ease;
    color: var(--text-primary);
}

.card-title a:hover {
    color: var(--text-secondary-3) !important;
}

.card-highlighted {
    box-shadow: 0 0 15px var(--border-color-6);
    transition: all 0.3s ease;
}

.card-highlighted:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--border-color-6);
}

.post-avatar-superuser {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px #ff0000;
}

.post-avatar-vi {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px #000000;
}

.post-avatar-default {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(56, 239, 125, 0.6);
}

@media (max-width: 576px) {
    .card-body {
        padding: 0.75rem;
        padding-top: 1.4rem;
    }

    .card-title h3 {
        font-size: 1.2rem;
    }

    .card-text {
        font-size: 14px;
    }

    .badge {
        font-size: 0.7rem;
    }

    .custom-btn {
        font-size: 14px;
        padding: 0.4rem 0.8rem;
    }

    .post-avatar-superuser,
    .post-avatar-vi,
    .post-avatar-default {
        width: 20px;
        height: 20px;
    }
}

.read-btn {
    background: var(--hover-bg);
    color: var(--text-primary-2) !important;
    transition: transform 0.2s ease;
    white-space: nowrap;
}

.read-btn:hover {
    transform: scale(1.02);
}

@media (max-width: 432px) {
    .read-btn {
        font-size: 14px;
        padding: 0.4rem 0.8rem;
        width: 100%;
        justify-content: center;
    }

    .read-btn i {
        font-size: 12px;
    }

    .card-body .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
    }
}

.favorite-btn {
    background: var(--hover-bg);
    color: var(--text-primary-2);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.favorite-btn.favorited {
    background: var(--hover-bg);
    color: var(--text-primary-2);
}

.favorite-btn:hover {
    color: var(--text-primary-2);
    transform: scale(1.05);
}

@media (max-width: 854px) {
    .favorite-btn {
        white-space: nowrap !important;
    }
}