/* Agent Christmas (AgentXmas.com) - Theme Stylesheet */
:root {
  --bg-dark: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-hover: #1b2640;
  --border-subtle: #243252;
  --crimson: #e63946;
  --crimson-glow: rgba(230, 57, 70, 0.35);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.3);
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.3);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: linear-gradient(180deg, rgba(230, 57, 70, 0.12) 0%, rgba(11, 15, 25, 0) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  font-size: 32px;
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, #fca5a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--crimson);
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-ucp {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-cart {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-cart:hover {
  border-color: var(--crimson);
  background: var(--bg-card-hover);
}

.cart-count {
  background: var(--crimson);
  color: white;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 40px 0 30px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.hero h1 span {
  color: var(--crimson);
}

.hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 780px;
  margin: 0 auto 28px;
}

.protocol-strip {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.protocol-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.protocol-tag strong {
  color: var(--text-main);
}

/* Search Box & Controls */
.search-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.agent-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.agent-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.agent-tab.active {
  background: var(--crimson);
  color: white;
  border-color: var(--crimson);
  box-shadow: 0 0 15px var(--crimson-glow);
}

.search-inputs {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
}

.input-field {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: white;
  font-size: 15px;
  width: 100%;
  outline: none;
}

.input-field:focus {
  border-color: var(--crimson);
}

.btn-search {
  background: linear-gradient(135deg, #e63946, #b91c1c);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 28px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--crimson-glow);
  transition: all 0.2s;
}

.btn-search:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Advocate Scorecard */
.advocate-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(19, 27, 46, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.advocate-score-box {
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--emerald);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 130px;
}

.advocate-score-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--emerald);
  line-height: 1;
}

.advocate-score-grade {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
  text-transform: uppercase;
}

/* Agent Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.agent-card:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 57, 70, 0.5);
}

.agent-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.agent-name {
  font-weight: 700;
  font-size: 15px;
}

.agent-protocol {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--text-muted);
}

.product-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.product-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 12px;
}

.product-retailer {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-reason {
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  flex-grow: 1;
}

.bullet-list {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-left: 18px;
}

.bullet-list li {
  margin-bottom: 4px;
}

/* UCP Catalog Section */
.catalog-section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.catalog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #1a2236;
}

.catalog-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.catalog-badge-delivery {
  font-size: 11px;
  color: var(--emerald);
  font-weight: 600;
  margin-bottom: 6px;
}

.btn-add-cart {
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid var(--crimson);
  color: white;
  padding: 10px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  margin-top: auto;
  transition: all 0.2s;
}

.btn-add-cart:hover {
  background: var(--crimson);
}

/* Cart Drawer */
.cart-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-subtle);
  z-index: 101;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: var(--radius-md);
}

.btn-checkout {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 14px var(--emerald-glow);
  margin-top: 14px;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(11, 15, 25, 0.95);
  padding: 30px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-content p {
  margin-bottom: 8px;
}

.footer-credits a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-credits a:hover {
  color: var(--crimson);
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-inputs {
    grid-template-columns: 1fr;
  }
  .advocate-banner {
    flex-direction: column;
    text-align: center;
  }
}
