.search-form {
    background: var(--bg-element);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.search-input {
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 0.8rem 1.2rem;
    border-radius: 10px 0 0 10px !important;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 0 0 0.2rem var(--border-color-6);
    border-color: var(--border-color-6);
    background: var(--card-bg);
    color: var(--text-primary);
}

.search-btn {
    background: var(--hover-bg);
    color: var(--text-primary-2);
    border: 2px solid var(--border-color);
    border-left: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0 10px 10px 0 !important;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: var(--text-primary-2);
    transform: translateX(2px);
}

.search-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.search-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.form-check-input {
    cursor: pointer;
}

.form-check-label {
    user-select: none;
}

@media (max-width: 576px) {
    .search-form {
        padding: 1rem;
    }

    .search-options {
        flex-direction: column;
        gap: 0.8rem;
    }

    .search-option {
        width: 100%;
    }
}

/* Стили для карточек на главной странице */
.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;
    }
}