/* Find Best SEO Agencies — front-end styles.
   Colors come from --fbs-primary / --fbs-accent / --fbs-score, which a theme or
   the plugin's Appearance settings can set; the fallbacks below apply otherwise. */

.fbs-listing, .fbs-page, .fbs-profile {
	--fbs-p: var(--fbs-primary, #e8192c);
	--fbs-a: var(--fbs-accent, #f5a623);
	--fbs-s: var(--fbs-score, #8e44ad);
	color: #222;
}
.fbs-listing *, .fbs-page * { box-sizing: border-box; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Header + filters */
.fbs-listing__header { text-align: center; background: #f1f1f1; padding: 2.5rem 1rem; }
.fbs-listing__header h1, .fbs-listing__header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .75rem; }
.fbs-listing__intro { max-width: 70ch; margin: 0 auto; font-size: .95rem; }
.fbs-listing__intro > :last-child { margin-bottom: 0; }

.fbs-filters { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; justify-content: center; padding: 1.1rem 1rem; border-bottom: 1px solid #e8e8e8; }
.fbs-filters label { display: flex; flex-direction: column; gap: .25rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.fbs-filters select { min-width: 190px; padding: .6rem .75rem; border: 1px solid #c9c9c9; border-radius: 4px; font: inherit; font-weight: 400; text-transform: none; letter-spacing: 0; background: #fff; }
.fbs-filters__reset { font-size: .85rem; align-self: center; }

/* Rows */
.fbs-listing__rows { max-width: 1100px; margin: 0 auto; }
.fbs-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 170px; gap: 1.75rem; align-items: start; padding: 2rem 1.5rem; }
.fbs-listing--alt .fbs-row:nth-child(even) { background: #f8f8f8; }

.fbs-row__logo { display: flex; align-items: center; justify-content: center; min-height: 70px; padding: .5rem; }
.fbs-row__logo img { max-width: 100%; max-height: 90px; width: auto; height: auto; }
.fbs-row__logo-fallback { font-weight: 700; text-align: center; color: var(--fbs-s); }
.fbs-score { margin-top: .5rem; font-size: .8rem; }
.fbs-score__label strong { color: var(--fbs-a); }
.fbs-score__bar { height: 9px; background: #ececec; margin-top: .35rem; border-radius: 2px; overflow: hidden; }
.fbs-score__bar span { display: block; height: 100%; background: var(--fbs-s); }

.fbs-row__title { margin: 0 0 .5rem; font-size: 1.6rem; font-weight: 400; line-height: 1.2; display: flex; align-items: center; gap: .5rem; }
.fbs-row__title a { color: var(--fbs-s); text-decoration: none; }
.fbs-row__title a:hover { text-decoration: underline; }
.fbs-row__desc { margin: 0 0 .75rem; font-size: .9rem; line-height: 1.6; }
.fbs-row__meta { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; padding: 0; font-size: .85rem; color: #555; }
.fbs-meta { display: inline-flex; align-items: center; gap: .4rem; }
.fbs-meta a { color: inherit; text-decoration: none; }
.fbs-meta a:hover { text-decoration: underline; }
.fbs-meta--check { color: #444; font-size: .75rem; }
.fbs-meta--check .fbs-icon { color: var(--fbs-a); }
.fbs-meta--pin .fbs-icon { color: var(--fbs-p); }
.fbs-icon { width: 16px; height: 16px; flex: none; }

.fbs-row__hint { margin: .6rem 0 0; padding: .4rem .7rem; border: 1px dashed #d99a00; background: #fff8e1; color: #6b5200; font-size: .75rem; border-radius: 3px; }
.fbs-badge { display: inline-flex; flex: none; }
.fbs-badge .fbs-icon { width: 28px; height: 28px; }
.fbs-badge--1 { color: #f0a30a; }
.fbs-badge--2 { color: #b4b4b4; }
.fbs-badge--3 { color: #cf8a3c; }

.fbs-row__actions { display: flex; flex-direction: column; gap: .5rem; }
.fbs-btn { display: block; padding: .7rem 1rem; border: 0; border-radius: 3px; text-align: center; font-weight: 700; font-size: .9rem; text-decoration: none; cursor: pointer; color: #fff; font-family: inherit; }
.fbs-btn--visit { background: var(--fbs-p); }
.fbs-btn--profile { background: var(--fbs-a); }
.fbs-btn:hover { opacity: .9; color: #fff; }

.fbs-empty { text-align: center; padding: 3rem 1rem; color: #666; }
.fbs-pagination { display: flex; justify-content: center; gap: .35rem; padding: 1.5rem 0; }
.fbs-pagination .page-numbers { padding: .4rem .8rem; border: 1px solid #ddd; border-radius: 3px; text-decoration: none; color: #333; }
.fbs-pagination .page-numbers.current { background: var(--fbs-s); border-color: var(--fbs-s); color: #fff; }

/* Pages */
.fbs-page__body { padding-bottom: 2rem; }
.fbs-profile__inner { max-width: 960px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.fbs-profile__header { display: flex; gap: 2rem; align-items: center; margin-bottom: 2rem; }
.fbs-profile__logo img { max-width: 220px; height: auto; }
.fbs-profile__header h1 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; color: var(--fbs-s); }
.fbs-profile__header .fbs-btn { display: inline-block; margin-top: 1rem; }
.fbs-profile__terms { margin-top: 2rem; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.fbs-profile__term-label { font-weight: 700; }

@media (max-width: 820px) {
	.fbs-row { grid-template-columns: 1fr; gap: 1rem; }
	.fbs-row__actions { flex-direction: row; }
	.fbs-row__actions .fbs-btn { flex: 1; }
	.fbs-profile__header { flex-direction: column; align-items: flex-start; }
	.fbs-filters select { min-width: 150px; }
}
