/* QUOTE SHARE IMAGE STYLES */
.quote-share-with-image {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.quote-share-with-image.share-layout-horizontal .share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quote-share-with-image.share-layout-vertical .share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quote-share-with-image.share-layout-buttons-only .share-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quote-share-with-image.share-layout-buttons-only {
    padding: 0;
    background: transparent;
    border: none;
}

.share-header {
    margin-bottom: 20px;
}

.share-header h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.share-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    flex-shrink: 0;
}

.share-layout-vertical .share-btn {
    width: 100%;
    justify-content: center;
}

.facebook-share-btn {
    background: #1877f2;
    color: white;
}

.twitter-share-btn {
    background: #1da1f2;
    color: white;
}

.whatsapp-share-btn {
    background: #25d366;
    color: white;
}

.share-with-image-btn {
    background: #6f42c1;
    color: white;
}

.download-image-btn {
    background: #28a745;
    color: white;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.share-image-preview {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.preview-container {
    max-width: 600px;
    margin: 15px auto;
}

.preview-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.preview-notice {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* MODAL STYLES */
.share-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-preview {
    margin-bottom: 20px;
}

.modal-preview img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.share-options-modal p {
    margin-bottom: 15px;
    font-weight: 500;
    color: #555;
}

.modal-share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.modal-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.modal-share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.facebook-modal { background: #1877f2; }
.twitter-modal { background: #1da1f2; }
.linkedin-modal { background: #0077b5; }
.pinterest-modal { background: #bd081c; }
.download-modal { background: #6c757d; }

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.copy-image-link {
    background: #6f42c1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.copy-image-link:hover {
    background: #5a32a3;
}

.modal-close-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: #545b62;
}

/* NOTIFICATION STYLES */
.share-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.share-notification.success {
    background: #28a745;
    border-left: 4px solid #1e7e34;
}

.share-notification.error {
    background: #dc3545;
    border-left: 4px solid #bd2130;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
    .quote-share-with-image.share-layout-horizontal .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .modal-share-buttons {
        grid-template-columns: 1fr;
    }
    
    .share-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .quote-share-with-image {
        padding: 15px;
    }
    
    .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}