/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Custom breakpoint for extra small screens */
@media (min-width: 400px) {
  .xs\:inline {
    display: inline !important;
  }
}

/* Improve touch targets on mobile */
@media (max-width: 1023px) {
  .touch-target {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Better tap highlight on mobile */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Fix for iOS safe areas */
@supports (padding: max(0px)) {
  .safe-bottom {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

/* Tooltip hover styles */
.tooltip-trigger {
  position: relative;
}

.tooltip-content {
  position: absolute;
  z-index: 50;
  left: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 18rem;
  padding: 1rem;
  background-color: #0D0D0D;
  border: 1px solid #4A4541;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  visibility: hidden;
  opacity: 0;
  transition: all 0.15s ease;
  pointer-events: none;
}

.tooltip-trigger:hover .tooltip-content,
.tooltip-trigger:focus-within .tooltip-content {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   Arena Theme - Reusable Component Classes
   ======================================== */

/* Primary Button - Gold Gradient */
.btn-arena-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(to right, #C49A3D, #A67C2E);
  color: #0D0D0D;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(196, 154, 61, 0.25);
}

.btn-arena-primary:hover {
  background: linear-gradient(to right, #D4A84B, #C49A3D);
  box-shadow: 0 10px 15px -3px rgba(196, 154, 61, 0.35);
  transform: translateY(-1px);
}

.btn-arena-primary:active {
  transform: scale(0.98);
}

.btn-arena-primary:focus-visible {
  outline: 2px solid #D4A84B;
  outline-offset: 2px;
}

/* Secondary Button - Crimson */
.btn-arena-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(to right, #DC2626, #991B1B);
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.25);
}

.btn-arena-secondary:hover {
  background: linear-gradient(to right, #F87171, #DC2626);
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

.btn-arena-secondary:active {
  transform: scale(0.98);
}

.btn-arena-secondary:focus-visible {
  outline: 2px solid #DC2626;
  outline-offset: 2px;
}

/* Outline Button - Gold border */
.btn-arena-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: transparent;
  color: #D4A84B;
  font-weight: 600;
  border: 2px solid #C49A3D;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.btn-arena-outline:hover {
  background: rgba(196, 154, 61, 0.1);
  border-color: #D4A84B;
  color: #E9C050;
}

.btn-arena-outline:active {
  transform: scale(0.98);
}

/* Arena Card */
.card-arena {
  background-color: #1A1614;
  border: 1px solid #33302D;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.card-arena:hover {
  border-color: #4A4541;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Arena Card with gold accent */
.card-arena-accent {
  background-color: #1A1614;
  border: 1px solid rgba(196, 154, 61, 0.3);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.card-arena-accent:hover {
  border-color: rgba(212, 168, 75, 0.5);
  box-shadow: 0 10px 25px -5px rgba(212, 168, 75, 0.15);
}

/* Link with gold hover */
.link-arena {
  color: #a8a29e; /* stone-400 */
  transition: color 0.15s ease;
}

.link-arena:hover {
  color: #D4A84B;
}

/* Gold text accent */
.text-arena-accent {
  color: #D4A84B;
}

/* Section divider with gold accent */
.divider-arena {
  border-top: 1px solid #33302D;
  position: relative;
}

.divider-arena::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, #D4A84B, transparent);
}
