/*--------------------------------------------------------------
# Live Server CSS Fixes for Zetlink Pharmaceuticals
# This file ensures all styles work correctly on live server
# Version: 1.0
# Date: August 1, 2025
--------------------------------------------------------------*/

/* Critical Newsletter Form Styles with !important for live server compatibility */
.newsletter-container {
  background: linear-gradient(135deg, rgba(237, 80, 46, 0.1) 0%, rgba(241, 119, 93, 0.05) 100%) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 20px !important;
  padding: 30px 25px !important;
  margin-top: 20px !important;
  border: 1px solid rgba(237, 80, 46, 0.2) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.newsletter-container:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 25px 50px rgba(237, 80, 46, 0.15) !important;
  border-color: rgba(237, 80, 46, 0.3) !important;
}

.newsletter-header h4 {
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  margin-bottom: 15px !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.newsletter-header p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  text-align: center !important;
  margin-bottom: 25px !important;
}

/* Inline Newsletter Form - Critical Styles */
.newsletter-inline-group {
  display: flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 50px !important;
  padding: 6px !important;
  border: 2px solid transparent !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
  overflow: hidden !important;
  margin-bottom: 20px !important;
  backdrop-filter: blur(10px) !important;
  gap: 0 !important;
  max-width: 400px !important;
  width: 100% !important;
  flex-direction: row !important;
}

.newsletter-inline-group:focus-within {
  border-color: #ed502e !important;
  transform: scale(1.02) !important;
  box-shadow: 0 6px 30px rgba(237, 80, 46, 0.3) !important;
}

.newsletter-input-inline {
  flex: 1 !important;
  border: none !important;
  outline: none !important;
  padding: 14px 12px !important;
  font-size: 15px !important;
  background: transparent !important;
  color: #333 !important;
  border-radius: 50px !important;
  position: relative !important;
  z-index: 2 !important;
  font-family: 'Open Sans', sans-serif !important;
  max-width: calc(100% - 150px) !important;
  min-width: 200px !important;
}

.newsletter-input-inline::placeholder {
  color: #999 !important;
  font-style: italic !important;
}

.newsletter-input-inline:focus::placeholder {
  color: #bbb !important;
}

.newsletter-btn-inline {
  background: linear-gradient(135deg, #ed502e 0%, #f1775d 100%) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 20px !important;
  color: white !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  position: relative !important;
  z-index: 2 !important;
  box-shadow: 0 4px 15px rgba(237, 80, 46, 0.3) !important;
  min-width: 130px !important;
  max-width: 130px !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.newsletter-btn-inline:hover {
  background: linear-gradient(135deg, #d63916 0%, #e85a3a 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 25px rgba(237, 80, 46, 0.4) !important;
}

.newsletter-btn-inline:active {
  transform: translateY(0) !important;
}

/* Animation Classes - Ensure they work on live server */
.scale-in {
  animation: scaleIn 0.5s ease-out !important;
}

.bounce-in {
  animation: bounceIn 0.8s ease-out !important;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out !important;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out !important;
}

.floating-card {
  animation: float 6s ease-in-out infinite !important;
}

.glow-effect:hover::before {
  opacity: 0.3 !important;
}

.pulse-btn {
  animation: pulse 2s infinite !important;
}

/* Card Delay Animation Classes */
.card-delay-1 { animation-delay: 0.1s !important; }
.card-delay-2 { animation-delay: 0.2s !important; }
.card-delay-3 { animation-delay: 0.3s !important; }
.card-delay-4 { animation-delay: 0.4s !important; }
.card-delay-5 { animation-delay: 0.5s !important; }
.card-delay-6 { animation-delay: 0.6s !important; }

/* Keyframes - Critical for live server */
@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(30px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(-10px);
  }
  70% {
    transform: scale(0.9) translateY(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0px);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(237, 80, 46, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(237, 80, 46, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(237, 80, 46, 0);
  }
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 768px) {
  .newsletter-container {
    padding: 25px 20px !important;
    border-radius: 15px !important;
    margin-top: 15px !important;
  }
  
  .newsletter-header h4 {
    font-size: 20px !important;
    flex-direction: column !important;
    gap: 5px !important;
  }
  
  .newsletter-header p {
    font-size: 13px !important;
    margin-bottom: 20px !important;
  }
  
  .newsletter-inline-group {
    flex-direction: row !important;
    align-items: center !important;
    padding: 4px !important;
    gap: 0 !important;
    max-width: 100% !important;
  }
  
  .newsletter-input-inline {
    padding: 12px 10px !important;
    text-align: left !important;
    font-size: 13px !important;
    max-width: calc(100% - 110px) !important;
    min-width: 150px !important;
  }
  
  .newsletter-btn-inline {
    padding: 12px 18px !important;
    border-radius: 50px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .newsletter-container {
    padding: 20px 15px !important;
    margin-top: 15px !important;
  }
  
  .newsletter-inline-group {
    gap: 0 !important;
    padding: 3px !important;
    max-width: 100% !important;
    flex-direction: row !important;
  }
  
  .newsletter-input-inline {
    padding: 10px 8px !important;
    font-size: 12px !important;
    max-width: calc(100% - 90px) !important;
    min-width: 120px !important;
  }
  
  .newsletter-btn-inline {
    padding: 10px 15px !important;
    font-size: 11px !important;
    min-width: 85px !important;
    max-width: 85px !important;
  }
}

/* Portfolio Lightbox Fixes */
.portfolio-lightbox {
  z-index: 999 !important;
  pointer-events: auto !important;
}

.share-btn {
  z-index: 1000 !important;
  position: relative !important;
  pointer-events: auto !important;
}

/* Portfolio Info Z-Index Fixes */
.portfolio .portfolio-item .portfolio-info {
  z-index: 999 !important;
  position: absolute !important;
  background: rgba(13, 35, 65, 0.95) !important;
  backdrop-filter: blur(5px) !important;
  border: 2px solid rgba(237, 80, 46, 0.3) !important;
  border-radius: 0 0 8px 8px !important;
}

.portfolio .portfolio-item .portfolio-info h4 {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

.portfolio .portfolio-item .portfolio-info p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.portfolio .portfolio-item .portfolio-info .preview-link,
.portfolio .portfolio-item .portfolio-info .details-link {
  z-index: 1001 !important;
  position: absolute !important;
  color: #ed502e !important;
  background: rgba(255, 255, 255, 0.9) !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.portfolio .portfolio-item .portfolio-info .details-link {
  z-index: 1001 !important;
}

.portfolio-info {
  z-index: 15 !important;
  position: relative !important;
}

.portfolio-info .share-btn {
  z-index: 20 !important;
  position: relative !important;
}

.portfolio-item img {
  z-index: 1 !important;
  position: relative !important;
}

/* Newsletter Status Messages */
.newsletter-status {
  margin-top: 15px !important;
  padding: 12px 20px !important;
  border-radius: 25px !important;
  font-size: 14px !important;
  text-align: center !important;
  font-weight: 500 !important;
  opacity: 0 !important;
  transform: translateY(-10px) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.newsletter-status.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.newsletter-status.success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.9) 0%, rgba(40, 167, 69, 0.7) 100%) !important;
  color: #fff !important;
  border: 2px solid rgba(40, 167, 69, 0.3) !important;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.2) !important;
}

.newsletter-status.error {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.9) 0%, rgba(220, 53, 69, 0.7) 100%) !important;
  color: #fff !important;
  border: 2px solid rgba(220, 53, 69, 0.3) !important;
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.2) !important;
}

/* Newsletter Benefits */
.newsletter-benefits {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 15px !important;
}

.newsletter-benefits span {
  background: rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  backdrop-filter: blur(5px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Ensure all brand colors work correctly */
:root {
  --primary-color: #ed502e;
  --secondary-color: #f1775d;
  --dark-primary: #d63916;
  --dark-secondary: #e85a3a;
}

/* Browser Compatibility Fixes */
.newsletter-inline-group {
  -webkit-backdrop-filter: blur(10px) !important;
  -moz-backdrop-filter: blur(10px) !important;
  -ms-backdrop-filter: blur(10px) !important;
}

.newsletter-container {
  -webkit-backdrop-filter: blur(10px) !important;
  -moz-backdrop-filter: blur(10px) !important;
  -ms-backdrop-filter: blur(10px) !important;
}

/* Fallback for older browsers */
@supports not (backdrop-filter: blur(10px)) {
  .newsletter-inline-group {
    background: rgba(255, 255, 255, 0.98) !important;
  }
  
  .newsletter-container {
    background: rgba(237, 80, 46, 0.15) !important;
  }
}
