/* GEO AI Optimizer Pro — Frontend Styles */

.geoai-product-frontend-wrap,
.geoai-category-frontend-wrap {
    direction: rtl;
    margin-top: 32px;
    margin-bottom: 32px;
}

/* Summary block */

.geoai-summary-block {
    background: #f8fbff;
    border: 1px solid #d4e8f7;
    border-radius: 10px;
    padding: 22px 24px;
    margin-top: 24px;
    margin-bottom: 24px;
    font-family: inherit;
}

.geoai-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 18px;
}

.geoai-ai-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    flex: 0 0 auto;
}

.geoai-summary-header h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    color: #005177;
    flex: 0 1 auto;
}

.geoai-badge-ai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: auto;
    padding: 4px 10px;
    font-size: 11px;
    line-height: 1.2;
    background: #0073aa;
    color: #fff;
    border-radius: 999px;
    white-space: nowrap;
}

.geoai-summary-text {
    font-size: 15px;
    line-height: 1.95;
    color: #333;
}

.geoai-summary-text p {
    margin: 0 0 14px 0;
}

.geoai-summary-text p:last-child {
    margin-bottom: 0;
}

.geoai-short-answer {
    background: #fff;
    border-right: 4px solid #0073aa;
    padding: 12px 14px;
    border-radius: 0 6px 6px 0;
    margin: 18px 0;
    font-size: 14px;
    line-height: 1.8;
}

.geoai-takeaways {
    margin-top: 18px;
}

.geoai-takeaways strong {
    display: block;
    margin-bottom: 10px;
}

.geoai-takeaways ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.geoai-takeaways li {
    position: relative;
    margin: 0 0 10px 0;
    padding-right: 16px;
    font-size: 14px;
    line-height: 1.85;
}

.geoai-takeaways li:last-child {
    margin-bottom: 0;
}

.geoai-takeaways li::before {
    content: "•";
    position: absolute;
    right: 0;
    top: 0;
    color: #46b450;
    font-weight: 700;
}

.geoai-who-for,
.geoai-who-not-for {
    font-size: 14px;
    line-height: 1.85;
    color: #555;
    padding: 12px 14px;
    background: #f0f7fd;
    border-radius: 6px;
    margin-top: 16px;
}

/* Product + Category details blocks */

.geoai-product-details-block,
.geoai-category-details-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.geoai-product-field,
.geoai-category-field {
    display: block;
    margin: 0 0 30px 0;
    padding: 0 0 24px 0;
    border-bottom: 1px solid #eceff3;
}

.geoai-product-field:last-child,
.geoai-category-field:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.geoai-product-field + .geoai-product-field,
.geoai-category-field + .geoai-category-field {
    margin-top: 10px;
}

.geoai-product-field strong,
.geoai-category-field strong {
    display: block;
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #1d2327;
}

.geoai-field-content {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.95;
    color: #333;
}

.geoai-product-field strong + .geoai-field-content,
.geoai-category-field strong + .geoai-field-content {
    margin-top: 12px;
}

.geoai-product-field .geoai-field-content + .geoai-field-content,
.geoai-category-field .geoai-field-content + .geoai-field-content {
    margin-top: 16px;
}

.geoai-field-content p {
    margin: 0 0 14px 0;
}

.geoai-field-content p:last-child {
    margin-bottom: 0;
}

.geoai-field-content ul,
.geoai-field-content ol,
.geoai-bullet-list {
    margin: 8px 0 0 0;
    padding-right: 22px;
    padding-left: 0;
}

.geoai-field-content ul li,
.geoai-field-content ol li,
.geoai-bullet-list li {
    margin: 0 0 10px 0;
    line-height: 1.9;
}

.geoai-field-content ul li:last-child,
.geoai-field-content ol li:last-child,
.geoai-bullet-list li:last-child {
    margin-bottom: 0;
}

/* FAQ */

.geoai-faq-block {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 28px;
    margin-bottom: 28px;
}

.geoai-faq-block > strong {
    display: block;
    margin-bottom: 18px;
    font-size: 15px;
    color: #1d2327;
}

.geoai-faq-item-front {
    border-bottom: 1px solid #e8e8e8;
    padding: 18px 0;
    margin: 0 0 8px 0;
}

.geoai-faq-item-front:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.geoai-faq-q {
    font-weight: 600;
    font-size: 15px;
    color: #1d2327;
    margin-bottom: 10px;
    line-height: 1.8;
}

.geoai-faq-a {
    font-size: 14px;
    color: #555;
    padding-right: 22px;
    line-height: 1.95;
}

.geoai-faq-a p {
    margin: 0 0 12px 0;
}

.geoai-faq-a p:last-child {
    margin-bottom: 0;
}

/* Sources */

.geoai-sources-block {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    direction: rtl;
    margin-top: 24px;
    margin-bottom: 24px;
}

.geoai-sources-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.geoai-sources-header h4 {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.geoai-sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.geoai-source-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    line-height: 1.8;
}

.geoai-source-item:last-child {
    border-bottom: none;
}

.geoai-source-item a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.geoai-source-item a:hover {
    text-decoration: underline;
}

.geoai-source-publisher {
    color: #666;
}

.geoai-source-date {
    color: #999;
    font-size: 12px;
}

/* Freshness badge */

.geoai-freshness-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.geoai-fresh-green {
    background: #e6f4ea;
    color: #1b5e20;
    border: 1px solid #a8d5b0;
}

.geoai-fresh-yellow {
    background: #fff8e1;
    color: #7c4a00;
    border: 1px solid #ffe082;
}

.geoai-fresh-red {
    background: #fce8e8;
    color: #c62828;
    border: 1px solid #f9a8a8;
}

/* Responsive */

@media (max-width: 767px) {
    .geoai-summary-block,
    .geoai-product-details-block,
    .geoai-category-details-block,
    .geoai-faq-block,
    .geoai-sources-block {
        padding: 16px 18px;
    }

    .geoai-summary-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .geoai-badge-ai {
        margin-right: 0;
    }

    .geoai-field-content,
    .geoai-summary-text,
    .geoai-faq-a {
        font-size: 14px;
    }

    .geoai-product-field,
    .geoai-category-field {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }
}