/* Good Game Station - POS Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  /* GOOD GAME STATION Official Color System */
  --brand-primary: #0806A8;       /* Electric Blue (30% Blue) */
  --brand-primary-dark: #05036F;  /* Deep Blue */
  --brand-accent: #FFC928;        /* Game Yellow (25% Yellow) */
  --brand-accent-red: #FF3366;    /* Play Red (5% Red) */
  --brand-bg: #F7F8FC;            /* Soft White Background */
  --brand-card: #FFFFFF;          /* Pure White (30% White) */
  --brand-text: #11121A;          /* Almost Black (10% Dark) */
  --brand-text-muted: #6B7280;
  --brand-border: #E2E6F0;
  --brand-success: #10B981;

  /* Legacy & iOS tokens mapping to Brand Color System */
  --ios-bg: #F7F8FC;
  --ios-card: #FFFFFF;
  --ios-primary: #0806A8;
  --ios-secondary: #6B7280;
  --ios-border: #E2E6F0;
  --ios-accent: #FFC928;
  --ios-success: #10B981;
  --ios-danger: #FF3366;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background-color: var(--brand-bg);
  color: var(--brand-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD2E0;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* iOS Segmented Control */
.ios-segmented-control {
  background-color: #E8ECF5;
  padding: 3px;
  border-radius: 12px;
  display: inline-flex;
  position: relative;
  user-select: none;
}
.ios-segmented-btn {
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #6B7280;
  cursor: pointer;
}
.ios-segmented-btn.active {
  background-color: #FFFFFF;
  color: #0806A8;
  box-shadow: 0 2px 6px rgba(8, 6, 168, 0.08);
}

/* iOS Card */
.ios-card {
  background-color: #FFFFFF;
  border-radius: 20px;
  border: 1px solid var(--brand-border);
  box-shadow: 0 2px 12px rgba(8, 6, 168, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ios-card-interactive:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 6, 168, 0.25);
  box-shadow: 0 8px 24px rgba(8, 6, 168, 0.08);
}

.ios-card-interactive:active {
  transform: scale(0.98);
}

/* iOS Buttons */
.ios-btn-primary {
  background-color: #0806A8;
  color: #FFFFFF;
  border-radius: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(8, 6, 168, 0.25);
}
.ios-btn-primary:hover {
  background-color: #05036F;
  box-shadow: 0 6px 18px rgba(5, 3, 111, 0.35);
}
.ios-btn-primary:active {
  transform: scale(0.97);
}

/* Yellow Accent Button (Clear, High Contrast, Not Garish) */
.ios-btn-accent {
  background-color: #FFC928;
  color: #11121A;
  border-radius: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 201, 40, 0.35);
}
.ios-btn-accent:hover {
  background-color: #E5B31E;
  box-shadow: 0 6px 18px rgba(229, 179, 30, 0.45);
}
.ios-btn-accent:active {
  transform: scale(0.97);
}

.ios-btn-secondary {
  background-color: #FFFFFF;
  color: #0806A8;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.ios-btn-secondary:hover {
  background-color: #F0F3FF;
  border-color: rgba(8, 6, 168, 0.3);
}
.ios-btn-secondary:active {
  transform: scale(0.97);
}

.ios-btn-danger {
  background-color: #FF3366;
  color: #FFFFFF;
  border-radius: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 51, 102, 0.25);
}
.ios-btn-danger:hover {
  background-color: #E02555;
}
.ios-btn-danger:active {
  transform: scale(0.97);
}

/* iOS Badge / Pill */
.ios-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Modal animation */
.ios-modal-backdrop {
  background: rgba(5, 3, 111, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: opacity 0.2s ease;
}

.ios-modal-content {
  animation: iosModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes iosModalIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Print Thermal Receipt Styling */
@media print {
  body * {
    visibility: hidden;
  }
  #thermal-receipt, #thermal-receipt * {
    visibility: visible;
  }
  #thermal-receipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 58mm;
    margin: 0;
    padding: 2mm;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    line-height: 1.3;
    color: #000000;
    background: #FFFFFF;
  }
  .no-print {
    display: none !important;
  }
}
