/* ===================================
   Design System - shadcn inspired
   =================================== */

:root {
  /* Colors - HSL for easy manipulation */
  --background: 0 0% 98%;
  --foreground: 222 47% 11%;

  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;

  --primary: 43 74% 49%;        /* Warm gold */
  --primary-foreground: 0 0% 100%;

  --secondary: 217 33% 17%;     /* Deep navy */
  --secondary-foreground: 0 0% 100%;

  --accent: 5 78% 71%;          /* Coral */
  --accent-foreground: 0 0% 100%;

  --muted: 220 13% 91%;
  --muted-foreground: 220 9% 46%;

  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --ring: 43 74% 49%;

  /* Semantic Colors */
  --success: 142 71% 45%;
  --warning: 38 92% 50%;
  --destructive: 0 84% 60%;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===================================
   Base Styles
   =================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ===================================
   Layout
   =================================== */

.section {
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.section.hidden {
  display: none;
}

.section-title {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
}

.section-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: hsl(var(--muted-foreground));
}

/* ===================================
   Hero Section
   =================================== */

.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero-title {
  font-size: 2.5rem;
  color: hsl(var(--secondary));
  margin-bottom: 1.5rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--primary));
  font-family: 'Inter', sans-serif;
}

.countdown-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-transform: lowercase;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.hero-venue {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
}

/* ===================================
   Stats Grid (Progress Rings)
   =================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.progress-ring {
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: hsl(var(--muted));
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: hsl(var(--primary));
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 0.5s ease;
}

.stat-content {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ===================================
   Card Component
   =================================== */

.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--card-foreground));
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ===================================
   Form Components
   =================================== */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.input,
.select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus,
.select:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* ===================================
   Button Component
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  background: hsl(var(--primary) / 0.9);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover:not(:disabled) {
  background: hsl(var(--secondary) / 0.9);
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover:not(:disabled) {
  background: hsl(var(--muted));
}

.btn-destructive {
  background: hsl(var(--destructive));
  color: white;
}

.btn-destructive:hover:not(:disabled) {
  background: hsl(var(--destructive) / 0.9);
}

.w-full {
  width: 100%;
}

/* ===================================
   Badge Component
   =================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.badge-success {
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
}

.badge-warning {
  background: hsl(var(--warning) / 0.1);
  color: hsl(var(--warning));
}

.badge-destructive {
  background: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
}

/* ===================================
   Progress Bar Component
   =================================== */

.progress-bar {
  height: 0.5rem;
  background: hsl(var(--muted));
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: hsl(var(--primary));
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
}

.progress-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
  white-space: nowrap;
}

/* ===================================
   Bottom Navigation
   =================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 50;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: color 0.2s;
  min-width: 64px;
}

.nav-item.active {
  color: hsl(var(--primary));
}

.nav-icon {
  width: 24px;
  height: 24px;
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 500;
}

/* ===================================
   Utility Classes
   =================================== */

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

/* ===================================
   Alcohol Section Specific
   =================================== */

.need-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.need-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.need-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.need-subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.need-progress {
  margin-top: 0.75rem;
}

.need-progress-text {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}

.assignment-card {
  background: hsl(var(--muted) / 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.assignment-info {
  flex: 1;
}

.assignment-guest {
  font-weight: 500;
  color: hsl(var(--foreground));
}

.assignment-details {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ===================================
   Vendor Cards
   =================================== */

.vendor-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vendor-card.booked {
  border-color: hsl(var(--success));
  background: hsl(var(--success) / 0.03);
}

.vendor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.vendor-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.vendor-contact {
  color: hsl(var(--primary));
  text-decoration: none;
  font-size: 0.875rem;
}

.vendor-contact:hover {
  text-decoration: underline;
}

.vendor-notes {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ===================================
   More Menu
   =================================== */

.more-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
}

.more-menu.hidden {
  display: none;
}

.more-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.more-menu-content {
  position: relative;
  background: hsl(var(--card));
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  width: 100%;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.more-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.more-menu-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.more-menu-items {
  overflow-y: auto;
  padding: 0.5rem;
}

.more-menu-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 1rem;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0.25rem;
}

.more-menu-item:hover:not(.disabled) {
  background: hsl(var(--muted));
}

.more-menu-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.more-menu-item span:first-child {
  font-weight: 500;
}

/* ===================================
   Utility Classes
   =================================== */

.mb-4 {
  margin-bottom: 1rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.text-2xl {
  font-size: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
}

.font-bold {
  font-weight: 700;
}

.form-row {
  display: flex;
  gap: 0.5rem;
}

.form-row .input {
  flex: 1;
}

/* ===================================
   Tasks Section
   =================================== */

.task-category {
  margin-bottom: 1.5rem;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.category-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.category-progress {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.task-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  transition: background 0.2s;
  cursor: pointer;
}

.task-item:hover {
  background: hsl(var(--muted) / 0.5);
}

.task-item.completed {
  opacity: 0.6;
}

.task-item.completed .task-text {
  text-decoration: line-through;
}

.task-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.task-checkbox:checked {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.task-text {
  flex: 1;
  font-size: 1rem;
  color: hsl(var(--foreground));
}

.next-task-card {
  background: hsl(var(--accent) / 0.1);
  border: 1px solid hsl(var(--accent) / 0.3);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.next-task-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--accent));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.next-task-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.next-task-due {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ===================================
   Timeline Section
   =================================== */

.timeline-item {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-left: 4px solid hsl(var(--muted));
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.timeline-item.urgent {
  border-left-color: hsl(var(--destructive));
}

.timeline-item.warning {
  border-left-color: hsl(var(--warning));
}

.timeline-item.normal {
  border-left-color: hsl(var(--success));
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.timeline-date {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.timeline-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.timeline-days {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.timeline-days.urgent {
  background: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
}

.timeline-days.warning {
  background: hsl(var(--warning) / 0.1);
  color: hsl(var(--warning));
}

.timeline-days.normal {
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
}

/* ===================================
   Music Section
   =================================== */

.song-card {
  background: hsl(var(--muted) / 0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.song-text {
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* ===================================
   Discuss Section
   =================================== */

.discuss-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.discuss-card.resolved {
  opacity: 0.6;
}

.discuss-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.discuss-text {
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.discuss-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

.discuss-notes {
  margin-top: 0.5rem;
}

.discuss-notes textarea {
  font-size: 0.875rem;
}

/* ===================================
   Venue Info - Details/Summary
   =================================== */

.details-section {
  margin-bottom: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  overflow: hidden;
}

.details-summary {
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: hsl(var(--muted) / 0.3);
  user-select: none;
}

.details-summary:hover {
  background: hsl(var(--muted) / 0.5);
}

.details-list {
  padding: 1rem;
  margin: 0;
  list-style: none;
}

.details-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.details-list li:last-child {
  border-bottom: none;
}

.details-list li::before {
  content: "• ";
  color: hsl(var(--primary));
  font-weight: bold;
  margin-right: 0.5rem;
}
