/**
 * TeleWorld Shortcodes CSS
 * 
 * Styles for shortcode components
 * 
 * @package TeleWorld_AI_Theme
 */

/* Demo Interface Styles */
.teleworld-ai-demo-interface {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.demo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.demo-header h2 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.demo-header p {
    color: #6b7280;
    font-size: 1.125rem;
}

.demo-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.demo-service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.demo-service-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.demo-service-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.demo-service-card button {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.demo-service-card button:hover {
    opacity: 0.9;
}

/* AI Chat Button */
.demo-service-card button[style*="background: #667eea"] {
    background: #667eea !important;
    color: white;
}

/* Text Completion Button */
.demo-service-card button[style*="background: #10b981"] {
    background: #10b981 !important;
    color: white;
}

/* Image Generation Button */
.demo-service-card button[style*="background: #f59e0b"] {
    background: #f59e0b !important;
    color: white;
}

/* Code Generation Button */
.demo-service-card button[style*="background: #8b5cf6"] {
    background: #8b5cf6 !important;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .teleworld-ai-demo-interface {
        padding: 1rem;
    }
    
    .demo-header h2 {
        font-size: 2rem;
    }
    
    .demo-services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .demo-service-card {
        padding: 1.5rem;
    }
}

/* Loading States */
.teleworld-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error States */
.teleworld-error {
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

/* Success States */
.teleworld-success {
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}
