/**
 * Certificate Course Display — Action Bar
 *
 * Theme-aware action bar for verify/share buttons on course pages.
 * Inherits theme colors by default; customizable via the plugin's Customizer.
 *
 * @package Certificate_Verify_Share_LearnDash
 */

.cvs-certificate-actions {
    margin: 20px 0 8px;
    font-family: inherit;
}

.cvs-actions-inner {
    background: var(--cvs-card-bg, inherit);
    border: 1px solid var(--cvs-border-color, rgba(0, 0, 0, 0.1));
    border-radius: 12px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.cvs-actions-inner:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ─── Header (left side) ─── */
.cvs-actions-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cvs-actions-icon {
    color: var(--cvs-accent, #16a34a);
    background: var(--cvs-accent-bg, rgba(22, 163, 74, 0.1));
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cvs-actions-title {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cvs-actions-heading {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    line-height: 1.3;
}

.cvs-actions-code {
    font-size: 12px;
    opacity: 0.6;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    letter-spacing: 0.5px;
}

/* ─── Buttons (right side) ─── */
.cvs-actions-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cvs-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    white-space: nowrap;
    font-family: inherit;
}

/* Verify Button */
.cvs-btn-verify {
    background: var(--cvs-accent, #16a34a);
    color: #ffffff !important;
}

.cvs-btn-verify:hover {
    filter: brightness(0.9);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

/* Download Button */
.cvs-btn-download {
    background: rgba(0, 0, 0, 0.06);
    color: inherit !important;
}

.cvs-btn-download:hover {
    background: rgba(0, 0, 0, 0.1);
    color: inherit !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* Copy Link Button */
.cvs-btn-copy {
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
    font-family: inherit;
}

.cvs-btn-copy:hover {
    background: rgba(0, 0, 0, 0.1);
}

.cvs-btn-copy.cvs-copied {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.cvs-check-icon {
    color: #16a34a;
}

/* Share Buttons — Icon-only circles */
.cvs-share-divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 4px;
}

.cvs-btn-share {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
    opacity: 0.7;
}

.cvs-btn-share:hover {
    transform: translateY(-1px);
    text-decoration: none !important;
    opacity: 1;
}

.cvs-btn-facebook:hover {
    background: #1877f2;
    color: #fff !important;
}

.cvs-btn-twitter:hover {
    background: #0f1419;
    color: #fff !important;
}

.cvs-btn-linkedin:hover {
    background: #0a66c2;
    color: #fff !important;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .cvs-actions-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 14px 16px;
    }

    .cvs-actions-buttons {
        width: 100%;
    }

    .cvs-btn-verify,
    .cvs-btn-download,
    .cvs-btn-copy {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cvs-actions-buttons {
        flex-wrap: wrap;
    }

    .cvs-share-divider {
        display: none;
    }
}