/**
 * Synced Linked WordPress Plugin - Shortcode Styles
 * Modern, responsive styling for WordPress shortcode components
 */

/* Shortcode Container */
.synced-linked-container {
  max-width: 100%;
  margin: 20px 0;
}

/* Link Button */
.synced-linked-btn {
  background: linear-gradient(135deg, #F99A12 0%, #F8CF08 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgb(234 151 102 / 40%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 200px;
  justify-content: center;
}

.synced-linked-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgb(234 169 102 / 60%);
  color: white;
  text-decoration: none;
}

.synced-linked-btn:active {
  transform: translateY(0);
}

.synced-linked-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* Button Icon */
.synced-linked-btn-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.synced-linked-btn:hover .synced-linked-btn-icon {
  transform: scale(1.1);
}

/* Loading State */
.synced-linked-btn.loading {
  position: relative;
  color: transparent;
}

.synced-linked-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: synced-spin 1s linear infinite;
}

/* Modal Overlay */
.synced-linked-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  animation: synced-fade-in 0.3s ease-out;
}

/* Modal Container */
.synced-linked-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  animation: synced-scale-in 0.3s ease-out;
}

/* Modal Header */
.synced-linked-modal-header {
  background: linear-gradient(135deg, #F99A12 0%, #F8CF08 100%);
  color: white;
  padding: 24px;
  text-align: center;
  position: relative;
}

.synced-linked-modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.synced-linked-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgb(50 50 50);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.synced-linked-modal-close:hover {
  background: rgb(24 24 24 / 83%);
  transform: scale(1.1);
}

/* Modal Body */
.synced-linked-modal-body {
  padding: 32px 24px;
  text-align: center;
}

.synced-linked-modal-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  color: #F99A12;
}

.synced-linked-modal-icon svg {
  width: 64px;
  height: 64px;
  animation: synced-pulse 2s ease-in-out infinite;
}

.synced-linked-modal-body p {
  margin: 0px !important;
  font-size: 18px;
  color: #374151;
  line-height: 1.6;
}

.synced-linked-modal-body .synced-linked-instructions {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  text-align: left;
}

.synced-linked-modal-body .synced-linked-instructions h4 {
  margin: 0 0 12px 0;
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
}

.synced-linked-modal-body .synced-linked-instructions ol {
  margin: 0;
  padding-left: 20px;
  color: #475569;
}

.synced-linked-modal-body .synced-linked-instructions li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Status Messages */
.synced-linked-status {
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
  display: none;
}

.synced-linked-status.success {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.synced-linked-status.error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.synced-linked-status.info {
  background: #f6f8fc;
  border: 1px solid #F99A12;
}

/* Progress Indicator */
.synced-linked-progress {
  display: none;
  margin: 24px 0;
}

.synced-linked-progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.synced-linked-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F99A12, #F8CF08);
  border-radius: 4px;
  animation: synced-progress 2s ease-in-out infinite;
}

/* Animations */
@keyframes synced-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes synced-scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes synced-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes synced-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes synced-progress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .synced-linked-modal {
    width: 95%;
    margin: 20px;
  }
  
  .synced-linked-modal-header {
    padding: 20px;
  }
  
  .synced-linked-modal-header h3 {
    font-size: 20px;
  }
  
  .synced-linked-modal-body {
    padding: 24px 20px;
  }
  
  .synced-linked-modal-body p {
    font-size: 16px;
  }
  
  .synced-linked-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .synced-linked-modal-header {
    padding: 16px;
  }
  
  .synced-linked-modal-body {
    padding: 20px 16px;
  }
  
  .synced-linked-modal-icon svg {
    width: 48px;
    height: 48px;
  }
}
