/* Rankings Tab Styles */

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
}

.rank-top3 { background: #dcfce7; color: #166534; }
.rank-page1 { background: #dbeafe; color: #1e40af; }
.rank-deep { background: #fef3c7; color: #92400e; }

.comp-pill {
    display: inline-block;
    padding: 1px 8px;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 11px;
    margin: 1px 2px;
    color: #475569;
}

/* Reviews Tab Styles */

.reviews-container .table td { vertical-align: middle; }

.btn-xs {
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.3;
}

/* Content Gap Styles */

.content-container .seo-criteria-name i {
    margin-right: 6px;
}

/* Digest Styles */

.digest-container { max-width: 960px; }

.digest-period-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 20px;
}

.digest-highlights {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.digest-highlight {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.digest-highlight-success { background: #dcfce7; color: #166534; }
.digest-highlight-warning { background: #fef3c7; color: #92400e; }
.digest-highlight-danger { background: #fee2e2; color: #991b1b; }
.digest-highlight-info { background: #dbeafe; color: #1e40af; }

.digest-section {
    margin-bottom: 24px;
}

.digest-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border, #e2e8f0);
}

.digest-section-title i {
    color: var(--primary, #2563eb);
    margin-right: 6px;
}

.digest-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.digest-item {
    padding: 8px 12px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    font-size: 13px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.digest-item-danger {
    background: #fef2f2;
    border-color: #fecaca;
}

.digest-item-warning {
    background: #fffbeb;
    border-color: #fed7aa;
}

.digest-item-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.digest-item-body {
    width: 100%;
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    margin-top: 2px;
}

.digest-item-time {
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
    margin-left: auto;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .digest-period-banner {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .digest-highlights {
        flex-direction: column;
    }

    .digest-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .digest-item-time {
        margin-left: 0;
    }

    .comp-pill {
        font-size: 10px;
    }
}
