/* c:\q\css\quote-actions.css */

/* --- Favorites Grid Styles --- */
.favorites-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.qc-fav-card {
    background-color: rgb(var(--color-surface));
    border: 1px solid rgb(var(--color-border));
    border-radius: var(--radius-card, 8px);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    color: rgb(var(--color-text));
}

.qc-fav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.qc-fav-text {
    font-family: var(--font-serif, serif);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.qc-fav-meta {
    margin-bottom: 1.5rem;
}

.qc-fav-author {
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
}

.qc-fav-source {
    font-size: 0.875rem;
    color: rgb(var(--color-muted));
    display: block;
}

.qc-fav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgb(var(--color-border));
    padding-top: 1rem;
}

.qc-fav-date {
    font-size: 0.75rem;
    color: rgb(var(--color-muted));
}

.qc-fav-remove-btn {
    background-color: transparent;
    color: rgb(var(--color-brand));
    border: 1px solid rgb(var(--color-brand));
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-btn, 9999px);
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.qc-fav-remove-btn:hover {
    background-color: rgb(var(--color-brand));
    color: rgb(var(--color-bg));
}

/* --- Quote Actions Styles --- */
.qc-quote-actions-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.qc-action-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    color: rgb(var(--color-muted));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.qc-action-btn:hover {
    background-color: rgba(var(--color-brand), 0.1);
    color: rgb(var(--color-brand));
}

.qc-action-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.qc-btn-source-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgb(var(--color-muted));
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.qc-btn-source-toggle:hover {
    color: rgb(var(--color-brand));
}

.qc-btn-source-toggle svg {
    width: 0.75rem;
    height: 0.75rem;
    transition: transform 0.3s;
}

.qc-btn-source-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.qc-share-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    background-color: rgb(var(--color-surface));
    border: 1px solid rgb(var(--color-border));
    border-radius: var(--radius-card, 8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    z-index: 50;
    display: none;
    flex-direction: column;
    padding: 0.5rem;
}

.qc-share-dropdown.show {
    display: flex;
}

.qc-share-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    color: rgb(var(--color-text));
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.qc-share-item:hover {
    background-color: rgba(var(--color-brand), 0.1);
}

.qc-share-item svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.qc-source-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgb(var(--color-border));
    font-size: 0.875rem;
    color: rgb(var(--color-muted));
    display: none;
}

.qc-source-content.show {
    display: block;
}

.qc-divider {
    width: 1px;
    height: 1rem;
    background-color: rgb(var(--color-border));
    margin: 0 0.25rem;
}
