/* Figma Popup Styles */
/* استایل‌های پاپ‌آپ فیگما */

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Popup Container */
.figma-popup-container {
    animation: fadeIn 0.3s ease-out;
}

.figma-popup-modal {
    animation: slideIn 0.3s ease-out;
}

/* Backdrop */
.figma-popup-backdrop {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Modal Styles */
.figma-popup-modal {
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header Styles */
.figma-popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

.figma-popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

/* Close Button */
.figma-popup-close {
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.figma-popup-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Content Area */
.figma-popup-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Figma Embed */
.figma-embed-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Image Styles */
.figma-image {
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.figma-image:hover {
    transform: scale(1.02);
}

/* Footer Styles */
.figma-popup-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 0 16px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Button Styles */
.figma-popup-btn {
    transition: all 0.2s ease;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.figma-popup-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.figma-popup-btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.figma-popup-btn-secondary {
    background: white;
    border: 2px solid #e9ecef;
    color: #6c757d;
}

.figma-popup-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .figma-popup-modal {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .figma-popup-content {
        min-height: 150px;
        padding: 1rem;
    }
    
    .figma-popup-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .figma-popup-modal {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    .figma-popup-header {
        padding: 0.75rem 1rem;
    }
    
    .figma-popup-content {
        padding: 0.75rem;
    }
    
    .figma-popup-footer {
        padding: 0.75rem 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .figma-popup-modal {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .figma-popup-content {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    }
    
    .figma-popup-footer {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
    .figma-popup-btn-secondary {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .figma-popup-btn-secondary:hover {
        background: #4a5568;
        border-color: #718096;
        color: #f7fafc;
    }
}

/* Loading Animation */
.figma-popup-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.figma-popup-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Animation */
.figma-popup-success {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Accessibility */
.figma-popup-modal:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.figma-popup-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .figma-popup-modal {
        border: 2px solid #000000;
    }
    
    .figma-popup-btn {
        border: 2px solid #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .figma-popup-container,
    .figma-popup-modal,
    .figma-popup-btn {
        animation: none;
        transition: none;
    }
} 