/* 
  Superdle - Dutch Supermarket Price Guessing Game
  Color palette inspired by Dutch flag & culture
*/

:root {
  /* Dutch flag colors */
  --dutch-red: #AE1C28;
  --dutch-white: #FFFFFF;
  --dutch-blue: #21468B;
  
  /* Dutch orange (national color) */
  --dutch-orange: #FF6B00;
  --dutch-orange-light: #FF9A4D;
  --dutch-orange-dark: #E55A00;
  --dutch-orange-glow: rgba(255, 107, 0, 0.15);
  
  /* Neutral tones - warm cream inspired by Dutch cheese/stroopwafels */
  --bg-primary: #FDF8F3;
  --bg-secondary: #F5EDE4;
  --bg-card: #FFFFFF;
  --text-primary: #2D2A26;
  --text-secondary: #5C5650;
  --text-muted: #8A8279;
  
  /* Game colors */
  --guess-win: #22C55E;
  --guess-win-bg: rgba(34, 197, 94, 0.15);
  --guess-near: #FBBF24;
  --guess-near-bg: rgba(251, 191, 36, 0.15);
  --guess-far: #EF4444;
  --guess-far-bg: rgba(239, 68, 68, 0.15);
  
  /* Shadows & effects */
  --shadow-sm: 0 1px 3px rgba(45, 42, 38, 0.08);
  --shadow-md: 0 4px 12px rgba(45, 42, 38, 0.1);
  --shadow-lg: 0 8px 30px rgba(45, 42, 38, 0.12);
  --shadow-glow: 0 0 40px var(--dutch-orange-glow);
  
  /* Borders */
  --border-color: #E8DFD4;
  --border-radius: 12px;
  --border-radius-lg: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--dutch-orange);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Dutch flag stripes at top */
.dutch-stripes {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  display: flex;
  z-index: 1000;
}

.dutch-stripes .stripe {
  flex: 1;
}

.dutch-stripes .red {
  background: var(--dutch-red);
}

.dutch-stripes .white {
  background: var(--dutch-white);
  border-bottom: 1px solid #eee;
}

.dutch-stripes .blue {
  background: var(--dutch-blue);
}

/* Subtle background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at top left, var(--dutch-orange-glow) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(33, 70, 139, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

body::-webkit-scrollbar {
  display: none;
}

a {
  color: var(--dutch-orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--dutch-orange-dark);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

ul {
  margin-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

/* Brand colors */
.dutch-orange {
  color: var(--dutch-orange);
}

.dutch-blue {
  color: var(--dutch-blue);
}

.dutch-red {
  color: var(--dutch-red);
}

/* Utility classes */
.hide {
  display: none !important;
}

.transparent-background {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Main layout */
#main-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
  padding-top: 8px;
  overflow: hidden;
}

/* Header */
#site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  position: relative;
  z-index: 10;
}

#header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 380px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.info-title {
  font-size: 1.5rem;
}

/* New Game Button */
#new-game-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 6px;
  cursor: pointer;
  color: var(--dutch-orange);
  border: 2px solid var(--dutch-orange);
  border-radius: 8px;
  background: var(--bg-card);
  transition: all 0.2s ease;
}

#new-game-button:hover {
  color: white;
  background: var(--dutch-orange);
  transform: rotate(180deg);
}

#new-game-button svg {
  width: 18px;
  height: 18px;
}

/* Header buttons */
#info-button,
#stat-button,
#reset-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 9px;
  cursor: pointer;
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  transition: all 0.2s ease;
}

#info-button:hover,
#stat-button:hover,
#reset-button:hover {
  color: var(--dutch-orange);
  border-color: var(--dutch-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#info-button svg,
#stat-button svg,
#reset-button svg {
  width: 22px;
  height: 22px;
}


/* Footer */
#site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}

#footer-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-emoji {
  font-size: 1.125rem;
}

.footer-divider {
  opacity: 0.5;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--dutch-orange-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--dutch-orange);
}

/* Responsive adjustments */
@media screen and (max-height: 900px) {
  #image-container {
    width: 260px;
    height: 260px;
  }

  #product-info {
    font-size: 1rem;
  }
}

@media screen and (max-height: 800px) {
  #image-container {
    width: 220px;
    height: 220px;
  }
  
  .title {
    font-size: 2rem;
  }

  #site-footer {
    padding: 12px 0;
    font-size: 0.75rem;
  }
}

@media screen and (max-height: 700px) {
  #image-container {
    width: 180px;
    height: 180px;
  }
  
  #info-card {
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 12px;
  }
  
  .guess-container {
    min-height: 36px;
  }
}

@media screen and (max-height: 650px) {
  #image-container {
    width: 150px;
    height: 150px;
  }
}
