/* Button components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xs) var(--spacing-md);
  border: none;
  border-radius: var(--radius-medium);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: var(--spacing-xs);
}

/* Mobile app-like buttons */
@media (max-width: 768px) {
  .btn {
    border-radius: 12px;
    font-weight: 600;
    min-height: 44px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  
  .btn:active {
    transform: scale(0.98);
  }
  
  .btn-large {
    padding: 16px 24px;
    font-size: 1.1rem;
    border-radius: 16px;
  }
}

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

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

.btn-primary:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

.btn-secondary:hover:not(:disabled) {
  background: #26a69a;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
}

.btn-large {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 1.125rem;
}

.btn-small {
  padding: 6px var(--spacing-sm);
  font-size: 0.875rem;
}

/* Form components */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-medium);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
}

/* Card components */
.card {
  background: var(--background-white);
  border-radius: var(--radius-large);
  border: none;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: var(--spacing-md);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.5;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.card-footer {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--background-light);
  border-top: 1px solid var(--border-light);
}

/* Badge component */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px var(--spacing-xs);
  background: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-small);
}

.badge-secondary {
  background: var(--secondary-color);
}

.badge-success {
  background: #27ae60;
}

.badge-warning {
  background: #f39c12;
}

.badge-danger {
  background: #e74c3c;
}

/* Category-specific badge colors - can be used with .badge or .category-tag */
.badge-activity,
.category-tag.badge-activity {
  background: linear-gradient(135deg, #ff6b6b, #ffa500) !important;
  color: white !important;
}

.badge-class,
.category-tag.badge-class {
  background: linear-gradient(135deg, #4ecdc4, #44a08d) !important;
  color: white !important;
}

.badge-social,
.category-tag.badge-social {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: white !important;
}

.badge-dating,
.category-tag.badge-dating {
  background: linear-gradient(135deg, #f093fb, #f5576c) !important;
  color: white !important;
}

.badge-beauty,
.category-tag.badge-beauty {
  background: linear-gradient(135deg, #ffecd2, #fcb69f) !important;
  color: #333 !important;
}

.badge-trip,
.category-tag.badge-trip {
  background: linear-gradient(135deg, #a8edea, #fed6e3) !important;
  color: #333 !important;
}

.badge-sports,
.category-tag.badge-sports {
  background: linear-gradient(135deg, #4facfe, #00f2fe) !important;
  color: white !important;
}

.badge-culture,
.category-tag.badge-culture {
  background: linear-gradient(135deg, #43e97b, #38f9d7) !important;
  color: #333 !important;
}

/* City-specific badge colors */
.city-sydney,
.city-tag.city-sydney {
  background: #000000 !important;
  color: white !important;
}

.city-melbourne,
.city-tag.city-melbourne {
  background: #5d3a7a !important;
  color: white !important;
}

.city-brisbane,
.city-tag.city-brisbane {
  background: #0066cc !important;
  color: white !important;
}

.city-perth,
.city-tag.city-perth {
  background: #ff8c42 !important;
  color: white !important;
}

.city-adelaide,
.city-tag.city-adelaide {
  background: #2d7a4f !important;
  color: white !important;
}

.city-goldcoast,
.city-tag.city-goldcoast {
  background: #f4a300 !important;
  color: white !important;
}

.city-canberra,
.city-tag.city-canberra {
  background: #003d7a !important;
  color: white !important;
}

.city-darwin,
.city-tag.city-darwin {
  background: #c44536 !important;
  color: white !important;
}

.city-hobart,
.city-tag.city-hobart {
  background: #2c5f4f !important;
  color: white !important;
}

/* Modal component */

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-light);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: var(--spacing-md) auto;
}

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

/* Alert component */
.alert {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-medium);
  margin-bottom: var(--spacing-md);
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Walk-in Modal Styles */
.block-options {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.block-option-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.block-option-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(255, 107, 107, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.block-option-btn:hover::before {
  opacity: 1;
}

.block-option-btn:hover {
  border-color: #ff6b6b;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(255, 107, 107, 0.2), 0 4px 8px rgba(0, 0, 0, 0.05);
}

.block-option-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 107, 107, 0.15);
}

/* Specific style for simple block button */
.block-option-btn:first-child .option-icon {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.block-option-btn:first-child:hover {
  border-color: #ef4444;
}

.block-option-btn:first-child:hover::before {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.1) 100%);
}

.block-option-btn:first-child:hover .option-icon {
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
  transform: scale(1.1) rotate(-5deg);
}

/* Specific style for walk-in button */
.block-option-btn:last-child .option-icon {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.block-option-btn:last-child:hover {
  border-color: #3b82f6;
}

.block-option-btn:last-child:hover::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.block-option-btn:last-child:hover .option-icon {
  background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
  transform: scale(1.1) rotate(5deg);
}

.option-icon {
  font-size: 2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.option-text {
  flex: 1;
  position: relative;
  z-index: 1;
}

.option-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.block-option-btn:hover .option-text strong {
  color: #111827;
}

.option-text p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.block-option-btn:hover .option-text p {
  color: #4b5563;
}

/* Form Control Styles for Walk-in */
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  color: #374151;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-control:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Footer Language Switcher - Hidden on Desktop */
.footer-language-switcher {
  display: none;
}

/* Mobile responsiveness for walk-in modal */
@media (max-width: 768px) {
  .block-options {
    flex-direction: column;
    gap: 12px;
  }

  .block-option-btn {
    padding: 16px;
  }

  .option-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
  }

  .option-text strong {
    font-size: 0.95rem;
  }

  .option-text p {
    font-size: 0.8rem;
  }
}