/**
 * Theme Modal Styles - Magic Cat Themes Showcase
 * Styles for theme details modal
 */

/* ===== THEME MODAL OVERLAY ===== */
#theme-modal.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1001;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}

#theme-modal.modal-overlay.active {
  display: flex;
}

/* ===== THEME MODAL CONTENT ===== */
.theme-modal-content {
  position: relative;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border: 2px solid var(--border-color);
  border-radius: 24px;
  padding: 0;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6),
              0 0 60px var(--glow-color);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Custom scrollbar for modal */
.theme-modal-content::-webkit-scrollbar {
  width: 8px;
}

.theme-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 24px 24px 0;
}

.theme-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
}

/* ===== MODAL HEADER ===== */
.theme-modal-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.modal-app-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.theme-modal-title-container {
  flex: 1;
}

.theme-modal-title {
  font-size: 1.75rem;
  font-weight: bold;
  background: linear-gradient(to right, #a78bfa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.theme-modal-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ===== BADGES ===== */
.theme-price-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.theme-price-badge.premium {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.theme-price-badge.free {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000;
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.5);
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.theme-store-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(167, 139, 250, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* ===== MODAL BODY ===== */
.theme-modal-body {
  padding: 2rem;
}

/* ===== THEME PREVIEW ===== */
.theme-modal-preview {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 2px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.theme-preview-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.theme-modal-preview:hover .theme-preview-image {
  transform: scale(1.05);
}

/* ===== THEME INFO ===== */
.theme-modal-info {
  margin-bottom: 2rem;
}

.theme-modal-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ===== FEATURES LIST ===== */
.theme-features-list {
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.features-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.features-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-items li {
  color: var(--text-secondary);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
}

.features-items li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

/* ===== EXTERNAL STORE WARNING ===== */
.external-store-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.warning-icon {
  font-size: 2rem;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

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

.warning-content h4 {
  color: #f59e0b;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.warning-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ===== ACTION BUTTONS ===== */
.theme-modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-get-theme {
  flex: 1;
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-get-theme:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px var(--glow-color);
  background: linear-gradient(135deg, #7c85f0 0%, #8b5bb8 100%);
}

.btn-get-theme:active {
  transform: translateY(-1px);
}

.btn-get-theme.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-get-theme.ko-fi-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-get-theme.ko-fi-btn:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 10px 35px rgba(16, 185, 129, 0.6);
}

.btn-cancel {
  flex: 0;
  min-width: 120px;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ===== COMING SOON MESSAGE ===== */
.coming-soon-message {
  text-align: center;
  padding: 2rem;
  background: rgba(167, 139, 250, 0.1);
  border: 2px dashed var(--border-color);
  border-radius: 16px;
}

.coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

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

.coming-soon-message h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(to right, #a78bfa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.coming-soon-message p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn-notify {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 2px solid rgba(245, 158, 11, 0.5);
  border-radius: 10px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-notify:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  #theme-modal.modal-overlay {
    padding: 10px;
  }

  .theme-modal-content {
    max-height: 95vh;
    border-radius: 20px;
  }

  .theme-modal-header {
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .modal-app-icon {
    width: 60px;
    height: 60px;
  }

  .theme-modal-title {
    font-size: 1.4rem;
  }

  .theme-modal-body {
    padding: 1.5rem;
  }

  .theme-modal-actions {
    flex-direction: column;
  }

  .btn-get-theme {
    min-width: auto;
    width: 100%;
  }

  .btn-cancel {
    min-width: auto;
    width: 100%;
  }

  .coming-soon-icon {
    font-size: 3rem;
  }

  .coming-soon-message h3 {
    font-size: 1.3rem;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .theme-modal-header {
    padding: 1.25rem;
  }

  .modal-app-icon {
    width: 50px;
    height: 50px;
  }

  .theme-modal-title {
    font-size: 1.25rem;
  }

  .theme-modal-body {
    padding: 1.25rem;
  }

  .theme-modal-description {
    font-size: 0.95rem;
  }

  .btn-get-theme {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }

  .theme-features-list {
    padding: 1.25rem;
  }

  .features-items li {
    font-size: 0.9rem;
  }

  .external-store-warning {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }

  .warning-icon {
    font-size: 1.5rem;
  }
}
