/**
 * SEO NR Plugin - Frontend Styles
 */
html {
    scroll-behavior: smooth;
}

/* Generic Utilities */
.seo-nr-placeholder, .seo-nr-placeholder-pro {
    background: #f0f0f0;
    width: 100%;
    height: 100%;
    min-height: 150px;
}

/* --- Standard Product Card --- */
.seo-nr-product-card {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    max-width: 100%;
    margin: 30px auto;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.seo-nr-badge {
    position: absolute;
    top: -15px;
    left: -15px;
    background: #7c4dff;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(124, 77, 255, 0.3);
    z-index: 10;
}

.seo-nr-card-header {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.seo-nr-card-image {
    width: 140px;
    height: 140px;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.seo-nr-card-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.seo-nr-card-info h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #111;
    font-weight: 700;
}

.seo-nr-category {
    color: #7c4dff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

.seo-nr-description { font-size: 16px; line-height: 1.6; color: #444; margin-bottom: 20px; }

.seo-nr-ideal-box {
    background: #fff5f8;
    border-left: 4px solid #e91e63;
    padding: 18px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.seo-nr-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 25px 0; }
.seo-nr-pros h4 { color: #2e7d32; }
.seo-nr-cons h4 { color: #c62828; }
.seo-nr-pros-cons ul { list-style: none; padding: 0; }
.seo-nr-pros-cons li { font-size: 14px; margin-bottom: 8px; display: flex; gap: 10px; }

.seo-nr-button {
    display: block;
    background: #f39c12;
    color: #fff !important;
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 0 #d3830a;
}

/* --- CARD PRO STYLES --- */
.seo-nr-card-pro {
    border: 1px solid #eaeff4;
    border-radius: 16px;
    padding: 20px;
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    font-family: 'Inter', -apple-system, sans-serif;
    position: relative;
}

.seo-nr-pro-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.seo-nr-pro-rank {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-circle {
    background: #6C5CE7;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}

.rank-label {
    background: #6C5CE7;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.seo-nr-pro-ribbon {
    background: #FF9F00;
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
}

.seo-nr-pro-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.seo-nr-pro-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.seo-nr-pro-rating .stars {
    color: #FFB400;
    font-size: 18px;
}

.rating-text {
    font-size: 14px;
    color: #666;
}

.seo-nr-pro-main-content {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.seo-nr-pro-image-col {
    width: 280px;
    flex-shrink: 0;
}

.seo-nr-pro-image-col img {
    width: 100%;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    object-fit: contain;
}

.seo-nr-pro-info-col {
    flex: 1;
}

.seo-nr-pro-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

.seo-nr-pro-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-nr-pro-features li {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    font-weight: 500;
}

.seo-nr-pro-features .check { color: #00B894; }

.seo-nr-pro-ideal {
    background: #FFF0F5;
    border-left: 5px solid #D63384;
    padding: 20px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 30px;
}

.seo-nr-pro-ideal strong {
    color: #D63384;
    display: block;
    margin-bottom: 5px;
}

.seo-nr-pro-ideal p { margin: 0; font-size: 14px; color: #333; }

.seo-nr-pro-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.seo-nr-pro-pros-cons .pro-col, .seo-nr-pro-pros-cons .con-col {
    padding: 20px;
    border-radius: 12px;
}

.seo-nr-pro-pros-cons .pro-col { background: #F8FEFA; }
.seo-nr-pro-pros-cons .con-col { background: #FFF9F9; }

.seo-nr-pro-pros-cons h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 700;
}

.pro-col h4 { color: #2D3436; }
.con-col h4 { color: #D63031; }

.seo-nr-pro-pros-cons ul { list-style: none; padding: 0; margin: 0; }
.seo-nr-pro-pros-cons li { font-size: 13px; margin-bottom: 8px; display: flex; gap: 8px; }

.seo-nr-pro-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FF9F00;
    color: #fff !important;
    text-decoration: none;
    padding: 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 0 #E67E22;
    transition: all 0.2s ease;
}

.seo-nr-pro-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #E67E22;
}

.icon-hand { font-size: 24px; margin-right: 10px; }

/* Sidebar TOC */
.seo-nr-sidebar-toc {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.seo-nr-sidebar-toc h3 { font-size: 22px; margin: 0 0 18px 0; font-weight: 700; }
.seo-nr-ai-consultant { margin-bottom: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.seo-nr-ai-consultant a { color: #7c4dff; text-decoration: none; }
.seo-nr-sidebar-toc ol { padding-left: 0; list-style: none; counter-reset: item; }
.seo-nr-sidebar-toc li { margin-bottom: 16px; font-size: 16px; display: flex; }
.seo-nr-sidebar-toc li::before { content: counter(item) ". "; counter-increment: item; margin-right: 12px; color: #777; }
.seo-nr-sidebar-toc li a { color: #444; text-decoration: none; }

/* Article Grid */
.seo-nr-article-grid {
    background: #f8f9fb;
    border-left: 5px solid #d81b60;
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
}

.seo-nr-article-grid h3 { margin-bottom: 25px; display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; }
.seo-nr-article-grid .icon-circle { background: #d81b60; color: white; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.seo-nr-grid-content { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.seo-nr-grid-content ol { list-style: none; padding: 0; }
.seo-nr-grid-column li { counter-increment: grid-item; margin-bottom: 15px; display: flex; font-size: 15px; }
.seo-nr-grid-column li::before { content: counter(grid-item) "."; color: #d81b60; font-weight: 800; margin-right: 12px; }
.seo-nr-grid-content li a { color: inherit; text-decoration: none; }

@media (max-width: 768px) {
    .seo-nr-pro-main-content { flex-direction: column; }
    .seo-nr-pro-image-col { width: 100%; }
    .seo-nr-pro-pros-cons, .seo-nr-grid-content { grid-template-columns: 1fr; }
    .seo-nr-card-header { flex-direction: column; align-items: center; }
}