/* image-seo-auditor.css
   Mirrors the RSA + ARC patterns (hero + methodology + form + per-check cards).
   Dark theme, square. */

.isa-hero { padding-bottom: 50px !important; border-bottom: 0 !important; }
.isa-tool-section { padding-top: 50px !important; border-bottom: 0 !important; }
.isa-intro-section { border-bottom: 0 !important; padding-top: 50px !important; padding-bottom: 50px !important; }
@media (max-width: 991px) {
	.isa-hero { padding-bottom: 30px !important; }
	.isa-tool-section { padding-top: 30px !important; }
}

.isa-intro-prose { color: rgba(255, 255, 255, 0.75); font-size: 16px; line-height: 1.7; font-weight: 300; margin: 0 0 16px; }
.isa-intro-prose:last-child { margin-bottom: 0; }
@media (min-width: 992px) { .isa-intro-section .col-md-7 { position: sticky; top: 140px; align-self: start; } }

.isa-intro-methodology { padding: 28px 28px 24px; background: linear-gradient(160deg, #101319 0%, #06070a 100%); border: 1px solid rgba(0, 180, 255, 0.2); border-top: 3px solid #00B4FF; margin-top: 20px; }
.isa-intro-method-head { margin: 0 0 6px; color: #ffffff; font-size: 18px; font-weight: 700; line-height: 1.3; }
.isa-intro-method-sub { margin: 0 0 18px; color: rgba(255, 255, 255, 0.55); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.isa-intro-method-list { list-style: none; margin: 0; padding: 0; }
.isa-intro-method-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0; color: rgba(255, 255, 255, 0.82); font-size: 13px; line-height: 1.4; }
.isa-intro-method-list em { color: #00B4FF; font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: 0.08em; white-space: nowrap; font-family: Menlo, Consolas, monospace; text-transform: uppercase; }
@media (max-width: 991px) { .isa-intro-methodology { margin-top: 32px; } }

/* Form */
.isa-form { display: flex; flex-direction: column; gap: 24px; background: linear-gradient(160deg, #101319 0%, #06070a 100%); border: 1px solid rgba(255, 255, 255, 0.08); padding: 36px 32px 32px; margin-top: 40px; }
.isa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.isa-col { display: flex; flex-direction: column; gap: 16px; }
.isa-col .isa-submit-row { margin-top: auto; }
.isa-field-row { display: flex; flex-direction: column; gap: 6px; }
.isa-field-row label { color: rgba(255, 255, 255, 0.6); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.isa-form input[type="text"],
.isa-form input[type="email"],
.isa-form input[type="url"] { appearance: none; background: #0a0a0a; border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; font-size: 15px; font-family: inherit; padding: 0 16px; height: 52px; width: 100%; box-sizing: border-box; }
.isa-form input:focus { outline: none; border-color: #00B4FF; }
.isa-hidden { display: none !important; }
.isa-submit-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 4px; justify-content: flex-end; }
#isa-submit { height: 52px; white-space: nowrap; }
.isa-usage { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); font-weight: 700; }
.isa-error { margin: 16px 0 0; padding: 14px 18px; border: 1px solid rgba(239, 68, 68, 0.5); background: rgba(239, 68, 68, 0.08); color: #ff8787; font-size: 14px; line-height: 1.5; }

/* Results */
.isa-results { display: block; margin-top: 40px; }
.isa-card { position: relative; background: linear-gradient(160deg, #141821 0%, #06070a 100%); border: 1px solid rgba(255, 255, 255, 0.08); border-top: 3px solid #00B4FF; padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04); }

.isa-head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.isa-head-info { min-width: 0; }
.isa-head-url { color: rgba(255, 255, 255, 0.6); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin: 0 0 8px; }
.isa-head-url a { color: #00B4FF; text-decoration: none; word-break: break-all; letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 400; font-family: Menlo, Consolas, monospace; display: block; margin-top: 4px; }
.isa-head-url a:hover { color: #ffffff; }
.isa-head-verdict { color: #fff; font-size: 24px; font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }

.isa-score-dial { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.isa-score-num { font-size: 72px; font-weight: 700; line-height: 1; color: #fff; letter-spacing: -0.04em; text-shadow: 0 0 32px rgba(0, 180, 255, 0.3); }
.isa-score-num.is-excellent { color: #4ade80; text-shadow: 0 0 32px rgba(74, 222, 128, 0.3); }
.isa-score-num.is-strong    { color: #00B4FF; text-shadow: 0 0 32px rgba(0, 180, 255, 0.3); }
.isa-score-num.is-moderate  { color: #f4b942; text-shadow: 0 0 32px rgba(244, 185, 66, 0.3); }
.isa-score-num.is-weak      { color: #fb923c; text-shadow: 0 0 32px rgba(251, 146, 60, 0.3); }
.isa-score-num.is-poor      { color: #ff6b6b; text-shadow: 0 0 32px rgba(255, 107, 107, 0.3); }
.isa-score-label { color: rgba(255, 255, 255, 0.55); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; }

.isa-summary { border-left: 3px solid #00B4FF; padding: 16px 20px; background: rgba(0, 180, 255, 0.06); color: rgba(255, 255, 255, 0.88); font-size: 15px; line-height: 1.65; font-weight: 300; }
.isa-summary-head { color: #00B4FF; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; margin: 0 0 10px; }

.isa-primary-fix { border-left: 3px solid #4ade80; padding: 16px 20px; background: rgba(74, 222, 128, 0.06); color: rgba(255, 255, 255, 0.88); font-size: 15px; line-height: 1.65; font-weight: 300; }
.isa-primary-fix-head { color: #4ade80; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; margin: 0 0 10px; }

.isa-checks { display: flex; flex-direction: column; gap: 10px; }
.isa-check { padding: 18px 20px; background: #000; border: 1px solid rgba(255, 255, 255, 0.08); border-left-width: 3px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 14px 24px; align-items: start; }
.isa-check.is-pass { border-left-color: #4ade80; }
.isa-check.is-warn { border-left-color: #f4b942; }
.isa-check.is-fail { border-left-color: #ff6b6b; }

.isa-check-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; grid-column: 1 / 2; padding-right: 28px; }
.isa-check-name { color: #fff; font-size: 17px; font-weight: 700; margin: 0; line-height: 1.3; }

.isa-check-chip-cell { grid-column: 2 / 3; grid-row: 1 / 2; justify-self: end; align-self: center; }
.isa-check-chip-cell .isa-check-chip { display: inline-flex; justify-content: center; width: 110px; box-sizing: border-box; }
.isa-check-chip { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; padding: 11px 14px; display: inline-flex; align-items: center; line-height: 1; white-space: nowrap; }
.isa-check-chip.is-pass { color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.06); }
.isa-check-chip.is-warn { color: #f4b942; border: 1px solid rgba(244, 185, 66, 0.4); background: rgba(244, 185, 66, 0.06); }
.isa-check-chip.is-fail { color: #ff6b6b; border: 1px solid rgba(255, 107, 107, 0.4); background: rgba(255, 107, 107, 0.06); }

.isa-check-score-cell { grid-column: 2 / 3; grid-row: 2 / 3; justify-self: end; align-self: center; text-align: right; }
.isa-check-score-num { display: inline-block; color: rgba(255, 255, 255, 0.45); font-size: 24px; font-weight: 700; font-family: Menlo, Consolas, monospace; letter-spacing: -0.02em; line-height: 1; }
.isa-check-score-num strong { color: #ffffff; font-weight: 700; }

.isa-check-body { grid-column: 1 / 2; grid-row: 2 / 3; padding-right: 28px; }
.isa-check-finding { color: rgba(255, 255, 255, 0.68); font-size: 13px; line-height: 1.55; margin: 0 0 22px; font-weight: 300; }
.isa-check-fix { color: rgba(255, 255, 255, 0.88); font-size: 13px; line-height: 1.55; margin: 0; font-weight: 400; }
.isa-check-fix strong { color: #00B4FF; font-weight: 700; letter-spacing: 0.08em; font-size: 11px; text-transform: uppercase; margin-right: 6px; }

/* Image table */
.isa-images-section { margin-top: 10px; }
.isa-images-head { color: rgba(255, 255, 255, 0.6); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; margin: 0 0 14px; }
.isa-images-table { width: 100%; border-collapse: collapse; background: #000; border: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.isa-images-table th { text-align: left; padding: 12px 14px; color: rgba(255,255,255,.55); font-weight: 700; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.08); }
.isa-images-table td { padding: 12px 14px; color: rgba(255,255,255,.78); border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: top; }
.isa-images-table tr:last-child td { border-bottom: 0; }
.isa-img-filename { color: #fff; font-family: Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }
.isa-img-flags { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.isa-img-flag { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; padding: 11px 14px; border: 1px solid; line-height: 1; display: inline-flex; align-items: center; }
.isa-img-flag.is-ok { color: #4ade80; border-color: rgba(74,222,128,.4); background: rgba(74,222,128,.06); }
.isa-img-flag.is-warn { color: #f4b942; border-color: rgba(244,185,66,.4); background: rgba(244,185,66,.06); }
.isa-img-flag.is-bad { color: #ff6b6b; border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.06); }
.isa-img-size { font-family: Menlo, Consolas, monospace; font-size: 12px; color: rgba(255,255,255,.65); }

/* Actions */
.isa-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; justify-content: flex-end; }
.isa-action-btn { appearance: none; background: transparent; border: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.75); font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0 20px; height: 48px; min-width: 180px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: background 180ms ease, color 180ms ease, border-color 180ms ease; white-space: nowrap; text-align: center; }
.isa-action-btn:hover,
.isa-action-btn:focus { background: #00B4FF; color: #ffffff; border-color: #00B4FF; outline: none; }

/* Upsell */
.isa-upsell { margin-top: 50px; display: grid; grid-template-columns: minmax(240px, 1fr) 3fr; gap: 48px; align-items: center; padding: 60px 56px; background: linear-gradient(135deg, #0a1a24 0%, #060a0f 60%, #0a0a0a 100%); border: 1px solid rgba(0, 180, 255, 0.25); border-top: 3px solid #00B4FF; box-shadow: 0 24px 48px -20px rgba(0, 180, 255, 0.15), 0 20px 40px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.isa-upsell-score { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.isa-upsell-score-number { display: flex; align-items: baseline; justify-content: center; line-height: 1; }
.isa-upsell-score-num { color: #fff; font-size: 128px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; text-shadow: 0 0 32px rgba(0, 180, 255, 0.4); }
.isa-upsell-score-label { color: rgba(255, 255, 255, 0.55); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; }
.isa-upsell-body { display: flex; flex-direction: column; gap: 14px; }
.isa-upsell-headline { color: #fff; font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
.isa-upsell-copy { color: rgba(255, 255, 255, 0.78); font-size: 20px; line-height: 1.55; font-weight: 300; margin: 0; }
.isa-upsell-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; justify-content: flex-end; }
.isa-upsell-ctas .btn-mm,
.isa-upsell-ctas .btn-mm-ghost { height: 52px; display: inline-flex; align-items: center; }

/* Responsive */
@media (max-width: 991px) {
	.isa-grid { grid-template-columns: 1fr; gap: 16px; }
	.isa-head { grid-template-columns: 1fr; gap: 18px; }
	.isa-score-dial { align-items: flex-start; }
	.isa-upsell { grid-template-columns: 1fr; gap: 24px; padding: 40px 28px; }
	.isa-upsell-score-num { font-size: 96px; }
	.isa-upsell-ctas { justify-content: stretch; }
	.isa-upsell-ctas .btn-mm,
	.isa-upsell-ctas .btn-mm-ghost { flex: 1; }
}
@media (max-width: 575px) {
	.isa-form { padding: 28px 22px 24px; }
	.isa-check-head,
	.isa-check-body { padding-right: 0; }
	.isa-check-score-num { font-size: 20px; }
	.isa-check { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; }
	.isa-check-head { grid-column: 1 / 3; grid-row: 1 / 2; }
	.isa-check-chip-cell { grid-column: 1 / 2; grid-row: 2 / 3; justify-self: start; align-self: center; }
	.isa-check-score-cell { grid-column: 2 / 3; grid-row: 2 / 3; justify-self: end; align-self: center; text-align: right; }
	.isa-check-body { grid-column: 1 / 3; grid-row: 3 / 4; }
	/* Image breakdown becomes 2-row cards on mobile:
	   Row 1: filename (left) + size (right).
	   Row 2: flags, full width. */
	.isa-images-table,
	.isa-images-table tbody,
	.isa-images-table tr,
	.isa-images-table td { display: block; width: 100%; box-sizing: border-box; }
	.isa-images-table thead { display: none; }
	.isa-images-table tr {
		padding: 14px 14px 16px;
		border-bottom: 1px solid rgba(255,255,255,.06);
	}
	.isa-images-table tr:last-child { border-bottom: 0; }
	.isa-images-table td { padding: 0; border: 0; }
	.isa-images-table tr td:nth-child(1) {
		display: inline-block;
		width: calc(100% - 90px);
		padding-right: 12px;
		vertical-align: top;
	}
	.isa-images-table tr td:nth-child(2) {
		display: inline-block;
		width: 90px;
		text-align: right;
		vertical-align: top;
	}
	.isa-images-table tr td:nth-child(3) {
		display: block;
		width: 100%;
		margin-top: 12px;
	}
	.isa-img-filename { font-size: 13px; }
}
@media (max-width: 480px) {
	.isa-upsell-ctas,
	.isa-submit-row,
	.isa-actions { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 12px !important; width: 100% !important; justify-content: flex-start !important; }
	.isa-upsell-ctas .btn-mm,
	.isa-upsell-ctas .btn-mm-ghost,
	.isa-upsell-ctas .btn-mm-large,
	.isa-actions .isa-action-btn,
	#isa-submit { width: 100% !important; min-width: 0 !important; flex: 0 0 auto !important; white-space: nowrap !important; text-align: center !important; justify-content: center !important; padding-left: 12px !important; padding-right: 12px !important; font-size: 12.5px !important; letter-spacing: 0.08em !important; }
	.isa-usage { text-align: center; }
}
