/* Premium Effects & Animations - GetTicketFor.me */

/* ============================================
   GLOBAL PREMIUM ENHANCEMENTS
   ============================================ */

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

/* Premium cursor styles */
* {
  cursor: default;
}

a, button, .btn, input[type="submit"], input[type="button"],
select, .clickable, [role="button"] {
  cursor: pointer;
}

/* Selection styling */
::selection {
  background: rgba(239, 68, 68, 0.2);
  color: #1e293b;
}

::-moz-selection {
  background: rgba(239, 68, 68, 0.2);
  color: #1e293b;
}

/* ============================================
   PREMIUM BUTTON EFFECTS
   ============================================ */

.btn, button:not(.no-effect) {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ripple effect */
.btn::before, button:not(.no-effect)::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before, button:not(.no-effect):active::before {
  width: 300px;
  height: 300px;
}

/* Shimmer effect on hover */
.btn::after, button:not(.no-effect)::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-25deg);
  transition: left 0.6s;
}

.btn:hover::after, button:not(.no-effect):hover::after {
  left: 150%;
}

/* Button lift effect */
.btn:hover, button:not(.no-effect):hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.25);
}

.btn:active, button:not(.no-effect):active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.2);
}

/* ============================================
   CARD PREMIUM EFFECTS
   ============================================ */

.card, .event-card, .ticket-card, .dashboard-card,
.stat-card, .form-section, .featured-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card:hover, .event-card:hover, .ticket-card:hover,
.dashboard-card:hover, .stat-card:hover, .form-section:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Card shine effect */
.card::before, .event-card::before, .ticket-card::before,
.dashboard-card::before, .stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.7s;
  pointer-events: none;
}

.card:hover::before, .event-card:hover::before,
.ticket-card:hover::before, .dashboard-card:hover::before,
.stat-card:hover::before {
  left: 100%;
}

/* ============================================
   INPUT & FORM PREMIUM EFFECTS
   ============================================ */

.input-field, .search-input, input, textarea, select {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.input-field:focus, .search-input:focus,
input:focus, textarea:focus, select:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
}

/* Floating label effect */
.input-group {
  position: relative;
}

.input-group .input-label {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group:focus-within .input-label {
  color: #ef4444;
  transform: translateY(-2px);
}

/* Input glow effect */
.input-field:focus, .search-input:focus {
  animation: inputGlow 2s ease-in-out infinite;
}

@keyframes inputGlow {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.05);
  }
}

/* ============================================
   NAVIGATION & MENU EFFECTS
   ============================================ */

.nav-link, .dropdown-item, .nav-item a {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide-in underline effect */
.nav-link::after, .dropdown-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after, .dropdown-item:hover::after {
  width: 100%;
}

/* Menu dropdown animation */
.dropdown-menu, .user-dropdown-menu {
  animation: dropdownSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   TABLE & LIST ANIMATIONS
   ============================================ */

.table tbody tr, .list-item, .recent-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.table tbody tr:hover, .list-item:hover, .recent-item:hover {
  transform: translateX(5px);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.05), transparent);
}

/* Staggered animation for list items */
.table tbody tr, .list-item {
  animation: fadeInUp 0.5s ease-out backwards;
}

.table tbody tr:nth-child(1), .list-item:nth-child(1) { animation-delay: 0.05s; }
.table tbody tr:nth-child(2), .list-item:nth-child(2) { animation-delay: 0.1s; }
.table tbody tr:nth-child(3), .list-item:nth-child(3) { animation-delay: 0.15s; }
.table tbody tr:nth-child(4), .list-item:nth-child(4) { animation-delay: 0.2s; }
.table tbody tr:nth-child(5), .list-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   MODAL & OVERLAY EFFECTS
   ============================================ */

.modal, .modal-overlay {
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================
   BADGE & TAG ANIMATIONS
   ============================================ */

.badge, .status-badge, .capacity-badge, .tab-badge {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.badge:hover, .status-badge:hover, .capacity-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Pulse animation for important badges */
.badge.pulse, .status-badge.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
}

/* ============================================
   LOADING & SKELETON EFFECTS
   ============================================ */

.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================
   ICON ANIMATIONS
   ============================================ */

.icon, i, .fa, .fas, .far, .fab {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon:hover, i:hover, button:hover i, a:hover i {
  transform: scale(1.2) rotate(5deg);
}

/* Spinning icon */
.icon-spin {
  animation: spin 1s linear infinite;
}

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

/* Bounce icon */
.icon-bounce {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ============================================
   NOTIFICATION & TOAST EFFECTS
   ============================================ */

.toast, .notification, .alert, .flash-message {
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Toast exit animation */
.toast.hide, .notification.hide {
  animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */

.page-content, .content-main, .main-content {
  animation: pageLoad 0.5s ease-out;
}

@keyframes pageLoad {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   PARALLAX & DEPTH EFFECTS
   ============================================ */

.parallax-section {
  position: relative;
  transform-style: preserve-3d;
}

.parallax-layer {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3D tilt effect on cards */
.card-3d, .featured-card, .event-card {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateZ(10px);
}

/* ============================================
   GRADIENT ANIMATIONS
   ============================================ */

.gradient-animate {
  background: linear-gradient(
    -45deg,
    #ef4444,
    #dc2626,
    #f97316,
    #ef4444
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ============================================
   PROGRESS & LOADING BARS
   ============================================ */

.progress-bar {
  position: relative;
  overflow: hidden;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: progressShine 2s ease-in-out infinite;
}

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

/* ============================================
   MICRO-INTERACTIONS
   ============================================ */

/* Checkbox animation */
input[type="checkbox"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="checkbox"]:checked {
  animation: checkBounce 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes checkBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Toggle switch animation */
.toggle-switch {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-switch.active {
  animation: toggleSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes toggleSlide {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */

.float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ============================================
   GLOWING EFFECTS
   ============================================ */

.glow {
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
  }
}

/* ============================================
   ZOOM EFFECTS
   ============================================ */

.zoom-in {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoom-in:hover {
  transform: scale(1.05);
}

/* Image zoom on hover */
.image-zoom-container {
  overflow: hidden;
  border-radius: 12px;
}

.image-zoom-container img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-zoom-container:hover img {
  transform: scale(1.1);
}

/* ============================================
   ACCESSIBILITY & REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   FOCUS STATES
   ============================================ */

*:focus-visible {
  outline: 3px solid rgba(239, 68, 68, 0.5);
  outline-offset: 3px;
  animation: focusGlow 1s ease-in-out infinite;
}

@keyframes focusGlow {
  0%, 100% {
    outline-color: rgba(239, 68, 68, 0.3);
  }
  50% {
    outline-color: rgba(239, 68, 68, 0.7);
  }
}
