/* 
 * Button Component Styles
 * Uses theme variables for consistent styling
 */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Primary button */
.button-primary {
  background-color: var(--theme-primary);
  color: white;
}

.button-primary:hover {
  background-color: var(--theme-primary-hover);
}

.button-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--theme-primary), 0.4);
}

/* Secondary button */
.button-secondary {
  background-color: var(--theme-secondary);
  color: white;
}

.button-secondary:hover {
  background-color: var(--theme-secondary-hover);
}

.button-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--theme-secondary), 0.4);
}

/* Outline button */
.button-outline {
  background-color: transparent;
  color: var(--theme-primary);
  border: 1px solid var(--theme-primary);
}

.button-outline:hover {
  background-color: var(--theme-primary);
  color: white;
}

.button-outline:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--theme-primary), 0.4);
}

/* Ghost button */
.button-ghost {
  background-color: transparent;
  color: var(--theme-text);
}

.button-ghost:hover {
  background-color: rgba(var(--theme-border), 0.2);
}

.button-ghost:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--theme-border), 0.4);
}

/* Danger button */
.button-danger {
  background-color: var(--theme-error-bg);
  color: var(--theme-error-text);
}

.button-danger:hover {
  background-color: var(--theme-error-text);
  color: white;
}

.button-danger:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--theme-error-text), 0.4);
}

/* Button sizes */
.button-sm {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
}

.button-lg {
  font-size: 1.125rem;
  padding: 0.625rem 1.25rem;
}

/* Icon button */
.button-icon {
  padding: 0.5rem;
  border-radius: 50%;
}

.button-icon-sm {
  padding: 0.375rem;
}

.button-icon-lg {
  padding: 0.625rem;
}

/* Disabled state */
.button:disabled,
.button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

/* 
 * Card Component Styles
 * Uses theme variables for consistent styling
 */

.card {
  background-color: rgb(var(--theme-card));
  border-radius: 0.5rem;
  border: 1px solid rgb(var(--theme-border));
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Card variants */
.card-default {
  box-shadow: var(--theme-shadow);
  padding: 1.5rem;
}

.card-flat {
  padding: 1.5rem;
}

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

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--theme-shadow-lg);
}

/* Card layout elements */
.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgb(var(--theme-border));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgb(var(--theme-border));
}

/* Card with image */
.card-image {
  width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}

.card-image-top {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.card-image-bottom {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

/* Card sizes */
.card-sm {
  padding: 1rem;
}

.card-lg {
  padding: 2rem;
}

/* Card with gradient header */
.card-gradient-header .card-header {
  background: linear-gradient(
    135deg,
    var(--theme-primary),
    var(--theme-secondary)
  );
  color: white;
  border-bottom: none;
}

/* Card themes */
.card-primary {
  border-color: var(--theme-primary);
}

.card-primary .card-header {
  background-color: var(--theme-primary);
  color: white;
}

.card-secondary {
  border-color: var(--theme-secondary);
}

.card-secondary .card-header {
  background-color: var(--theme-secondary);
  color: white;
}

/* Status cards */
.card-success {
  border-color: var(--theme-success-text);
}

.card-success .card-header {
  background-color: var(--theme-success-bg);
  color: var(--theme-success-text);
}

.card-warning {
  border-color: var(--theme-warning-text);
}

.card-warning .card-header {
  background-color: var(--theme-warning-bg);
  color: var(--theme-warning-text);
}

.card-error {
  border-color: var(--theme-error-text);
}

.card-error .card-header {
  background-color: var(--theme-error-bg);
  color: var(--theme-error-text);
}

.card-info {
  border-color: var(--theme-info-text);
}

.card-info .card-header {
  background-color: var(--theme-info-bg);
  color: var(--theme-info-text);
}

/* 
 * Themed Component Styles
 * Comprehensive set of themed components for consistent styling across the app
 * Uses theme variables from themes.css
 */

/* Base themed component */
.themed-component {
  color: var(--theme-text);
  background-color: var(--theme-background);
}

/* Themed containers */
.themed-container {
  background: linear-gradient(
    135deg,
    var(--theme-background) 0%,
    var(--theme-background-end) 100%
  );
  color: var(--theme-text);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.themed-container-section {
  background-color: var(--theme-background);
  color: var(--theme-text);
  padding: 2rem 1rem;
}

/* Themed cards */
.themed-card {
  background-color: var(--theme-card);
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
  border-radius: 0.5rem;
  box-shadow: var(--theme-shadow);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.themed-card:hover {
  box-shadow: var(--theme-shadow-lg);
  transform: translateY(-1px);
}

.themed-card-header {
  border-bottom: 1px solid var(--theme-border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.themed-card-compact {
  padding: 1rem;
}

.themed-card-featured {
  border-left: 4px solid var(--theme-primary);
}

.themed-card-success {
  border-left: 4px solid var(--theme-success-text);
}

.themed-card-live {
  border-left: 4px solid #10b981;
  background: linear-gradient(
    135deg,
    var(--theme-card) 0%,
    rgba(16, 185, 129, 0.05) 100%
  );
}

/* Themed buttons */
.themed-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.themed-button-primary {
  background-color: var(--theme-primary);
  color: white;
}

.themed-button-primary:hover {
  background-color: var(--theme-primary-hover);
  color: white;
}

.themed-button-secondary {
  background-color: var(--theme-secondary);
  color: white;
}

.themed-button-secondary:hover {
  background-color: var(--theme-secondary-hover);
  color: white;
}

.themed-button-outline {
  background-color: transparent;
  color: var(--theme-primary);
  border: 1px solid var(--theme-primary);
}

.themed-button-outline:hover {
  background-color: var(--theme-primary);
  color: white;
}

.themed-button-ghost {
  background-color: transparent;
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
}

.themed-button-ghost:hover {
  background-color: var(--theme-muted);
  color: var(--theme-text);
}

.themed-button-sm {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
}

.themed-button-lg {
  font-size: 1.125rem;
  padding: 0.75rem 1.5rem;
}

/* Themed form elements */
.themed-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--theme-border);
  border-radius: 0.375rem;
  background-color: var(--theme-card);
  color: var(--theme-text);
  transition: all 0.2s ease;
}

.themed-input:focus {
  outline: none;
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.themed-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--theme-border);
  border-radius: 0.375rem;
  background-color: var(--theme-card);
  color: var(--theme-text);
  resize: vertical;
  min-height: 6rem;
  transition: all 0.2s ease;
}

.themed-textarea:focus {
  outline: none;
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.themed-select {
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--theme-border);
  border-radius: 0.375rem;
  background-color: var(--theme-card);
  color: var(--theme-text);
  -webkit-appearance: none;
     -moz-appearance: none;
          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 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  transition: all 0.2s ease;
}

.themed-select:focus {
  outline: none;
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Themed text styles */
.themed-text {
  color: var(--theme-text);
}

.themed-text-secondary {
  color: var(--theme-text-secondary);
}

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

.themed-heading {
  color: var(--theme-text);
  font-weight: 700;
}

.themed-heading-xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.themed-heading-lg {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.themed-heading-md {
  font-size: 1.5rem;
  line-height: 2rem;
}

.themed-heading-sm {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

/* Themed status badges */
.themed-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.themed-badge-success {
  background-color: var(--theme-success-bg);
  color: var(--theme-success-text);
}

.themed-badge-warning {
  background-color: var(--theme-warning-bg);
  color: var(--theme-warning-text);
}

.themed-badge-error {
  background-color: var(--theme-error-bg);
  color: var(--theme-error-text);
}

.themed-badge-info {
  background-color: var(--theme-info-bg);
  color: var(--theme-info-text);
}

.themed-badge-live {
  background-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.themed-badge-upcoming {
  background-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

/* Themed navigation */
.themed-nav {
  background-color: var(--theme-card);
  border-bottom: 1px solid var(--theme-border);
  color: var(--theme-text);
}

.themed-nav-link {
  color: var(--theme-text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.themed-nav-link:hover {
  color: var(--theme-text);
  background-color: var(--theme-muted);
}

.themed-nav-link-active {
  color: var(--theme-primary);
  background-color: rgba(59, 130, 246, 0.1);
}

/* Themed layout */
.themed-hero {
  background: linear-gradient(
    135deg,
    var(--theme-background) 0%,
    var(--theme-background-end) 100%
  );
  color: var(--theme-text);
  padding: 2rem 0;
  text-align: center;
  width: 100%;
  max-width: 100vw;
}

.themed-section {
  background-color: var(--theme-background);
  color: var(--theme-text);
  padding: 2rem 0;
  width: 100%;
  max-width: 100vw;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  .themed-hero {
    padding: 1.5rem 0;
  }
  
  .themed-section {
    padding: 1.5rem 0;
  }
}

.themed-footer {
  background-color: var(--theme-footer);
  color: var(--theme-accent-foreground);
  padding: 2rem 0;
}

/* Themed grid layouts */
.themed-grid {
  display: grid;
  gap: 1.5rem;
}

.themed-grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.themed-grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.themed-grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
  .themed-grid-cols-2,
  .themed-grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .themed-grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Themed animations */
.themed-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.themed-spin {
  animation: spin 1s linear infinite;
}

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

/* Themed utilities */
.themed-container-max {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile container adjustments */
@media (max-width: 768px) {
  .themed-container-max {
    padding: 0 0.75rem;
  }
}

.themed-divider {
  border-top: 1px solid var(--theme-border);
  margin: 1.5rem 0;
}

.themed-shadow {
  box-shadow: var(--theme-shadow);
}

.themed-shadow-lg {
  box-shadow: var(--theme-shadow-lg);
}

