/* MAISQUEMIL - Premium Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&family=Inter:wght@400;500;700&display=swap');

:root {
  --color-orange: #FF5722;
  --color-orange-glow: rgba(255, 87, 34, 0.4);
  --color-dark: #0F172A;
  --color-midnight: #0B0F19;
  --color-white: #FFFFFF;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .font-display {
  font-family: 'Outfit', sans-serif;
}

/* Sharp UI overrides */
.sharp {
  border-radius: 0px !important;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Pulse Glow (For CTAs) */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 var(--color-orange-glow); }
  70% { box-shadow: 0 0 0 15px rgba(255, 87, 34, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 87, 34, 0); }
}

.btn-glow {
  position: relative;
  transition: all 0.3s ease;
}

.btn-glow:hover {
  animation: pulseGlow 1.5s infinite;
  transform: translateY(-2px);
}

/* Neo-Brutalism & Cards */
.card-neo {
  background: var(--color-white);
  border: 2px solid var(--color-dark);
  box-shadow: 4px 4px 0px var(--color-dark);
  transition: all 0.2s ease-in-out;
}

.card-neo:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px var(--color-dark);
}

/* Inputs & Form Elements */
.input-premium {
  background: transparent;
  border: none;
  border-bottom: 2px solid #CBD5E1;
  padding: 12px 0;
  width: 100%;
  transition: all 0.3s ease;
}

.input-premium:focus {
  outline: none;
  border-bottom-color: var(--color-orange);
  box-shadow: 0 4px 6px -1px var(--color-orange-glow);
}

/* Dark Mode Sidebar */
.sidebar-dark {
  background-color: var(--color-midnight);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-link {
  color: #94A3B8;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--color-orange);
}

.sidebar-link.active {
  color: var(--color-white);
  background: rgba(255, 87, 34, 0.1);
  border-left-color: var(--color-orange);
}

/* Massive Typographic Hero Adjustments */
.hero-massive {
  font-size: clamp(2.5rem, 7vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--color-dark);
}

.text-accent {
  color: var(--color-orange);
}

.bg-accent {
  background-color: var(--color-orange) !important;
}

.border-accent {
  border-color: var(--color-orange) !important;
}

.text-dark {
  color: var(--color-dark) !important;
}

.bg-dark {
  background-color: var(--color-dark) !important;
}

.border-dark {
  border-color: var(--color-dark) !important;
}

.bg-midnight {
  background-color: var(--color-midnight) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #94A3B8;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-orange);
}

/* iOS Safari 100vh fix */
@supports (-webkit-touch-callout: none) {
  html, body {
    min-height: -webkit-fill-available;
  }
}

/* ============================================
   UI/UX ENHANCEMENTS - MaisQueMil
   ============================================ */

/* --- SKELETON LOADING --- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text { height: 1rem; width: 100%; }
.skeleton-title { height: 1.5rem; width: 60%; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-card { height: 120px; }

/* --- BUTTON STATES --- */
.btn {
  @apply px-6 py-3 font-bold uppercase tracking-wider transition-all duration-200 cursor-pointer;
}

.btn:disabled {
  @apply opacity-50 cursor-not-allowed;
}

.btn-primary {
  @apply bg-orange-500 text-white border-2 border-dark shadow-[4px_4px_0px_#0F172A];
}

.btn-primary:hover:not(:disabled) {
  @apply translate-y-[-2px] shadow-[6px_6px_0px_#0F172A];
}

.btn-primary:active:not(:disabled) {
  @apply translate-y-0 shadow-[2px_2px_0px_#0F172A];
}

.btn-secondary {
  @apply bg-white text-dark border-2 border-dark;
}

.btn-secondary:hover:not(:disabled) {
  @apply bg-gray-100;
}

/* Loading spinner in button */
.btn-loading {
  @apply relative text-transparent;
}

.btn-loading::after {
  content: '';
  @apply absolute inset-0 flex items-center justify-center;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  @apply fixed top-4 right-4 z-50 flex flex-col gap-3 max-w-sm;
}

.toast {
  @apply p-4 rounded-lg shadow-lg flex items-center gap-3 animate-slide-in;
}

.toast-success {
  @apply bg-green-500 text-white border-l-4 border-green-700;
}

.toast-error {
  @apply bg-red-500 text-white border-l-4 border-red-700;
}

.toast-warning {
  @apply bg-yellow-500 text-white border-l-4 border-yellow-700;
}

.toast-info {
  @apply bg-blue-500 text-white border-l-4 border-blue-700;
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.animate-slide-in {
  animation: slide-in 0.3s ease-out;
}

/* --- FORM ENHANCEMENTS --- */
.form-group {
  @apply mb-4;
}

.form-label {
  @apply block text-sm font-bold text-gray-700 mb-2 uppercase tracking-wide;
}

.form-input {
  @apply w-full px-4 py-3 border-2 border-gray-200 rounded-lg transition-all duration-200;
  @apply focus:border-orange-500 focus:ring-2 focus:ring-orange-200 focus:outline-none;
}

.form-input:invalid:not(:placeholder-shown) {
  @apply border-red-500;
}

.form-error {
  @apply text-red-500 text-sm mt-1 font-medium;
}

.form-help {
  @apply text-gray-500 text-sm mt-1;
}

/* --- PAGE TRANSITIONS --- */
.page-enter {
  opacity: 0;
  transform: translateY(10px);
}

.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* --- RESPONSIVE IMPROVEMENTS --- */
@media (max-width: 640px) {
  .hero-massive {
    font-size: 2rem;
  }

  .card-neo {
    box-shadow: 2px 2px 0px var(--color-dark);
  }

  .card-neo:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px var(--color-dark);
  }
}

/* --- ACCESSIBILITY --- */
:focus-visible {
  @apply outline-2 outline-orange-500 outline-offset-2;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- UTILITY CLASSES --- */
.cursor-pointer { cursor: pointer; }
.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }