/**
 * Frontend Styles for Creation Genius
 */

/* AI Generated Post Styling */
.creation-genius-generated-post {
    position: relative;
}

/* AI Watermark */
.creation-genius-watermark {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    opacity: 0.7;
    font-style: italic;
    color: #666;
}

.creation-genius-watermark small {
    font-size: 12px;
}

/* AI Content Highlight */
.creation-genius-generated-content {
    background: linear-gradient(to right, rgba(76, 175, 80, 0.05), rgba(76, 175, 80, 0.02));
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

/* AI Badge */
.creation-genius-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
    vertical-align: super;
}

/* Floating Action Button */
.creation-genius-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.creation-genius-fab:hover {
    background: #005a87;
    transform: scale(1.1);
}

.creation-genius-fab:active {
    transform: scale(0.95);
}

/* Analytics Indicator */
.creation-genius-analytics-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    display: none;
    z-index: 1001;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* Loading Overlay */
.creation-genius-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.creation-genius-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Toast */
.creation-genius-notification {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #32373c;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    max-width: 300px;
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.creation-genius-notification.success {
    background: #46b450;
}

.creation-genius-notification.error {
    background: #dc3545;
}

.creation-genius-notification.warning {
    background: #ffc107;
    color: #212529;
}

/* Responsive Design */
@media (max-width: 768px) {
    .creation-genius-fab {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .creation-genius-watermark {
        font-size: 11px;
    }

    .creation-genius-notification {
        right: 15px;
        bottom: 70px;
        max-width: 250px;
    }
}