/* Modern Card Editor Styles */

:root {
  --editor-bg: rgba(249, 250, 251, 0.8);
  --editor-card-bg: rgba(255, 255, 255, 0.95);
  --editor-border: rgba(0, 0, 0, 0.05);
  --editor-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --editor-radius: 24px;
  --editor-primary: #4338ca;
  --editor-primary-light: rgba(99, 102, 241, 0.1);
  --editor-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.card-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem;
  min-height: 100vh;
  animation: fadeInUp 0.6s ease-out;
}

.editor-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.editor-header {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.06) 0%, rgba(99, 102, 241, 0.06) 100%);
  border-bottom: 1px solid rgba(67, 56, 202, 0.12);
  color: #111827;
  padding: 1.5rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.editor-content {
  padding: 2rem;
  background: rgba(249, 250, 251, 0.3);
}

/* Card Preview */
.card-preview {
  position: sticky;
  top: 1.5rem;
  height: calc(100vh - 3rem);
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* Background container for gradient */
.preview-background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  background-size: 400% 400%;
  background-attachment: scroll;
  animation: gradientAnimation 15s ease infinite;
  z-index: -1;
  border-radius: 24px;
}

/* Scrollable content overlay */
.preview-content-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: transparent;
  z-index: 1;
  border-radius: 24px;
}

/* Ensure preview uses card show styles */
.preview-card.card-show-body {
  width: 100%;
  min-height: 100vh;
  background: transparent;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  position: relative;
}

.preview-footer {
  position: sticky;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  z-index: 100;
  border-radius: 0 0 24px 24px;
}

/* Modern Checkbox Styling */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  margin: 1.5rem 0;
  transition: var(--editor-transition);
}

.checkbox-group:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(99, 102, 241, 0.2);
}

.checkbox-group input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  position: relative;
  transition: var(--editor-transition);
}

.checkbox-group input[type="checkbox"]:checked {
  background: var(--editor-primary);
  border-color: var(--editor-primary);
}

.checkbox-group input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.checkbox-group input[type="checkbox"]:hover {
  border-color: var(--editor-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.checkbox-group label {
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
}

turbo-frame#card-preview {
  height: 100%;
  display: block;
}

.preview-card {
  min-height: 100vh;
  border-radius: 0;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
  box-shadow: none;
  transition: all 0.3s ease;
}

/* Override background attachment in preview to make images scroll */
.preview-card .hero-section--with-background,
.preview-card .full-background-section {
  background-attachment: scroll !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.preview-card .hero-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  padding: 4rem 1rem;
}

.preview-card .full-background-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.preview-card .card-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  word-wrap: break-word;
  color: var(--text, #0f172a);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.preview-card .card-message {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  word-wrap: break-word;
  color: var(--text, #374151);
  font-weight: 500;
}

.preview-card .card-accent {
  color: var(--light, #ffffff);
  font-weight: 600;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
  letter-spacing: 0.025em;
}

.preview-card .card-countdown {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  margin-bottom: 1rem;
}

.preview-card .card-header {
  width: 100%;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.preview-card .card-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.preview-card .card-address {
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  display: none;
}

.preview-card .card-address strong {
  display: block;
  margin-bottom: 0.25rem;
}

.preview-card .card-map {
  display: none;
  margin-top: 1rem;
}

.preview-card .card-map iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.preview-card .card-footer {
  width: 100%;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.preview-card .card-footer .text-muted {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Theme Selection */
.theme-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.theme-option {
  aspect-ratio: 1;
  border-radius: 16px;
  border: 2px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.theme-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.theme-option.selected {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), 0 4px 16px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.theme-option::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.9);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-option.selected::after {
  opacity: 1;
  transform: scale(1);
}

/* Font Selection */
.font-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.font-option {
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.font-option:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.font-option.selected {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.05);
  color: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

/* Font Theme Selection */
.font-theme-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.font-theme-option {
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
}

.font-theme-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.font-theme-option:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.font-theme-option.selected {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.03);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), 0 4px 16px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.font-theme-name {
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.font-theme-vibe {
  font-size: 0.8rem;
  color: #4b5563;
  font-style: italic;
  font-weight: 500;
}

.font-theme-preview {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(249, 250, 251, 0.6);
  border-radius: 8px;
}

.font-theme-preview .title-demo {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  color: #111827;
}

.font-theme-preview .subtitle-demo {
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.25rem;
  color: #374151;
}

.font-theme-preview .body-demo {
  font-size: 0.85rem;
  color: #4b5563;
}

/* Modern Carousels */
.carousel-container {
  position: relative;
  width: 100%;
  margin-top: 1.5rem;
  background: rgba(249, 250, 251, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 1.5rem 3rem;
  overflow: hidden;
}

.carousel-container::before,
.carousel-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
  z-index: 5;
}

.carousel-container::before {
  left: 3rem;
  background: linear-gradient(to right, #f8f9fa, transparent);
}

.carousel-container::after {
  right: 3rem;
  background: linear-gradient(to left, #f8f9fa, transparent);
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 8px 0;
  cursor: grab;
}

.carousel-viewport:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  padding: 0 8px;
}

.carousel-slide {
  flex: 0 0 auto;
  width: 120px;
  display: flex;
  justify-content: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #4338ca;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.carousel-btn:hover {
  background: white;
  box-shadow: 0 4px 20px rgba(67, 56, 202, 0.15);
  transform: translateY(-50%) scale(1.05);
  border-color: rgba(99, 102, 241, 0.2);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
  left: 12px;
}

.carousel-btn-next {
  right: 12px;
}

/* Theme Carousel Styling */
.theme-slide {
  width: 100px;
}

.theme-option-carousel {
  display: block;
  width: 100px;
  height: 120px;
  border-radius: 16px;
  border: 2px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 8px;
  backdrop-filter: blur(10px);
}

.theme-option-carousel input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-option-carousel:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.theme-option-carousel.selected {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), 0 4px 16px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
  z-index: 2;
}

.theme-name {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.theme-option-carousel::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: #667eea;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.theme-option-carousel.selected::after {
  opacity: 1;
  transform: scale(1);
}

/* Font Carousel Styling */
.font-slide {
  width: 140px;
}

.font-theme-option-carousel {
  display: block;
  width: 140px;
  height: 160px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  padding: 16px;
  text-align: center;
}

.font-theme-option-carousel input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.font-theme-option-carousel:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.font-theme-option-carousel.selected {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.03);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), 0 4px 16px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
  z-index: 2;
}

.font-theme-option-carousel .font-theme-name {
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.font-theme-option-carousel .font-theme-preview {
  margin: 8px 0;
  padding: 12px;
  background: rgba(249, 250, 251, 0.6);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.font-theme-option-carousel .font-theme-preview .title-demo {
  font-size: 1.4rem;
  font-weight: bold;
  color: #111827;
  line-height: 1;
}

.font-theme-option-carousel .font-theme-preview .subtitle-demo {
  font-size: 1.1rem;
  color: #374151;
  line-height: 1;
}

.font-theme-option-carousel .font-theme-preview .body-demo {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1;
}

.font-theme-option-carousel .font-theme-vibe {
  font-size: 0.7rem;
  color: #6b7280;
  font-style: italic;
  font-weight: 500;
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.font-theme-option-carousel::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: rgba(99, 102, 241, 0.9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.font-theme-option-carousel.selected::after {
  opacity: 1;
  transform: scale(1);
}

/* Mobile Carousel Adjustments */
@media (max-width: 768px) {
  .carousel-container {
    padding: 1rem 2.5rem;
  }
  
  .carousel-container::before {
    left: 2.5rem;
  }

  .carousel-container::after {
    right: 2.5rem;
  }
  
  .carousel-slide {
    width: 90px;
  }
  
  .theme-slide {
    width: 80px;
  }
  
  .theme-option-carousel {
    width: 80px;
    height: 100px;
  }
  
  .font-slide {
    width: 110px;
  }
  
  .font-theme-option-carousel {
    width: 110px;
    height: 140px;
    padding: 8px;
  }
  
  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  
  .carousel-btn-prev {
    left: 8px;
  }

  .carousel-btn-next {
    right: 8px;
  }
}

/* Font Theme Application */
.card-with-font-theme-10 .card-title { font-family: 'Playfair Display', serif; font-weight: 700; }
.card-with-font-theme-10 .card-subtitle { font-family: 'Playfair Display', serif; font-style: italic; }
.card-with-font-theme-10 .card-message { font-family: 'Source Sans Pro', sans-serif; font-weight: 400; }
.card-with-font-theme-10 .card-accent { font-family: 'Source Sans Pro', sans-serif; font-weight: 300; }

.card-with-font-theme-11 .card-title { font-family: 'Quattrocento', serif; font-weight: 700; }
.card-with-font-theme-11 .card-subtitle { font-family: 'Quattrocento', serif; font-style: italic; }
.card-with-font-theme-11 .card-message { font-family: 'Quattrocento Sans', sans-serif; font-weight: 400; }
.card-with-font-theme-11 .card-accent { font-family: 'Roboto Mono', monospace; font-weight: 400; }

.card-with-font-theme-12 .card-title { font-family: 'Fjalla One', sans-serif; font-weight: 700; text-transform: uppercase; }
.card-with-font-theme-12 .card-subtitle { font-family: 'Libre Baskerville', serif; font-style: italic; }
.card-with-font-theme-12 .card-message { font-family: 'Libre Baskerville', serif; font-weight: 400; }
.card-with-font-theme-12 .card-accent { font-family: 'Montserrat', sans-serif; font-weight: 300; }

.card-with-font-theme-13 .card-title { font-family: 'Lustria', serif; font-weight: 600; }
.card-with-font-theme-13 .card-subtitle { font-family: 'Lustria', serif; font-style: italic; }
.card-with-font-theme-13 .card-message { font-family: 'Lato', sans-serif; font-weight: 400; }
.card-with-font-theme-13 .card-accent { font-family: 'Lato', sans-serif; font-weight: 100; }

.card-with-font-theme-14 .card-title { font-family: 'Cormorant Garamond', serif; font-weight: 700; }
.card-with-font-theme-14 .card-subtitle { font-family: 'Cormorant Garamond', serif; font-style: italic; }
.card-with-font-theme-14 .card-message { font-family: 'Proza Libre', sans-serif; font-weight: 400; }
.card-with-font-theme-14 .card-accent { font-family: 'Proza Libre', sans-serif; font-weight: 600; }

.card-with-font-theme-15 .card-title { font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase; }
.card-with-font-theme-15 .card-subtitle { font-family: 'EB Garamond', serif; font-style: italic; }
.card-with-font-theme-15 .card-message { font-family: 'EB Garamond', serif; font-weight: 400; }
.card-with-font-theme-15 .card-accent { font-family: 'Oswald', sans-serif; font-weight: 300; }

.card-with-font-theme-16 .card-title { font-family: 'Cinzel', serif; font-weight: 700; }
.card-with-font-theme-16 .card-subtitle { font-family: 'Cinzel', serif; font-style: italic; }
.card-with-font-theme-16 .card-message { font-family: 'Fauna One', serif; font-weight: 400; }
.card-with-font-theme-16 .card-accent { font-family: 'Raleway', sans-serif; font-weight: 400; }

.card-with-font-theme-17 .card-title { font-family: 'Sacramento', cursive; font-weight: 400; font-size: 2.5rem; }
.card-with-font-theme-17 .card-subtitle { font-family: 'Alice', serif; font-style: italic; }
.card-with-font-theme-17 .card-message { font-family: 'Alice', serif; font-weight: 400; }
.card-with-font-theme-17 .card-accent { font-family: 'Open Sans', sans-serif; font-weight: 400; }

.card-with-font-theme-18 .card-title { font-family: 'Yeseva One', cursive; font-weight: 700; text-transform: uppercase; }
.card-with-font-theme-18 .card-subtitle { font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-style: italic; }
.card-with-font-theme-18 .card-message { font-family: 'Josefin Sans', sans-serif; font-weight: 400; }
.card-with-font-theme-18 .card-accent { font-family: 'Josefin Sans', sans-serif; font-weight: 100; }

.card-with-font-theme-19 .card-title { font-family: 'Fredoka One', cursive; font-weight: 400; }
.card-with-font-theme-19 .card-subtitle { font-family: 'Nunito', sans-serif; font-weight: 700; font-style: italic; }
.card-with-font-theme-19 .card-message { font-family: 'Nunito', sans-serif; font-weight: 400; }
.card-with-font-theme-19 .card-accent { font-family: 'Nunito', sans-serif; font-weight: 300; }

.card-with-font-theme-20 .card-title { font-family: 'Kalam', cursive; font-weight: 700; }
.card-with-font-theme-20 .card-subtitle { font-family: 'Comic Neue', cursive; font-weight: 700; font-style: italic; }
.card-with-font-theme-20 .card-message { font-family: 'Comic Neue', cursive; font-weight: 400; }
.card-with-font-theme-20 .card-accent { font-family: 'Kalam', cursive; font-weight: 300; }

.card-with-font-theme-21 .card-title { font-family: 'Bubblegum Sans', cursive; font-weight: 400; }
.card-with-font-theme-21 .card-subtitle { font-family: 'Quicksand', sans-serif; font-weight: 600; font-style: italic; }
.card-with-font-theme-21 .card-message { font-family: 'Quicksand', sans-serif; font-weight: 400; }
.card-with-font-theme-21 .card-accent { font-family: 'Quicksand', sans-serif; font-weight: 300; }

.card-with-font-theme-22 .card-title { font-family: 'Bungee', cursive; font-weight: 400; }
.card-with-font-theme-22 .card-subtitle { font-family: 'Fredoka One', cursive; font-weight: 400; }
.card-with-font-theme-22 .card-message { font-family: 'Nunito Sans', sans-serif; font-weight: 400; }
.card-with-font-theme-22 .card-accent { font-family: 'Nunito Sans', sans-serif; font-weight: 300; }

.card-with-font-theme-23 .card-title { font-family: 'Pacifico', cursive; font-weight: 400; }
.card-with-font-theme-23 .card-subtitle { font-family: 'Amatic SC', cursive; font-weight: 700; }
.card-with-font-theme-23 .card-message { font-family: 'Amatic SC', cursive; font-weight: 400; }
.card-with-font-theme-23 .card-accent { font-family: 'Caveat', cursive; font-weight: 300; }

.card-with-font-theme-24 .card-title { font-family: 'Righteous', cursive; font-weight: 400; }
.card-with-font-theme-24 .card-subtitle { font-family: 'Signika', sans-serif; font-weight: 700; }
.card-with-font-theme-24 .card-message { font-family: 'Signika', sans-serif; font-weight: 400; }
.card-with-font-theme-24 .card-accent { font-family: 'Signika', sans-serif; font-weight: 300; }

.card-with-font-theme-25 .card-title { font-family: 'Orbitron', sans-serif; font-weight: 700; }
.card-with-font-theme-25 .card-subtitle { font-family: 'Exo 2', sans-serif; font-weight: 700; font-style: italic; }
.card-with-font-theme-25 .card-message { font-family: 'Exo 2', sans-serif; font-weight: 400; }
.card-with-font-theme-25 .card-accent { font-family: 'Orbitron', sans-serif; font-weight: 300; }

.card-with-font-theme-26 .card-title { font-family: 'Chewy', cursive; font-weight: 400; }
.card-with-font-theme-26 .card-subtitle { font-family: 'Schoolbell', cursive; font-weight: 400; }
.card-with-font-theme-26 .card-message { font-family: 'Crafty Girls', cursive; font-weight: 400; }
.card-with-font-theme-26 .card-accent { font-family: 'Caveat Brush', cursive; font-weight: 400; }

.card-with-font-theme-27 .card-title { font-family: 'Finger Paint', cursive; font-weight: 400; }
.card-with-font-theme-27 .card-subtitle { font-family: 'Gloria Hallelujah', cursive; font-weight: 400; }
.card-with-font-theme-27 .card-message { font-family: 'Shadows Into Light', cursive; font-weight: 400; }
.card-with-font-theme-27 .card-accent { font-family: 'Kalam', cursive; font-weight: 300; }

.card-with-font-theme-28 .card-title { font-family: 'Audiowide', cursive; font-weight: 400; }
.card-with-font-theme-28 .card-subtitle { font-family: 'Quantico', sans-serif; font-weight: 700; font-style: italic; }
.card-with-font-theme-28 .card-message { font-family: 'Quantico', sans-serif; font-weight: 400; }
.card-with-font-theme-28 .card-accent { font-family: 'Saira Condensed', sans-serif; font-weight: 300; }

.card-with-font-theme-29 .card-title { font-family: 'Bangers', cursive; font-weight: 400; }
.card-with-font-theme-29 .card-subtitle { font-family: 'Faster One', cursive; font-weight: 400; }
.card-with-font-theme-29 .card-message { font-family: 'Titan One', cursive; font-weight: 400; }
.card-with-font-theme-29 .card-accent { font-family: 'Righteous', cursive; font-weight: 400; }

/* File Upload */
.file-upload {
  display: block;
  border: 2px dashed rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 1.5rem;
  background: rgba(99, 102, 241, 0.02);
  backdrop-filter: blur(10px);
}

.file-upload:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.05);
  transform: translateY(-1px);
}

.file-upload.dragover {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.file-upload-icon {
  font-size: 2.5rem;
  color: rgba(99, 102, 241, 0.7);
  margin-bottom: 1rem;
}

.file-upload-text {
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.file-upload-hint {
  font-size: 0.875rem;
  color: #4b5563;
  font-weight: 500;
}

/* Image Upload Slots */
.image-upload-slot {
  margin-bottom: 1.5rem;
}

.image-slot-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slot-description {
  font-size: 0.875rem;
  font-weight: 400;
  color: #6b7280;
  font-style: italic;
}

.image-upload-slot:first-child .file-upload {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.02);
}

.image-upload-slot:first-child .file-upload:hover {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.05);
}

.image-upload-slot:first-child .file-upload-icon {
  color: rgba(34, 197, 94, 0.7);
}

.image-upload-slot:nth-child(2) .file-upload {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.02);
}

.image-upload-slot:nth-child(2) .file-upload:hover {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.05);
}

.image-upload-slot:nth-child(2) .file-upload-icon {
  color: rgba(168, 85, 247, 0.7);
}

.current-image-preview {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: white;
}

.file-upload {
  position: relative;
}

.file-upload--success {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.05);
  animation: successPulse 0.6s ease-out;
}

.file-upload--error {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.05);
  animation: errorShake 0.4s ease-out;
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Autosave Indicator */
.autosave-indicator {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 24px;
  background: rgba(16, 185, 129, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.autosave-indicator.show {
  opacity: 1;
  transform: translateY(0);
}

.autosave-indicator.saving {
  background: rgba(245, 158, 11, 0.9);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.autosave-indicator.error {
  background: rgba(239, 68, 68, 0.9);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

/* Actions Bar */
.actions-bar {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0 0 24px 24px;
}

.actions-left {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.actions-right {
  display: flex;
  gap: 1rem;
}

/* Mobile Landscape - Two Column Layout */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 600px) {
  .card-editor {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.5rem;
    height: 100vh;
  }
  
  .editor-panel {
    overflow-y: auto;
  }
  
  .editor-content {
    padding: 1rem;
  }
  
  .card-preview {
    position: sticky;
    top: 0.5rem;
    height: calc(100vh - 1rem);
    order: 2;
  }
  
  .preview-card {
    min-height: 100%;
    margin: 0.5rem;
    padding: 1.5rem;
  }
  
  .preview-card .card-title {
    font-size: 1.3rem;
  }
  
  .preview-card .card-message {
    font-size: 0.9rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .theme-selector {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .font-selector {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .file-upload {
    padding: 1rem;
    margin-top: 0.5rem;
  }
  
  .file-upload-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .file-upload-text {
    font-size: 0.9rem;
  }
  
  .file-upload-hint {
    font-size: 0.8rem;
  }
  
  .actions-bar {
    padding: 0.75rem;
  }
  
  .actions-bar .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  .payment-section {
    margin-top: 1rem;
  }
  
  .publish-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .published-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .published-actions .btn {
    width: 100%;
  }
}

/* Tablet and Mobile Portrait */
@media (max-width: 1024px) and (orientation: portrait) {
  .card-editor {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  
  .card-preview {
    position: static;
    order: -1;
    height: 50vh;
    min-height: 400px;
  }
  
  .preview-card {
    min-height: 100%;
  }
  
  .preview-card .card-title {
    font-size: 1.5rem;
  }
  
  .preview-card .card-message {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .theme-selector {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .font-selector {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .actions-bar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .actions-left,
  .actions-right {
    width: 100%;
    justify-content: center;
  }
}

/* Sharing Information Banner Styles */
.slug-info-banner {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 2px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1rem 0;
  position: relative;
  overflow: hidden;
}

.slug-info-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22c55e, #10b981, #059669);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.slug-info-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.slug-info-icon {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #22c55e, #10b981);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(34, 197, 94, 0.3));
}

.slug-info-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #059669;
  letter-spacing: -0.025em;
}

.slug-info-content {
  color: #064e3b;
  line-height: 1.6;
}

.slug-info-description {
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.slug-info-url {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.slug-info-url code {
  flex: 1;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.9rem;
  color: #059669;
  background: none;
  padding: 0;
  border: none;
  font-weight: 600;
}

.copy-url-btn {
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--editor-transition);
  white-space: nowrap;
}

.copy-url-btn:hover {
  background: linear-gradient(135deg, #16a34a, #059669);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.slug-info-explanation {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.slug-info-explanation p {
  margin: 0.5rem 0;
}

.slug-info-explanation code {
  background: rgba(34, 197, 94, 0.1);
  color: #059669;
  padding: 0.125rem 0.25rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 600;
}

.slug-info-note {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
  padding: 0.75rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1rem;
  color: #92400e;
  font-weight: 500;
}

/* Success state styles */
.slug-info-url--success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

.slug-info-success {
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid #22c55e;
  padding: 0.75rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1rem;
  color: #166534;
  font-weight: 600;
}

/* URL Preview Styles */
.slug-info-preview {
  background: rgba(255, 255, 255, 0.9);
  border: 2px dashed rgba(147, 51, 234, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  text-align: center;
}

.url-example {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

.url-base {
  color: #6b7280;
}

.url-custom {
  color: #9333ea;
  background: rgba(147, 51, 234, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 2px dashed rgba(147, 51, 234, 0.3);
}

.url-examples {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.example-tag {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 600;
}

.url-examples code {
  background: rgba(147, 51, 234, 0.1);
  color: #7c3aed;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Benefits List */
.slug-info-benefits {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(147, 51, 234, 0.1);
}

.benefit-icon {
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  border-radius: 50%;
  filter: drop-shadow(0 2px 4px rgba(147, 51, 234, 0.2));
  flex-shrink: 0;
}

/* Upgrade Section */
.upgrade-section {
  margin-top: 2rem;
}

.upgrade-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.upgrade-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.3), transparent);
}

.upgrade-divider-text {
  background: white;
  padding: 0 1rem;
  color: #7c3aed;
  font-weight: 600;
  font-size: 0.9rem;
}

.custom-url-preview {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.05), rgba(79, 70, 229, 0.05));
  border: 2px solid rgba(147, 51, 234, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.upgrade-title {
  margin: 0 0 0.75rem 0;
  color: #7c3aed;
  font-size: 1.1rem;
  font-weight: 700;
}

.upgrade-description {
  margin: 0 0 1rem 0;
  color: #6b21a8;
  font-weight: 500;
}

.url-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(147, 51, 234, 0.1);
}

.url-before, .url-after {
  text-align: center;
}

.url-label {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.url-before code {
  color: #6b7280;
  background: rgba(107, 114, 128, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.url-arrow {
  font-size: 1.5rem;
  color: #7c3aed;
  font-weight: bold;
}

.upgrade-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

.benefit-point {
  font-size: 0.9rem;
  color: #7c3aed;
  font-weight: 500;
}

.upgrade-cta {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(147, 51, 234, 0.2);
}

.upgrade-price {
  margin: 0 0 1rem 0;
  color: #7c3aed;
  font-weight: 600;
  font-size: 1rem;
}

.btn-premium {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-premium:hover {
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* Mobile responsiveness for slug info banner */
@media (max-width: 768px) {
  .slug-info-banner {
    padding: 1rem;
    margin: 0.75rem 0;
  }

  .slug-info-url {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-url-btn {
    width: 100%;
    text-align: center;
  }

  .slug-info-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .url-example {
    font-size: 1.25rem;
  }

  .url-examples {
    flex-direction: column;
    gap: 0.5rem;
  }

  .slug-info-benefits {
    gap: 0.75rem;
  }

  .benefit-item {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .url-comparison {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .url-arrow {
    transform: rotate(90deg);
  }

  .custom-url-preview {
    padding: 1rem;
  }
}
