/* Podnah Core — deliberately neutral so it inherits your theme.
   Override any of these variables in the theme's stylesheet. */

.podnah-module {
	--podnah-fg: #14181f;
	--podnah-muted: #5b6472;
	--podnah-line: #e2e6ec;
	--podnah-bg: #ffffff;
	--podnah-accent: #14568f;
	--podnah-good: #17794a;
	--podnah-warn: #a2620b;
	--podnah-bad: #b42318;
	--podnah-radius: 8px;

	color: var(--podnah-fg);
	font-size: 15px;
	line-height: 1.5;
	margin: 24px 0;
}

.podnah-title { margin: 0 0 12px; font-size: 20px; }

/* Form */
.podnah-form {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	background: var(--podnah-bg);
	border: 1px solid var(--podnah-line);
	border-radius: var(--podnah-radius);
	padding: 16px;
}
.podnah-field { display: flex; flex-direction: column; gap: 4px; }
.podnah-field label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--podnah-muted); }
.podnah-field input,
.podnah-field select {
	padding: 8px 10px;
	border: 1px solid var(--podnah-line);
	border-radius: 6px;
	font-size: 15px;
	background: #fff;
	color: inherit;
	width: 100%;
}
.podnah-field .podnah-hint { font-size: 12px; color: var(--podnah-muted); }
.podnah-form-footer {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.podnah-btn {
	background: var(--podnah-accent);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.podnah-btn[disabled] { opacity: .6; cursor: progress; }
.podnah-remaining, .podnah-cost-preview { font-size: 13px; color: var(--podnah-muted); }

/* Status */
.podnah-status { margin: 12px 0; padding: 10px 12px; border-radius: 6px; font-size: 14px; }
.podnah-status--info { background: #eef4fb; color: #14568f; }
.podnah-status--error { background: #fdeceb; color: var(--podnah-bad); }

/* Results */
.podnah-box {
	background: var(--podnah-bg);
	border: 1px solid var(--podnah-line);
	border-radius: var(--podnah-radius);
	padding: 16px;
	margin: 16px 0;
}
.podnah-headline {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 4px;
}
.podnah-sub { color: var(--podnah-muted); font-size: 14px; margin: 0 0 14px; }

.podnah-stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.podnah-stat {
	flex: 1 1 130px;
	border: 1px solid var(--podnah-line);
	border-radius: var(--podnah-radius);
	padding: 12px 14px;
}
.podnah-stat .podnah-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--podnah-muted); }
.podnah-stat .podnah-stat-value { font-size: 24px; font-weight: 700; line-height: 1.2; margin-top: 2px; }
.podnah-stat .podnah-stat-note { font-size: 12px; color: var(--podnah-muted); }
.podnah-stat--good .podnah-stat-value { color: var(--podnah-good); }
.podnah-stat--warn .podnah-stat-value { color: var(--podnah-warn); }
.podnah-stat--bad .podnah-stat-value { color: var(--podnah-bad); }

.podnah-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.podnah-table th, .podnah-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--podnah-line); vertical-align: top; }
.podnah-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--podnah-muted); font-weight: 600; }
.podnah-table tr.is-target { background: #fff8e6; }
.podnah-table .podnah-pos { font-variant-numeric: tabular-nums; font-weight: 600; width: 46px; }

.podnah-tag {
	display: inline-block;
	font-size: 11px;
	padding: 2px 7px;
	border-radius: 999px;
	background: #eef1f5;
	color: var(--podnah-muted);
	margin-right: 4px;
}
.podnah-tag--you { background: #fdf0c8; color: #6b4c00; }
.podnah-tag--dir { background: #e8f1ea; color: var(--podnah-good); }
.podnah-tag--ad { background: #f3ecfa; color: #5b3a8e; }

/* SERP composition bar */
.podnah-serpbar { display: flex; height: 30px; border-radius: 6px; overflow: hidden; margin: 6px 0 10px; }
.podnah-serpbar span { display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; }
.podnah-serpbar .seg-lsa { background: #2c7a4b; }
.podnah-serpbar .seg-ads { background: #7a5ca8; }
.podnah-serpbar .seg-pack { background: #14568f; }
.podnah-serpbar .seg-dir { background: #8a8f98; }
.podnah-serpbar .seg-org { background: #c9ced6; color: #333; }

/* Methodology drawer */
.podnah-method { margin-top: 14px; border-top: 1px dashed var(--podnah-line); padding-top: 10px; }
.podnah-method summary { cursor: pointer; font-size: 13px; color: var(--podnah-accent); font-weight: 600; }
.podnah-method-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.podnah-method-table th { text-align: left; width: 170px; color: var(--podnah-muted); font-weight: 500; padding: 4px 8px 4px 0; vertical-align: top; }
.podnah-method-table td { padding: 4px 0; word-break: break-word; }
.podnah-method-note { font-size: 12px; color: var(--podnah-muted); margin: 8px 0 0; }

.podnah-upsell { font-size: 13px; color: var(--podnah-muted); margin-top: 10px; }
.podnah-notice { font-size: 14px; }

/* Grid map */
.podnah-map { height: 460px; border-radius: var(--podnah-radius); border: 1px solid var(--podnah-line); margin-bottom: 12px; }
.podnah-pin {
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%; color: #fff; font-weight: 700; font-size: 12px;
	border: 2px solid rgba(255,255,255,.9); box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.podnah-legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--podnah-muted); align-items: center; }
.podnah-legend i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin-right: 4px; vertical-align: -2px; }

@media (max-width: 600px) {
	.podnah-form { grid-template-columns: 1fr; }
	.podnah-stat { flex-basis: 100%; }
}
