/* Animated CTA Styles - Standalone Component */

.important-notice-section {
  background: linear-gradient(135deg, #D8E460 0%, #B8C850 50%, #D8E460 100%);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  padding: 40px 20px;
  margin: 40px 0;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(216, 228, 96, 0.3);
  position: relative;
  overflow: hidden;
  /* Mobile animation optimizations */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: background-position;
}

.important-notice-section::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #D8E460, #586B36, #D8E460, #586B36);
  background-size: 400% 400%;
  border-radius: 22px;
  z-index: -1;
  animation: borderGlow 3s ease infinite;
  /* Mobile optimization */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: background-position;
}

.important-notice-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.notice-header {
  margin-bottom: 30px;
}

.notice-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #586B36;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
  animation: pulseText 2s ease infinite;
  /* Mobile optimization */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.notice-subtitle {
  font-size: 1.2rem;
  color: #586B36;
  margin-bottom: 30px;
  opacity: 0.9;
}

.notices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.notice-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(88, 107, 54, 0.2);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
  animation: floatCard 3s ease-in-out infinite;
  /* Mobile optimization */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.notice-card:nth-child(2) {
  animation-delay: 1.5s;
}

.notice-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 35px rgba(88, 107, 54, 0.2);
  border-color: #586B36;
}

.notice-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: bounceIcon 2s ease infinite;
  /* Mobile optimization */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.notice-card-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #586B36;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.notice-message {
  font-size: 1rem;
  color: #586B36;
  line-height: 1.5;
  opacity: 0.9;
}

.cta-button-container {
  margin-top: 30px;
}

.animated-cta-button {
  background: linear-gradient(45deg, #586B36, #6B7F44);
  color: #FFFFFF;
  border: none;
  padding: 18px 40px;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(88, 107, 54, 0.4);
  animation: ctaPulse 2s ease infinite;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  /* Mobile optimization */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.animated-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(216, 228, 96, 0.3), transparent);
  transition: left 0.5s;
}

.animated-cta-button:hover::before {
  left: 100%;
}

.animated-cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(88, 107, 54, 0.6);
  background: linear-gradient(45deg, #6B7F44, #586B36);
}

.cta-subtext {
  font-size: 0.9rem;
  color: #586B36;
  margin-top: 10px;
  animation: fadeInOut 3s ease infinite;
  opacity: 0.8;
}

/* Animations */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

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

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

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

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

@keyframes ctaPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(88, 107, 54, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 12px 35px rgba(88, 107, 54, 0.6);
  }
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .important-notice-section {
    padding: 30px 15px;
    margin: 30px 10px;
    border-radius: 15px;
  }
  
  .notice-title {
    font-size: 2rem;
  }
  
  .notice-subtitle {
    font-size: 1rem;
  }
  
  .notices-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .notice-card {
    padding: 20px;
  }
  
  .notice-card-title {
    font-size: 1.2rem;
  }
  
  .notice-message {
    font-size: 0.9rem;
  }
  
  .animated-cta-button {
    padding: 15px 30px;
    font-size: 1.1rem;
  }
}

/* Reduce animations on mobile for better performance */
@media (max-width: 768px) and (hover: none) {
  /* Disable hover effects on touch devices */
  .notice-card:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(88, 107, 54, 0.2);
    border-color: rgba(88, 107, 54, 0.2);
  }
  
  .animated-cta-button:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(88, 107, 54, 0.4);
    background: linear-gradient(45deg, #586B36, #6B7F44);
  }
  
  /* Reduce animation intensity for better mobile performance */
  .important-notice-section {
    animation-duration: 6s;
  }
  
  .important-notice-section::before {
    animation-duration: 5s;
  }
  
  .notice-title {
    animation-duration: 3s;
  }
  
  .notice-card {
    animation-duration: 4s;
  }
  
  .notice-icon {
    animation-duration: 3s;
  }
  
  .animated-cta-button {
    animation-duration: 3s;
  }
}

/* Fallback for older mobile browsers that don't support will-change */
@supports not (will-change: transform) {
  .important-notice-section,
  .important-notice-section::before,
  .notice-title,
  .notice-card,
  .notice-icon,
  .animated-cta-button {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
  }
}

@media (max-width: 480px) {
  .notice-title {
    font-size: 1.8rem;
  }
  
  .animated-cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
}
