/**
 * Social Share Modal Styles
 * 
 * @package BestRates
 */

/* Modal Overlay */
.social-share-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.social-share-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Modal Content */
.social-share-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.social-share-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.social-share-modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.social-share-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1E3A5F;
    margin: 0 0 1.25rem;
}

/* Tabs */
.social-share-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.social-share-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.social-share-tab:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.social-share-tab.active {
    background: #1E3A5F;
    border-color: #1E3A5F;
    color: #ffffff;
}

.social-share-tab svg {
    flex-shrink: 0;
}

/* Content Area */
.social-share-content-wrapper {
    margin-bottom: 1rem;
}

.social-share-char-count {
    font-size: 0.75rem;
    color: #64748b;
    text-align: right;
    margin-bottom: 0.5rem;
}

.social-share-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    resize: vertical;
    transition: border-color 0.2s;
}

.social-share-textarea:focus {
    outline: none;
    border-color: #D4A853;
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

/* Actions */
.social-share-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-copy,
.social-share-actions .btn-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-copy {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

.btn-copy:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-copy.copied {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.social-share-actions .btn-share {
    background: #D4A853;
    border: 1px solid #D4A853;
    color: #1E3A5F;
}

.social-share-actions .btn-share:hover {
    background: #c49943;
    border-color: #c49943;
}

/* Tip */
.social-share-tip {
    font-size: 0.8125rem;
    color: #64748b;
    background: #fef3c7;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0;
}

/* Share Trigger Button */
.social-share-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
}

.social-share-trigger:hover {
    background: #f8fafc;
    border-color: #D4A853;
    color: #D4A853;
}

/* Responsive */
@media (max-width: 640px) {
    .social-share-modal-content {
        padding: 1rem;
    }
    
    .social-share-tabs {
        gap: 0.25rem;
    }
    
    .social-share-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .social-share-tab span {
        display: none;
    }
    
    .social-share-actions {
        flex-direction: column;
    }
    
    .btn-copy,
    .social-share-actions .btn-share {
        justify-content: center;
    }
}
