/* 
   licitacao-public.css 
   SEO-focused, lightweight CSS for public facing pages.
   No heavy frameworks, raw CSS for Core Web Vitals optimization.
*/

:root {
  --bg-dark: #030014;
  --bg-card: rgba(25, 25, 45, 0.4);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-main: #f0f0f0;
  --text-muted: rgba(255, 255, 255, 0.6);
  --accent-cyan: #00F0FF;
  --accent-purple: #7000FF;
  --success: #34C759;
  
  --font-sans: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', monospace;
}

body.public-theme {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Base resets */
a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #fff;
}
* {
  box-sizing: border-box;
}

/* Header */
.public-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 0, 20, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}
.public-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.public-logo {
  height: 32px;
  width: auto;
}
.public-search-form {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  padding: 0.25rem 0.5rem;
  align-items: center;
}
.public-search-form input {
  background: transparent;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  width: 300px;
  outline: none;
  font-family: var(--font-sans);
}
.public-search-form button {
  background: var(--accent-purple);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.public-search-form button:hover {
  background: #8020ff;
}

.public-header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.btn-public-login {
  color: var(--text-main);
  font-weight: 500;
}
.btn-public-signup {
  background: var(--accent-cyan);
  color: #000;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 700;
}
.btn-public-signup:hover {
  filter: brightness(1.1);
  color: #000;
}

/* Main Layout */
.public-main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  min-height: calc(100vh - 300px);
}

/* Typography Details */
.seo-h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}
.seo-metadata {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Glass Cards */
.public-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.public-card-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.75rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.data-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.data-row:last-child {
  border-bottom: none;
}
.data-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.data-value {
  font-weight: 500;
  text-align: right;
  max-width: 60%;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

/* Items Table - SEO Goldmine */
.public-table-responsive {
  overflow-x: auto;
}
.public-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.public-table th, .public-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}
.public-table th {
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.public-table tr:hover {
  background: rgba(255,255,255,0.02);
}
.item-desc {
  max-width: 400px;
}
.item-desc h4 {
  margin: 0 0 0.5rem 0;
  color: #fff;
}
.item-desc p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}
.price-col {
  text-align: right;
  white-space: nowrap;
}

/* Breadcrumbs */
.public-breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.public-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: transparent;
}
.public-breadcrumbs a:hover {
  color: var(--text-main);
  text-decoration-color: currentColor;
}
.public-breadcrumbs span {
  margin: 0 0.5rem;
}

/* CTA Block */
.public-cta-block {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, rgba(112, 0, 255, 0.2), rgba(0, 240, 255, 0.1));
  border-radius: 1rem;
  border: 1px solid var(--accent-purple);
  margin: 3rem 0;
}
.public-cta-block h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1rem;
}
.public-cta-block p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* FAQ Section */
.public-faq {
  margin-top: 3rem;
}
.faq-item {
  margin-bottom: 1.5rem;
}
.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
}
.faq-item h3::before {
  content: "Q:";
  color: var(--accent-cyan);
  font-weight: 800;
  margin-right: 0.5rem;
}
.faq-item p {
  color: var(--text-muted);
  margin-left: 1.5rem;
}

/* Footer */
.public-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border-glass);
  background: #000;
  padding: 4rem 1.5rem 2rem;
}
.public-footer-container {
  max-width: 1200px;
  margin: 0 auto;
}
.public-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  height: 32px;
  margin-bottom: 1rem;
}
.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.footer-social a {
  color: var(--text-main);
  font-size: 1.25rem;
}
.footer-social a:hover {
  color: var(--accent-cyan);
}
.footer-col h3 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #fff;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--accent-cyan);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.seo-disclaimer {
  max-width: 50%;
  text-align: right;
  font-size: 0.75rem;
  opacity: 0.5;
}

/* Badges */
.seo-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
}
.seo-badge.primary { background: rgba(0, 240, 255, 0.15); color: var(--accent-cyan); border: 1px solid rgba(0, 240, 255, 0.3); }
.seo-badge.success { background: rgba(52, 199, 89, 0.15); color: var(--success); border: 1px solid rgba(52, 199, 89, 0.3); }

/* City Stats Grid */
.city-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.city-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
}
.city-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.city-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Pagination */
.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}
.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.pagination-link:hover:not(.disabled):not(.active) {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.pagination-link.active {
  background: var(--accent-cyan);
  color: #000;
  font-weight: 700;
  border-color: var(--accent-cyan);
}
.pagination-link.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.pagination-ellipsis {
  color: var(--text-muted);
  padding: 0 0.25rem;
}

/* Hub City Grid */
.hub-city-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 1.5rem;
}
.hub-city-grid li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
}
.hub-city-grid li a {
  color: var(--accent-cyan);
  font-size: 0.95rem;
}
.hub-city-count {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* ===== PORTAL PAGES ===== */

/* Portal Hub Grid */
.portal-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.portal-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}
.portal-hub-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 200, 255, 0.08);
}
.portal-hub-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.15), rgba(100, 255, 200, 0.1));
  color: var(--accent-cyan);
  font-size: 1.25rem;
}
.portal-hub-card-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.portal-hub-card-stats {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.portal-hub-stat {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.portal-hub-stat i { font-size: 0.75rem; }
.portal-hub-stat.concorrencia {
  color: rgba(255, 180, 50, 0.7);
}
.portal-hub-card-ufs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.portal-uf-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
}
.portal-uf-badge.more {
  background: rgba(0, 200, 255, 0.1);
  color: var(--accent-cyan);
}
.portal-hub-card-arrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-top: auto;
}

/* Portal Disclaimer */
.portal-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: rgba(255, 180, 50, 0.06);
  border: 1px solid rgba(255, 180, 50, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.portal-disclaimer i {
  color: rgba(255, 180, 50, 0.6);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Portal Stats Grid */
.portal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.portal-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.25rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.portal-stat-card i {
  font-size: 1.2rem;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}
.portal-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.portal-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Portal Cross Links */
.portal-cross-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.portal-cross-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}
.portal-cross-links a:hover {
  background: rgba(0, 200, 255, 0.08);
  border-color: var(--accent-cyan);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .public-header-container { padding: 1rem; }
  .hide-mobile { display: none; }
  .btn-public-login { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .public-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
  .seo-disclaimer { max-width: 100%; text-align: center; }
  .public-main { padding: 0 1rem; }
  .seo-h1 { font-size: 1.75rem; }
  .city-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-city-grid { grid-template-columns: 1fr 1fr; }
  .portal-hub-grid { grid-template-columns: 1fr; }
  .portal-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-cross-links { flex-direction: column; }
  .pagination-link { min-width: 2rem; height: 2rem; font-size: 0.8rem; padding: 0 0.5rem; }
}
