/* 
  Midnight Club Online - Components 
  Reusable UI Elements (Buttons, Inputs, Cards)
*/

/* --- CARDS & ROWS --- */
.mc-item-row { 
  margin-bottom: 30px; 
  border-bottom: 1px solid var(--border-subtle); 
  padding-bottom: 18px; 
  width: 100%; 
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, background var(--trans-fast);
}
.mc-item-row.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.mc-item-row:active { transform: scale(0.985); background: rgba(255, 255, 255, 0.04); }

.price-card {
  background: var(--glass-gradient);
  border: 1px solid var(--border-strong);
  width: 85%; max-width: 320px;
  padding: 30px 25px; text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: scale(0.95); transition: transform var(--trans-smooth);
}

#mc-login-card {
  width: min(88vw, 400px);
  background: #000;
  border: 1px solid #333;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  border-radius: 0;
  box-shadow: none;
  transform: scale(0.95);
  transition: transform var(--trans-smooth);
}

/* --- BUTTONS --- */
.mc-gate-btn {
  width: 100%;
  padding: 16px;
  background: #fff;
  color: #000;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  cursor: pointer;
  margin-top: 24px;
  text-transform: uppercase;
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55),
              0 0 30px rgba(228, 210, 168, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.mc-gate-btn:hover {
  background: #e0e0e0;
}

.mc-btn-editorial { 
  background: #fff;
  color: #000; 
  border: none; 
  width: 100%; 
  padding: 18px; 
  font-size: 14px; 
  font-weight: 700; 
  text-transform: uppercase; 
  margin-top: 40px; 
  cursor: pointer; 
  border-radius: 0;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
}
.mc-btn-editorial:active { transform: scale(0.99); }
.mc-gate-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}
.mc-gate-btn:hover::before {
  left: 100%;
}
.mc-gate-btn:active {
  transform: translateY(1px) scale(0.98);
  filter: brightness(0.96);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55), 0 0 20px rgba(228, 210, 168, 0.12);
}

.btn-close-modal { 
  background: #0b0b0b; color: var(--mc-red); border: 1px solid var(--border-subtle); padding: 15px; width: 100%; 
  font-weight: 900; cursor: pointer; text-transform: uppercase; font-size: 12px; 
  letter-spacing: 0.18em; border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--trans-fast), opacity var(--trans-fast); 
}
.btn-close-modal:active { transform: scale(0.99); opacity: 0.95; }

/* --- INPUTS --- */
.mc-input-editorial { 
  background: transparent; border: none; border-bottom: 1px solid var(--border-subtle); 
  color: #fff; width: 100%; padding: 10px 0; font-size: 16px; outline: none;
  font-family: var(--font-body);
}
.mc-input-editorial:focus { border-bottom-color: var(--mc-red); }

.mc-gate-input {
  width: 100%; padding: 12px 0; background: transparent;
  border: none; border-bottom: 1px solid #333;
  color: #fff; font-size: 16px; text-align: center;
  font-weight: 600; outline: none; margin-bottom: 24px;
  border-radius: 0; text-transform: uppercase; letter-spacing: 0.1em;
  font-family: var(--font-body);
  transition: border-color var(--trans-fast);
}
.mc-gate-input:focus { border-bottom-color: #fff; }
.mc-gate-input::placeholder { color: #555; font-size: 11px; letter-spacing: 0.1em;
  font-weight: 600;
}

.search-box {
  width: 100%; background: #0b0b0b; border: 1px solid var(--border-subtle); border-radius: 10px;
  padding: 12px 40px 12px 15px; color: #fff;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  outline: none; text-transform: uppercase; letter-spacing: 0.05em;
  transition: all 0.2s ease;
}
.search-box:focus { 
  border-color: var(--mc-red); 
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.15); 
  background: #070707;
}

/* --- BADGES & LABELS --- */
.mc-top-tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-bottom: -0vw;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  z-index: 2;
}

.mc-label-editorial { 
  display: block; font-size: 13px; color: #fff; margin-bottom: 8px; margin-top: 24px; 
  opacity: 0.8; text-align: left; width: 100%;
}

.promo-banner {
  background: var(--mc-red); color: #000; text-align: center; padding: 10px; 
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; width: 100%;
}

/* --- TEXT ELEMENTS --- */
.mc-page-title {
  font-size: 13px; color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase; letter-spacing: 0.2em;
  margin-bottom: 30px; margin-top: 10px;
}

.mc-item-title { font-size: 32px; font-weight: 800; color: #fff; margin: 0 0 8px 0; text-transform: uppercase; letter-spacing: -0.03em; }
.mc-item-details { font-size: 14px; color: rgba(255, 255, 255, 0.7); display: flex; gap: 10px; }
.mc-separator { opacity: 0.3; }

.mc-gate-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.modal-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 10px 0; line-height: 1.2; text-transform: uppercase; }
.modal-desc { color: #888; font-size: 12px; margin-bottom: 30px; text-transform: uppercase; line-height: 1.4; }

/* --- LINKS --- */
.mc-menu-link {
  font-size: 32px; font-weight: 800; color: var(--mc-red);
  text-decoration: none; text-transform: uppercase;
  line-height: 1.1; letter-spacing: -0.03em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.9);
  text-align: center;
}
.mc-menu-link:active { color: #fff; }

.mc-footer-link {
  color: var(--text-muted); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.2em; text-decoration: none; transition: color var(--trans-fast);
}
.mc-footer-link span { color: var(--mc-red); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mc-footer-link:hover { color: #fff; }

.mc-link-recovery {
  display: block; margin-top: 15px; color: #666; font-size: 11px;
  text-decoration: underline; cursor: pointer; transition: color var(--trans-fast);
  letter-spacing: 0.14em;
}
.mc-link-recovery:hover { color: var(--mc-red); }

/* --- ICONS & DECORATIONS --- */
.mc-item-arrow {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 18px; font-weight: 300;
  opacity: 0; transition: opacity 0.2s;
}
.mc-item-row:active .mc-item-arrow { opacity: 1; }

.plus-icon { 
  width: 28px; height: 28px; 
  display: flex; align-items: center; justify-content: center;
  background: #0b0b0b; border: 1px solid var(--border-subtle); border-radius: 50%;
  color: #fff; font-size: 14px; margin-left: 15px; font-weight: 300; 
  transition: all 0.2s;
}
.item:hover .plus-icon { background: var(--mc-red); border-color: var(--mc-red); color: #0b0b0b; }

.loader { 
  border: 2px solid rgba(255,255,255,0.3); border-top: 2px solid #fff; border-radius: 50%; 
  width: 16px; height: 16px; animation: spin 1s linear infinite; display: inline-block; 
  vertical-align: middle; margin-right: 8px; display:none;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =========================================
   INSTALL APP BUTTON
   ========================================= */
.btn-install-app {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 90;
  background: linear-gradient(135deg, var(--mc-red) 0%, var(--accent) 100%);
  color: #0b0b0b;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45), 0 0 20px rgba(255,255,255,0.2);
  cursor: pointer;
}

.btn-logout {
  margin-top: 30px;
  background: transparent;
  border: 1px solid #333;
  color: #666;
  font-size: 11px;
  padding: 12px;
  width: 100%;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  border-radius: 8px;
}
.btn-logout:hover { border-color: var(--mc-red); color: var(--mc-red); }

/* =========================================
   INPUT VALIDATION STATES (3.1)
   ========================================= */
.mc-input-editorial.input-error {
  border-bottom-color: #cc4444;
  box-shadow: 0 4px 12px rgba(204, 68, 68, 0.2);
}

.mc-input-editorial.input-success {
  border-bottom-color: #4ade80;
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.15);
}

.input-hint {
  font-size: 11px;
  margin-top: 4px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.2s;
  text-align: left;
}
.input-hint.visible { opacity: 1; }
.input-hint.error { color: #cc4444; }
.input-hint.success { color: #4ade80; }

/* Helper text permanente */
.input-helper {
  display: block;
  font-size: 11px;
  color: var(--text-muted, #9b968d);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* =========================================
   SKELETON LOADER (3.2)
   ========================================= */
.skeleton-card {
  background: var(--bg-surface, #0c0c0c);
  border-radius: 8px;
  height: 70px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(228, 210, 168, 0.08) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* =========================================
   MICRO-INTERACTIONS (3.3)
   ========================================= */

/* Success pulse - Glow blanco sutil */
@keyframes success-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(255, 255, 255, 0.15); }
}

.pulse-success {
  animation: success-pulse 0.6s ease;
}

/* Focus state mejorado - Glow blanco sutil */
.mc-input-editorial:focus,
.mc-gate-input:focus {
  border-bottom-color: #fff;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* =========================================
   TOUCH TARGETS (3.9) - Mínimo 44x44px
   ========================================= */
.mc-nav-link,
.mc-gate-close,
.btn-close-modal,
.toggle-password,
.search-clear {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   ACCESIBILIDAD (3.10)
   ========================================= */
/* Focus ring para keyboard navigation */
*:focus-visible {
  outline: 1px solid var(--accent, #e4d2a8);
  outline-offset: 2px;
  opacity: 1 !important;
}

/* Mejor contraste en focus */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  box-shadow: 0 0 0 2px rgba(228, 210, 168, 0.3);
}

/* =========================================
   TOAST NOTIFICATIONS (4.1)
   ========================================= */
.mc-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.mc-toast {
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(228, 210, 168, 0.3);
  border-radius: 8px;
  padding: 14px 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  max-width: 300px;
}

.mc-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.mc-toast.success { border-left: 3px solid #4ade80; }
.mc-toast.error { border-left: 3px solid #cc4444; }
.mc-toast.warning { border-left: 3px solid #f59e0b; }
.mc-toast.info { border-left: 3px solid var(--accent, #e4d2a8); }
