/**
 * AI Growth SEO Frontend Styles
 *
 * @package AI_Growth_SEO
 * @since 1.9.8
 */

/* Web Stories Base Styles */
.ai-web-story {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.web-story-content {
    max-width: 100%;
    margin: 0 auto;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .web-story-mobile-enhanced {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .web-story-content {
        padding: 0 15px;
    }
}

/* AMP Story Compatibility */
.amp-web-story {
    background: #000;
    color: #fff;
}

/* Loading States */
.web-story-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.web-story-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@media print {
    .ai-web-story {
        color: #000;
        background: #fff;
    }
}

.ai-growth-search-summary {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #4f46e5;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 0 0 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.ai-growth-search-summary__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ai-growth-search-summary__icon {
    font-size: 20px;
    line-height: 1;
}

.ai-growth-search-summary__title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    padding: 0;
}

.ai-growth-search-summary__content {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

.ai-growth-search-summary__content a {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ai-growth-search-summary__content a:hover {
    color: #3730a3;
}

@media (max-width: 768px) {
    .ai-growth-search-summary {
        padding: 16px 18px;
        margin: 0 0 20px 0;
    }

    .ai-growth-search-summary__title {
        font-size: 15px;
    }

    .ai-growth-search-summary__content {
        font-size: 14px;
    }
}

@media print {
    .ai-growth-search-summary {
        border: 1px solid #999;
        page-break-inside: avoid;
    }
}
