/* Reviewer - Tailwind-compatible styles for AJAX response HTML */

/* Spinner */
.rvSpinner{width:24px;height:24px;border:3px solid #e5e7eb;border-top-color:#4f46e5;border-radius:50%;animation:rvSpin .7s linear infinite}
@keyframes rvSpin{to{transform:rotate(360deg)}}

/* SEO Box content area */
.rv-seoContent {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    overflow-x: auto;
}

/* Status indicators from www.php responses */
.rv-seoContent .passedBox,
.rv-seoContent .errorBox,
.rv-seoContent .improveBox,
.rv-seoContent .lowImpactBox {
    padding: 12px 12px 12px 36px;
    border-radius: 8px;
    margin-bottom: 4px;
    position: relative;
    background-repeat: no-repeat;
    background-position: 10px 14px;
    background-size: 18px 18px;
}
.rv-seoContent .passedBox {
    background-color: #f0fdf4;
    border-left: 3px solid #22c55e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2322c55e'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z' clip-rule='evenodd'/%3E%3C/svg%3E");
}
.rv-seoContent .errorBox {
    background-color: #fef2f2;
    border-left: 3px solid #ef4444;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ef4444'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z' clip-rule='evenodd'/%3E%3C/svg%3E");
}
.rv-seoContent .improveBox {
    background-color: #fffbeb;
    border-left: 3px solid #f59e0b;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23f59e0b'%3E%3Cpath fill-rule='evenodd' d='M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z' clip-rule='evenodd'/%3E%3C/svg%3E");
}
.rv-seoContent .lowImpactBox {
    background-color: #f9fafb;
    border-left: 3px solid #9ca3af;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239ca3af'%3E%3Cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* Suggestion boxes */
.rv-seoContent .suggestionBox {
    display: none;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
}
.rv-seoContent .passedBox .suggestionBox { background-color: #dcfce7; }
.rv-seoContent .errorBox .suggestionBox { background-color: #fee2e2; }
.rv-seoContent .improveBox .suggestionBox { background-color: #fef3c7; }
.rv-seoContent .lowImpactBox .suggestionBox { background-color: #f3f4f6; }

/* Message box */
.rv-seoContent .msgBox {
    padding: 4px 0;
}

/* Tables from AJAX responses */
.rv-seoContent table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
    margin: 8px 0;
}
.rv-seoContent table th {
    background-color: #f9fafb;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}
.rv-seoContent table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f3f4f6;
    word-wrap: break-word;
    color: #4b5563;
}
.rv-seoContent table tr:hover td {
    background-color: #f9fafb;
}
.rv-seoContent .centerTable th,
.rv-seoContent .centerTable td {
    text-align: center;
}

/* True/False images */
.rv-seoContent img[alt="True"],
.rv-seoContent img[alt="False"],
.rv-seoContent img[src*="true.png"],
.rv-seoContent img[src*="false.png"] {
    display: inline;
    vertical-align: middle;
    width: 16px;
    height: 16px;
}

/* Google preview */
.rv-seoContent .googlePreview {
    border: 1px solid #e5e7eb;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    max-width: 600px;
}
.rv-seoContent .googlePreview p {
    margin: 0 0 4px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #4d5156;
}
.rv-seoContent .googlePreview p:first-child {
    color: #1a0dab;
    font-size: 18px;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.rv-seoContent .googlePreview p:nth-child(2) {
    color: #188038;
    font-size: 13px;
}

/* Keywords cloud */
.rv-seoContent .keywordsTags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.rv-seoContent .keywordsTags li {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    font-size: 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}
.rv-seoContent .keywordsTags .keyword {
    padding: 3px 8px;
    color: #374151;
}
.rv-seoContent .keywordsTags .number {
    padding: 3px 8px;
    background: #4f46e5;
    color: #fff;
    font-weight: 600;
}

/* Show more/less links */
.rv-seoContent .showLinks {
    text-align: center;
    padding: 8px 0;
}
.rv-seoContent .showLinks a,
.rv-seoContent .showMore,
.rv-seoContent .showLess {
    color: #4f46e5;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}
.rv-seoContent .showLinks a:hover,
.rv-seoContent .showMore:hover,
.rv-seoContent .showLess:hover {
    color: #4338ca;
}
.rv-seoContent .showLess {
    display: none;
}

/* Alt image group */
.rv-seoContent .altImgGroup {
    padding-left: 4px;
    margin-top: 4px;
}

/* Hidden rows for show more/less */
.rv-seoContent .hideTr,
.rv-seoContent .hideTr1,
.rv-seoContent .hideTr2,
.rv-seoContent .hideTr3,
.rv-seoContent .hideTr4,
.rv-seoContent .hideTr5,
.rv-seoContent .hideTr6 {
    display: none;
}

/* Mobile view image */
.rv-seoContent .mobileView img {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 4px;
    max-width: 100%;
}

/* Social boxes */
.rv-seoContent .social-box {
    display: inline-block;
    border-radius: 4px;
    margin: 2px;
}
.rv-seoContent .social-box i {
    color: #fff;
    padding: 5px;
}
.rv-seoContent .social-facebook { background-color: #1877f2; padding: 6px; }
.rv-seoContent .social-linkedin { background-color: #0a66c2; }
.rv-seoContent .social-google { background-color: #ea4335; }
.rv-seoContent .social-stumbleupon { background-color: #eb4924; }

/* Progress bar from AJAX responses */
.rv-seoContent .progress-bar-striped,
.rv-seoContent .progress-striped {
    background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
}
.rv-seoContent .progress-bar-darkgreen {
    background-color: #16a085;
}

/* Utility classes from responses */
.rv-seoContent .line {
    border-bottom: 1px solid #f3f4f6;
    padding: 6px 0;
    margin-bottom: 8px;
    clear: both;
}
.rv-seoContent .bottom5 { margin-bottom: 5px; }
.rv-seoContent .bottom10 { margin-bottom: 10px; }
.rv-seoContent .padLeft10 { padding-left: 10px; }
.rv-seoContent .padRight10 { padding-right: 10px; }
.rv-seoContent .grayColor { color: #9ca3af; }
.rv-seoContent .hide { display: none; }
.rv-seoContent .bold { font-weight: 600; }
.rv-seoContent .clearfix::after { content: ''; display: table; clear: both; }

/* Responsive */
@media (max-width: 640px) {
    .rv-seoContent table {
        font-size: 12px;
    }
    .rv-seoContent table th,
    .rv-seoContent table td {
        padding: 6px;
    }
}
