/* AI Blog Generator Enhanced - Frontend Styles
 * Call-to-Action and Content Styling
 */

/* Featured Artwork Display */
.ai-blog-featured-artwork {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.ai-blog-artwork-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-blog-artwork-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Call-to-Action Sections */
.ai-blog-cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.ai-blog-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ai-blog-cta-section h3 {
    color: white !important;
    font-size: 28px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.ai-blog-cta-section h4 {
    color: white !important;
    font-size: 20px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.ai-blog-cta-section p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* CTA Containers */
.ai-blog-cta-purchase,
.ai-blog-cta-download {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.ai-blog-cta-purchase:hover,
.ai-blog-cta-download:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* CTA Buttons */
.ai-blog-cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    margin: 10px;
}

.ai-blog-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ai-blog-cta-button:hover::before {
    left: 100%;
}

.ai-blog-cta-button.purchase-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.ai-blog-cta-button.purchase-button:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
}

.ai-blog-cta-button.download-button {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.ai-blog-cta-button.download-button:hover {
    background: linear-gradient(135deg, #0056b3 0%, #520dc2 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6);
}

/* Responsive CTA Layout */
@media (min-width: 768px) {
    .ai-blog-cta-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .ai-blog-cta-purchase,
    .ai-blog-cta-download {
        display: inline-block;
        width: auto;
        min-width: 300px;
        margin: 15px;
    }
}

@media (max-width: 767px) {
    .ai-blog-cta-section {
        padding: 30px 20px;
    }
    
    .ai-blog-cta-section h3 {
        font-size: 24px;
    }
    
    .ai-blog-cta-section h4 {
        font-size: 18px;
    }
    
    .ai-blog-cta-button {
        width: 100%;
        margin: 10px 0;
    }
    
    .ai-blog-cta-purchase,
    .ai-blog-cta-download {
        margin: 15px 0;
    }
}

/* Content Enhancement */
.ai-blog-enhanced-content {
    line-height: 1.8;
    font-size: 16px;
}

.ai-blog-enhanced-content h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.ai-blog-enhanced-content h3 {
    color: #34495e;
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.ai-blog-enhanced-content p {
    margin-bottom: 20px;
    color: #2c3e50;
}

.ai-blog-enhanced-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Price Display */
.ai-blog-price-display {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

/* Benefits List */
.ai-blog-benefits-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.ai-blog-benefits-list li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.ai-blog-benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

/* Urgency Messaging */
.ai-blog-urgency {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ai-blog-urgency::before {
    content: '⚡';
    margin-right: 8px;
    font-size: 18px;
}

/* Social Proof */
.ai-blog-social-proof {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ai-blog-social-proof::before {
    content: '⭐⭐⭐⭐⭐';
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
}

/* Loading States */
.ai-blog-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility */
.ai-blog-cta-button:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.ai-blog-cta-section:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.5);
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .ai-blog-cta-section {
        background: #000;
        border: 2px solid #fff;
    }
    
    .ai-blog-cta-button {
        border: 2px solid currentColor;
    }
    
    .ai-blog-featured-artwork {
        background: #fff;
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .ai-blog-artwork-image,
    .ai-blog-cta-button,
    .ai-blog-cta-purchase,
    .ai-blog-cta-download {
        transition: none;
    }
    
    .ai-blog-cta-section::before,
    .ai-blog-cta-button::before {
        animation: none;
    }
    
    .ai-blog-loading {
        animation: none;
        border: 3px solid #fff;
    }
}

/* Print Styles */
@media print {
    .ai-blog-cta-section {
        background: #f8f9fa !important;
        color: #000 !important;
        border: 2px solid #000 !important;
    }
    
    .ai-blog-cta-section h3,
    .ai-blog-cta-section h4,
    .ai-blog-cta-section p {
        color: #000 !important;
    }
    
    .ai-blog-cta-button {
        background: #fff !important;
        color: #000 !important;
        border: 2px solid #000 !important;
    }
    
    .ai-blog-featured-artwork {
        background: #fff !important;
        border: 1px solid #000 !important;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .ai-blog-enhanced-content h2,
    .ai-blog-enhanced-content h3,
    .ai-blog-enhanced-content p {
        color: #e9ecef;
    }
    
    .ai-blog-enhanced-content h2 {
        border-bottom-color: #6c757d;
    }
    
    .ai-blog-featured-artwork {
        background: linear-gradient(135deg, #343a40 0%, #495057 100%);
        border-color: #6c757d;
    }
}

/* Animation for CTA appearance */
@keyframes ctaSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-blog-cta-section {
    animation: ctaSlideIn 0.6s ease-out;
}

/* Hover effects for mobile */
@media (hover: none) {
    .ai-blog-cta-button:hover {
        transform: none;
    }
    
    .ai-blog-artwork-image:hover {
        transform: none;
    }
    
    .ai-blog-cta-purchase:hover,
    .ai-blog-cta-download:hover {
        transform: none;
    }
}

