/* ============================================================
   EOTA Spots — "Field Log" theme
   Topographic map paper + stamped equipment-plate header +
   logbook-style data table. Grounded in POTA/SOTA field ops.
   ============================================================ */

.eota-wrap {
	--eota-paper:   #E8E1CC;
	--eota-paper-2: #DED5BB;
	--eota-ink:     #1F2B22;
	--eota-forest:  #3F6B4A; /* POTA */
	--eota-contour: #A67C52; /* SOTA */
	--eota-dusk:    #2F4858; /* DX */
	--eota-beacon:  #C6362C; /* Special Event / live indicator */
	--eota-line:    rgba(31, 43, 34, 0.14);

	max-width: 1040px;
	margin: 0 auto;
	background: var(--eota-paper);
	color: var(--eota-ink);
	font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	border: 1px solid var(--eota-line);
	border-radius: 4px;
	overflow: hidden;
}

/* ---------- Header / equipment plate ---------- */

.eota-header {
	position: relative;
	padding: 28px 28px 22px;
	background:
		repeating-linear-gradient(
			135deg,
			transparent 0px,
			transparent 26px,
			rgba(31, 43, 34, 0.035) 26px,
			rgba(31, 43, 34, 0.035) 27px
		),
		var(--eota-forest);
	color: var(--eota-paper);
	border-bottom: 3px solid var(--eota-ink);
}

.eota-header-top {
	display: flex;
	align-items: baseline;
	gap: 14px;
	flex-wrap: wrap;
}

.eota-wordmark {
	font-family: 'Big Shoulders Stencil', 'Work Sans', sans-serif;
	font-weight: 700;
	font-size: 40px;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin: 0;
	line-height: 1;
}

.eota-tagline {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	opacity: 0.85;
	margin: 0;
}

.eota-beacon-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-left: auto;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	opacity: 0.9;
}

.eota-beacon-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #ff6a52;
	box-shadow: 0 0 0 0 rgba(255, 106, 82, 0.7);
	animation: eota-pulse 2s infinite;
}

@keyframes eota-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(255, 106, 82, 0.55); }
	70%  { box-shadow: 0 0 0 8px rgba(255, 106, 82, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 106, 82, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.eota-beacon-dot { animation: none; }
}

/* Contour-line rule under the header */
.eota-contour-rule {
	height: 10px;
	background-image:
		repeating-radial-gradient(circle at 0 100%, transparent 0, transparent 6px, var(--eota-contour) 7px, transparent 8px);
	background-size: 40px 40px;
	background-repeat: repeat-x;
	opacity: 0.55;
}

/* ---------- Ad slots ---------- */

.eota-ad-slot {
	background: var(--eota-paper-2);
	border: 1px dashed var(--eota-line);
	text-align: center;
	color: var(--eota-ink);
	opacity: 0.55;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 10px;
	margin: 16px 20px;
}

/* ---------- Toolbar ---------- */

.eota-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 4px 20px 16px;
}

.eota-filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.eota-toolbar-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.eota-mode-select {
	padding: 7px 10px;
	border: 1.5px solid var(--eota-ink);
	border-radius: 3px;
	background: var(--eota-paper);
	color: var(--eota-ink);
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.eota-filter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 13px;
	border: 1.5px solid var(--eota-ink);
	border-radius: 3px;
	background: var(--eota-paper);
	color: var(--eota-ink);
	cursor: pointer;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	transition: background 0.15s ease, color 0.15s ease;
}

.eota-filter:hover {
	background: var(--eota-paper-2);
}

.eota-filter.active {
	background: var(--eota-ink);
	color: var(--eota-paper);
	border-color: var(--eota-ink);
}

.eota-btn-primary {
	background: var(--eota-beacon);
	color: #fff;
	border: none;
	border-radius: 3px;
	padding: 9px 18px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.eota-btn-primary:hover {
	filter: brightness(1.08);
}

/* ---------- Table (the "field log") ---------- */

.eota-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	background:
		linear-gradient(var(--eota-paper), var(--eota-paper)),
		repeating-linear-gradient(
			0deg,
			transparent 0px,
			transparent 34px,
			var(--eota-line) 34px,
			var(--eota-line) 35px
		);
}

.eota-table th,
.eota-table td {
	text-align: left;
	padding: 9px 10px;
	vertical-align: middle;
	border-bottom: 1px solid var(--eota-line);
}

.eota-table th {
	font-family: 'IBM Plex Mono', monospace;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--eota-ink);
	border-bottom: 2px solid var(--eota-ink);
	background: var(--eota-paper-2);
}

.eota-row {
	transition: background 0.12s ease;
}

.eota-row:hover {
	background: rgba(63, 107, 74, 0.08);
}

.eota-icon-cell {
	width: 26px;
}

.eota-icon {
	width: 17px;
	height: 17px;
	vertical-align: middle;
}

.eota-icon-pota  { color: var(--eota-forest); }
.eota-icon-sota  { color: var(--eota-contour); }
.eota-icon-dx    { color: var(--eota-dusk); }
.eota-icon-event { color: var(--eota-beacon); }

.eota-callsign {
	font-family: 'IBM Plex Mono', monospace;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.eota-table td:nth-child(5),  /* Time */
.eota-table td:nth-child(6) { /* Frequency */
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12.5px;
}

.eota-notes {
	color: var(--eota-ink);
	opacity: 0.75;
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.eota-empty-row td {
	text-align: center;
	font-family: 'IBM Plex Mono', monospace;
	opacity: 0.55;
	padding: 30px;
}

/* ---------- Modal ---------- */

.eota-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(31, 43, 34, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.eota-modal-overlay[hidden] {
	display: none;
}

.eota-modal {
	background: var(--eota-paper, #E8E1CC);
	border: 1px solid var(--eota-ink, #1F2B22);
	border-radius: 4px;
	padding: 26px;
	width: 90%;
	max-width: 420px;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}

.eota-modal h2 {
	font-family: 'Big Shoulders Stencil', 'Work Sans', sans-serif;
	font-size: 26px;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin: 0 0 16px;
	color: var(--eota-ink, #1F2B22);
}

.eota-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
	color: var(--eota-ink, #1F2B22);
}

#eota-spot-form label {
	display: block;
	margin-bottom: 12px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--eota-ink, #1F2B22);
}

#eota-spot-form input,
#eota-spot-form select {
	display: block;
	width: 100%;
	margin-top: 5px;
	padding: 8px 9px;
	font-family: 'Work Sans', sans-serif;
	font-size: 14px;
	font-weight: normal;
	text-transform: none;
	letter-spacing: normal;
	border: 1.5px solid var(--eota-ink, #1F2B22);
	border-radius: 3px;
	background: #fff;
	box-sizing: border-box;
}

.eota-form-error {
	background: #F6DEDA;
	color: var(--eota-beacon, #C6362C);
	border: 1px solid var(--eota-beacon, #C6362C);
	padding: 8px 10px;
	border-radius: 3px;
	font-size: 13px;
	margin-bottom: 12px;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
	.eota-wordmark { font-size: 30px; }
	.eota-table { font-size: 12px; }
	.eota-notes { max-width: 120px; }
	.eota-toolbar { flex-direction: column; align-items: stretch; }
	.eota-btn-primary { width: 100%; }
}
