/* /public/css/home.css */
/* ============================================
   HOME PAGE STYLES
   Modern, clean design matching scan.html
   ============================================ */

/* Page Layout */
.home-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background Decoration */
.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.bg-circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.bg-circle-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: -80px;
  animation: float 15s ease-in-out infinite reverse;
}

.bg-circle-3 {
  width: 150px;
  height: 150px;
  bottom: -50px;
  right: 20%;
  animation: float 18s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Main Content */
.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px 20px 20px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */

.home-hero {
  text-align: center;
  padding: 20px 0 30px;
}

.hero-logo {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-logo-icon {
  font-size: 80px;
  display: block;
  animation: pulse 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.hero-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-title {
  color: white;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================
   CTA BUTTON
   ============================================ */

.home-cta {
  margin-bottom: 40px;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: white;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.cta-button:hover::before {
  opacity: 1;
}

.cta-button:active {
  transform: translateY(-2px);
}

.cta-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.cta-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cta-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.cta-desc {
  font-size: 14px;
  color: #64748b;
}

.cta-arrow {
  font-size: 24px;
  color: #6366f1;
  font-weight: 600;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.cta-button:hover .cta-arrow {
  transform: translateX(4px);
}

/* ============================================
   EVENTS SECTION
   ============================================ */

.home-events {
  flex: 1;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.section-icon {
  font-size: 20px;
}

.section-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}

.section-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Events Loading */
.events-loading {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.8);
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.loading-dots span {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* Events List */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  animation: slideUp 0.4s ease-out backwards;
}

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

.event-item:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.event-item:active {
  transform: translateX(4px);
}

.event-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-item-icon {
  font-size: 20px;
}

.event-item-name {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.event-item-arrow {
  font-size: 18px;
  color: #6366f1;
  font-weight: 600;
  transition: transform 0.3s;
}

.event-item:hover .event-item-arrow {
  transform: translateX(4px);
}

/* Empty State */
.events-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.events-empty p {
  font-size: 14px;
  margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.home-footer {
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 10px;
  transition: all 0.3s;
}

.admin-link:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
}

.admin-icon {
  font-size: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 768px) {
  .home-main {
    padding: 60px 20px 30px;
    justify-content: center;
  }
  
  .hero-logo-icon {
    font-size: 100px;
  }
  
  .hero-title {
    font-size: 44px;
  }
  
  .hero-subtitle {
    font-size: 18px;
    max-width: 320px;
  }
  
  .cta-button {
    padding: 24px 30px;
  }
  
  .cta-icon {
    font-size: 48px;
  }
  
  .cta-title {
    font-size: 22px;
  }
}

@media (max-height: 700px) {
  .home-hero {
    padding: 10px 0 20px;
  }
  
  .hero-logo-icon {
    font-size: 60px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .home-cta {
    margin-bottom: 25px;
  }
}

/* ============================================
   BUTTON RIPPLE EFFECT
   ============================================ */

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
  width: 400px;
  height: 400px;
}

/* ============================================
   PULSE ANIMATION
   ============================================ */

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