/* Resource detail page tweaks (reuses topic.css heavily) */

.resource-embed-card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: var(--bg-primary);
}

.resource-embed-layout {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.resource-embed-image {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.resource-embed-details {
    flex: 1;
    min-width: 0;
}

.resource-embed-description {
    margin-bottom: 0.75rem;
}

.resource-embed-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.resource-embed-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    background-color: var(--button-bg);
    color: white;
    text-decoration: none;
    font-weight: 600;
    width: fit-content;
}

.resource-embed-button:hover {
    background-color: var(--button-hover);
}

.resource-embed-url {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    word-break: break-word;
}

.resource-detail-voting {
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .resource-embed-layout {
        flex-direction: column;
    }

    .resource-embed-image {
        width: 100%;
        height: auto;
        max-height: 12rem;
    }
}

