/* Advanced Card Generator Styles */

/* Form Control Styling - inputs and textareas only, select is separate */
input[type="url"],
input[type="text"],
input[type="color"],
textarea {
  width: 100%;
  padding: 10px 12px;
  margin: 4px 0;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #111827;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

/* Native select - completely unstyled, let browser handle it */
select {
  -webkit-appearance: auto;
  appearance: auto;
  width: 100%;
  padding: 10px 12px;
  margin: 4px 0;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #111827;
  background-color: #ffffff;
  cursor: pointer;
  box-sizing: border-box;
}

input[type="url"]:focus,
input[type="text"]:focus,
input[type="color"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type="url"]::placeholder,
input[type="text"]::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* Base card styles */
.custom-card {
  background-color: #f0f8ff;
  color: #000000;
  border-radius: 12px;
  padding: 24px;
  font-size: 16px;
  border: 2px solid #cccccc;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-sizing: border-box;
  max-width: 320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  mix-blend-mode: normal !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: all 0.3s ease;
  text-align: left;
  overflow: hidden;
}

.custom-card h3 {
  margin: 0 0 12px 0;
  font-size: 1.25em;
  font-weight: 600;
  line-height: 1.3;
}

.custom-card p {
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
}

.custom-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  display: none;
  transition: all 0.3s ease;
}

/* Card Types */
.custom-card.card-basic {
  background-color: #f0f8ff;
  border: 2px solid #cccccc;
  box-shadow: none;
}

.custom-card.card-elevated {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-card.card-outlined {
  background-color: transparent;
  border: 2px solid #007bff;
  box-shadow: none;
}

.custom-card.card-filled {
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.custom-card.card-image {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.custom-card.card-image img {
  display: block;
}

/* Text Alignment */
.custom-card.text-center {
  text-align: center;
}

.custom-card.text-center h3,
.custom-card.text-center p {
  text-align: center;
}

.custom-card.text-right {
  text-align: right;
}

.custom-card.text-right h3,
.custom-card.text-right p {
  text-align: right;
}

/* Background Types */
.custom-card.bg-gradient {
  background: linear-gradient(135deg, #f0f8ff 0%, #e0f7ff 100%);
}

.custom-card.bg-radial {
  background: radial-gradient(circle, #f0f8ff 0%, #e0f7ff 100%);
}

/* Border Styles */
.custom-card.border-dashed {
  border-style: dashed;
}

.custom-card.border-dotted {
  border-style: dotted;
}

.custom-card.border-double {
  border-style: double;
  border-width: 4px;
}

/* Shadow Effects */
.custom-card.shadow-enabled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Glow Effects */
.custom-card.glow-enabled {
  box-shadow: 0 0 20px rgba(0, 238, 255, 0.3);
}

.custom-card.glow-enabled.card-filled {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Hover Effects */
.custom-card.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.custom-card.hover-glow:hover {
  box-shadow: 0 0 30px rgba(0, 238, 255, 0.5);
}

.custom-card.hover-scale:hover {
  transform: scale(1.02);
}

/* Entrance Animations */
.custom-card.animation-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.custom-card.animation-slide-up {
  animation: slideUp 0.6s ease-out;
}

.custom-card.animation-zoom-in {
  animation: zoomIn 0.6s ease-out;
}

/* Keyframe Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .custom-card {
    max-width: 280px;
    padding: 20px;
  }

  .custom-card img {
    height: 150px;
  }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .custom-card.card-basic {
    background-color: #2a2a2a;
    border-color: #555;
    color: #ffffff;
  }

  .custom-card.card-elevated {
    background-color: #333;
    border-color: #555;
    color: #ffffff;
  }

  .custom-card.card-outlined {
    background-color: transparent;
    border-color: #4dabf7;
    color: #ffffff;
  }

  .custom-card.card-filled {
    background-color: #4dabf7;
    border-color: #4dabf7;
    color: #ffffff;
  }

  .custom-card.card-image {
    background-color: #333;
    border-color: #555;
    color: #ffffff;
  }
}

/* Print styles */
@media print {
  .custom-card {
    box-shadow: none !important;
    border: 1px solid #000 !important;
    break-inside: avoid;
  }
}
