/* Newburgh Brewing Company Brand Styles */

:root {
  --nb-purple: #702082;
  --nb-purple-dark: #4a1f66;
  --nb-salmon: #EE7470;
  --nb-lilac: #CBA3D8;
  --nb-tan: #cfc493;
  --nb-dusty-rose: #cda3b8;
  --nb-white: #ffffff;
  --nb-gray-light: #f5f5f5;
  --nb-gray: #999;
  --nb-gray-dark: #333;
}

/* Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--nb-gray-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--nb-purple);
  margin-top: 0;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
  background: var(--nb-purple);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background: var(--nb-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(112, 32, 130, 0.3);
}

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

.btn-secondary {
  background: transparent;
  color: var(--nb-purple);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--nb-purple);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background: var(--nb-purple);
  color: white;
  transform: translateY(-2px);
}

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

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Cards */
.nb-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nb-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.nb-card-clickable {
  cursor: pointer;
}

.nb-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--nb-purple);
  margin-bottom: 0.5rem;
}

.nb-card-description {
  color: var(--nb-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Hero Background */
.hero-bg {
  background: linear-gradient(135deg, var(--nb-purple) 0%, var(--nb-purple-dark) 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.hero-bg h1,
.hero-bg h2,
.hero-bg h3 {
  color: white;
}

/* Header */
.nb-header {
  background: linear-gradient(135deg, var(--nb-purple) 0%, var(--nb-purple-dark) 100%);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nb-header-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: white;
}

.nb-header-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

/* Logo */
.nb-logo {
  max-width: 150px;
  height: auto;
}

.nb-logo-large {
  max-width: 200px;
  height: auto;
}

/* Containers */
.nb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.nb-container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* Grid Layouts */
.nb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Loading Spinner */
.nb-spinner {
  border: 4px solid var(--nb-gray-light);
  border-top: 4px solid var(--nb-purple);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Messages */
.nb-message {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.nb-message-info {
  background: var(--nb-lilac);
  color: var(--nb-purple-dark);
  border-left: 4px solid var(--nb-purple);
}

.nb-message-warning {
  background: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

.nb-message-error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.nb-message-success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

/* Forms */
.nb-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--nb-gray-light);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.nb-input:focus {
  outline: none;
  border-color: var(--nb-purple);
}

.nb-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--nb-purple);
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--nb-gray);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Responsive */
@media (max-width: 768px) {
  .nb-container,
  .nb-container-narrow {
    padding: 1rem;
  }

  .nb-header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .nb-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .nb-logo-large {
    max-width: 150px;
  }
}
