/* ==========================================================================
   Empire Brick Con - Master Stylesheet
   Sharp, modular, authentic LEGO® convention aesthetic (square & blocky)
   ========================================================================== */

:root {
  --lego-red: #D11013;
  --lego-red-hover: #b30d0f;
  --lego-yellow: #FFCF00;
  --lego-yellow-hover: #e6b800;
  --lego-blue: #29ABE2;
  --lego-blue-hover: #1f8cb9;
  --lego-navy: #0055BF;
  --lego-green: #00852B;
  --lego-orange: #FF7700;
  --lego-dark: #0f141c;
  --lego-dark-card: #161c26;
  --lego-dark-border: #232c3b;
  --lego-light: #F8FAFC;
  --stud-size: 20px;
}

/* LEGO Stud Pattern Backgrounds */
.stud-pattern-light {
  background-color: #f1f5f9;
  background-image: radial-gradient(#cbd5e1 18%, transparent 20%);
  background-size: 24px 24px;
}

.stud-pattern-dark {
  background-color: #0b0f17;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 18%, transparent 20%);
  background-size: 24px 24px;
}

.stud-pattern-accent {
  background-color: #D11013;
  background-image: radial-gradient(rgba(0, 0, 0, 0.18) 20%, transparent 22%),
                    radial-gradient(rgba(255, 255, 255, 0.25) 15%, transparent 18%);
  background-position: 0 0, 1px 1px;
  background-size: 24px 24px;
}

/* 3D Brick Buttons - Squared & Crisp */
.brick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: 2px;
  transition: all 0.12s ease-in-out;
  cursor: pointer;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  user-select: none;
}

.brick-btn-red {
  background-color: var(--lego-red);
  color: #ffffff;
  border-bottom: 4px solid #8e0b0d;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.brick-btn-red:hover {
  background-color: #e01b1e;
  transform: translateY(-1px);
  border-bottom-width: 5px;
}
.brick-btn-red:active {
  transform: translateY(3px);
  border-bottom-width: 1px;
  box-shadow: none;
}

.brick-btn-yellow {
  background-color: var(--lego-yellow);
  color: #0b0f17;
  border-bottom: 4px solid #b38600;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.brick-btn-yellow:hover {
  background-color: #ffda2e;
  transform: translateY(-1px);
  border-bottom-width: 5px;
}
.brick-btn-yellow:active {
  transform: translateY(3px);
  border-bottom-width: 1px;
  box-shadow: none;
}

.brick-btn-blue {
  background-color: var(--lego-blue);
  color: #ffffff;
  border-bottom: 4px solid #166e92;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.brick-btn-blue:hover {
  background-color: #40bbf0;
  transform: translateY(-1px);
  border-bottom-width: 5px;
}
.brick-btn-blue:active {
  transform: translateY(3px);
  border-bottom-width: 1px;
}

.brick-btn-dark {
  background-color: #1e2634;
  color: #f8fafc;
  border: 1px solid #334155;
  border-bottom: 4px solid #0f172a;
}
.brick-btn-dark:hover {
  background-color: #2b3649;
  transform: translateY(-1px);
}
.brick-btn-dark:active {
  transform: translateY(3px);
  border-bottom-width: 1px;
}

/* Stud Decorative Elements */
.brick-stud {
  position: relative;
  border-radius: 50%;
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.4), 0 2px 3px rgba(0,0,0,0.25);
}

.brick-stud-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.brick-stud-row .stud {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6), 0 2px 3px rgba(0,0,0,0.3);
}

/* Custom Navigation Tabs - Modular & Square Interlocking */
.portal-tab-btn {
  position: relative;
  transition: all 0.15s ease-in-out;
  border-radius: 2px 2px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
}

.portal-tab-btn.active {
  color: #ffffff;
  background-color: #1a222e;
  border-color: #334155;
  border-top: 3px solid var(--lego-yellow);
}

.portal-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #1a222e;
}

/* Interactive Map SVGs */
.map-booth {
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-booth:hover {
  filter: brightness(1.2);
  stroke-width: 2.5;
  stroke: #ffd500;
}

.map-booth.user-assigned {
  stroke: #ffffff;
  stroke-width: 3;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% { stroke: #ffd500; stroke-width: 2px; }
  50% { stroke: #ffffff; stroke-width: 4px; }
  100% { stroke: #ffd500; stroke-width: 2px; }
}

/* Toast System - Crisp and squared */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  animation: slide-up 0.2s ease-out;
  color: white;
}

.toast-success {
  background-color: #0f766e;
  border-left: 5px solid #14b8a6;
}

.toast-info {
  background-color: #1e3a8a;
  border-left: 5px solid #29abe2;
}

.toast-warning {
  background-color: #854d0e;
  border-left: 5px solid #ffcf00;
}

.toast-error {
  background-color: #991b1b;
  border-left: 5px solid #ef4444;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Backdrops */
.modal-overlay {
  background-color: rgba(9, 13, 20, 0.82);
  backdrop-filter: blur(4px);
  animation: fade-in 0.15s ease-out;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Print Styles for Exhibitor Badges */
@media print {
  body * {
    visibility: hidden;
  }
  #badge-print-area, #badge-print-area * {
    visibility: visible;
  }
  #badge-print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 24px;
    background: white !important;
    color: black !important;
  }
  .no-print {
    display: none !important;
  }
}
