/**
 * Share/Embed Feature Styles
 */

/* Share Buttons Group */
.share-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
}

.share-buttons .btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px;
    max-width: 26px;
    min-height: 26px;
    max-height: 26px;
    flex: 0 0 26px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.share-buttons .btn-share:hover {
    background: #f8f9fa;
    border-color: #CD9900;
    color: #CD9900;
}

.share-buttons .btn-share.btn-facebook {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.share-buttons .btn-share.btn-facebook:hover {
    background: #0d65d9;
    border-color: #0d65d9;
}

/* Embed Modal */
.embed-modal .modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.embed-modal .modal-title {
    font-weight: 600;
    color: #333;
}

.embed-modal .embed-options {
    margin-bottom: 20px;
}

.embed-modal .embed-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.embed-modal .embed-option:hover {
    border-color: #CD9900;
    background: #fffbf0;
}

.embed-modal .embed-option.active {
    border-color: #CD9900;
    background: #fffbf0;
}

.embed-modal .embed-option input[type="radio"] {
    margin-right: 12px;
    accent-color: #CD9900;
}

.embed-modal .embed-option-label {
    font-weight: 500;
    color: #333;
}

.embed-modal .embed-option-desc {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

/* Embed Preview */
.embed-preview {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.embed-preview-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.embed-preview iframe {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

/* Embed Code Textarea */
.embed-code-container {
    position: relative;
}

.embed-code-container textarea {
    width: 100%;
    height: 100px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f9fa;
    resize: none;
}

.embed-code-container textarea:focus {
    outline: none;
    border-color: #CD9900;
}

.embed-code-container .btn-copy-code {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 6px 12px;
    font-size: 12px;
    background: #CD9900;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.embed-code-container .btn-copy-code:hover {
    background: #b38800;
}

.embed-code-container .btn-copy-code.copied {
    background: #28a745;
}

/* Toast Notification */
.share-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.share-toast.success {
    background: #28a745;
}

/* Responsive */
@media (max-width: 768px) {
    .share-buttons {
        margin-top: 10px;
    }

    .embed-modal .modal-dialog {
        margin: 10px;
    }

    .embed-preview iframe {
        width: 100% !important;
    }
}
