/* Modern CSS Variables for consistent theming - Dark Green Irish Theme */
:root {
  --primary-color: #166534;
  --primary-hover: #15803d;
  --primary-light: #dcfce7;
  --secondary-color: #22c55e;
  --background: #0f1419;
  --surface: #1a2332;
  --card-background: #0d1117;
  --border: #30363d;
  --border-light: #21262d;
  --text-primary: #f0fdf4;
  --text-secondary: #bbf7d0;
  --text-muted: #86efac;
  --success: #22c55e;
  --danger: #ef4444;
  --accent: #fbbf24;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.5);
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* background: linear-gradient(135deg, var(--background) 0%, #191d1a 100%); */
  background-color: #191d1a;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container and layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header styles */
.header {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-around;
  align-items: end;
}

.title {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Main content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* Item display */
.item-display {
  width: 100%;
  margin-bottom: 1rem;
}

.item-card {
  background: var(--card-background);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  transition: var(--transition);
  margin-bottom: 10px;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border-color: var(--primary-color);
}

.item-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  display: block;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.loading-spinner {
  display: none;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.item-info {
  padding: 1.5rem;
}

.item-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.item-description {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

/* Controls */
.controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.random-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.random-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--secondary-color) 100%);
}

.random-btn:active {
  transform: translateY(0);
}

.random-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.category-buttons {
  display: flex;
  gap: 0.5rem;
  background: var(--surface);
  padding: 0.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: center;
}

.category-btn {
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.category-btn:hover {
  background: var(--border);
  color: var(--text-secondary);
}

.category-btn.active {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

.category-btn.active:hover {
  background: var(--primary-hover);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .title {
    font-size: 1rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .item-info {
    padding: 1.25rem;
  }
  
  .item-name {
    font-size: 1.3rem;
  }
  
  .category-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .category-btn {
    width: 100%;
    text-align: center;
  }
  
  .random-btn {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.75rem;
  }
  
  .title {
    font-size: 1.1rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .item-info {
    padding: 1rem;
  }
  
  .item-name {
    font-size: 1.2rem;
  }
  
  .item-description {
    font-size: 0.9rem;
  }
  
  .random-btn {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }
  
  .category-btn {
    font-size: 0.85rem;
    padding: 0.625rem 0.875rem;
  }
}

/* High contrast mode for accessibility */
@media (prefers-contrast: high) {
  :root {
    --border: #4ade80;
    --text-secondary: #dcfce7;
  }
  
  .item-card {
    border-width: 2px;
  }

}
.taplink {
  width: 100%;
  background-color: rgb(0, 78, 0);
}

.taplink a {
  margin: auto;
  width: 160px;
  display: block;
  text-decoration: none;
  color: white;
}