/* ========================================
   SUPPORT MODAL (Creator unterstützen)
   ======================================== */
.support-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 11, 22, 0.95);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  z-index: var(--z-modal, 1000);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.support-modal-overlay:not([hidden]),
.support-modal-overlay.visible {
  display: flex;
}

.support-modal-panel {
  background: linear-gradient(135deg, rgba(8, 20, 32, 0.95) 0%, rgba(5, 15, 25, 0.98) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid var(--color-primary-40);
  border-top: 2px solid var(--color-primary-60);
  border-bottom: 2px solid var(--color-primary-60);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  max-width: 550px;
  width: 100%;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 40px var(--color-primary-20),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  position: relative;
  animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: auto;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.support-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-primary-30);
  color: var(--color-primary-90);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  padding: 0;
  z-index: 10;
}

.support-modal-close:hover {
  background: var(--color-primary-20);
  border-color: var(--color-primary-50);
  color: var(--color-primary);
  transform: rotate(90deg) scale(1.1);
}

.support-modal-close::before {
  content: '×';
  font-size: 2rem;
  line-height: 1;
}

.support-modal-content {
  color: #B8D4E8;
}

.support-modal-content:not(.active) {
  display: none;
}

.support-modal-content.active {
  display: block;
}

.support-modal-content h3 {
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.75rem 0;
  text-align: center;
  text-shadow: 0 0 20px var(--color-primary-40);
  letter-spacing: 0.02em;
  /* Helles Grau mit schimmerndem Farbverlauf */
  background: linear-gradient(
    135deg,
    #E6EDF3 0%,
    #D5E3EE 25%,
    #C7D2E0 50%,
    #D5E3EE 75%,
    #E6EDF3 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmerGradient 4s ease-in-out infinite;
}

.support-modal-text {
  color: #D0E0F0;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 1.25rem 0;
  text-align: center;
}

.support-modal-note {
  color: #A8C0D8;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 0 0;
  text-align: center;
  font-style: italic;
}

.support-modal-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.support-modal-button {
  background: var(--cta-azoth-gradient);
  color: var(--cta-azoth-text);
  border: 1.5px solid var(--cta-azoth-border);
  border-radius: 10px;
  padding: 0.875rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--cta-azoth-shadow);
  min-width: 160px;
  letter-spacing: 0.02em;
}

.support-modal-button:hover {
  background: var(--cta-azoth-gradient-hover);
  border-color: var(--cta-azoth-border-hover);
  box-shadow: var(--cta-azoth-shadow-hover);
  transform: translateY(-2px);
}

.support-modal-button.secondary {
  background: rgba(0, 0, 0, 0.2);
  color: #B8D4E8;
  border: 1.5px solid var(--color-primary-30);
}

.support-modal-button.secondary:hover {
  background: rgba(0, 224, 255, 0.12);
  border-color: var(--color-primary-50);
  color: #D0E0F0;
}

/* QR-Code Styles entfernt - nicht mehr benötigt */

body.support-modal-open {
  overflow: hidden;
}

/* ========================================
   SHARE MODAL (Webseite teilen)
   ======================================== */
.share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 11, 22, 0.95);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  z-index: var(--z-modal, 1001);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.share-modal-overlay:not([hidden]),
.share-modal-overlay.visible {
  display: flex;
}

.share-modal-panel {
  background: linear-gradient(135deg, rgba(8, 20, 32, 0.95) 0%, rgba(5, 15, 25, 0.98) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid var(--color-primary-40);
  border-top: 2px solid var(--color-primary-60);
  border-bottom: 2px solid var(--color-primary-60);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  max-width: 650px;
  width: 100%;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 40px var(--color-primary-20),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  position: relative;
  animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: auto;
}

.share-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-primary-30);
  color: var(--color-primary-90);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  padding: 0;
  z-index: 10;
}

.share-modal-close:hover {
  background: var(--color-primary-20);
  border-color: var(--color-primary-50);
  color: var(--color-primary);
  transform: rotate(90deg) scale(1.1);
}

.share-modal-close::before {
  content: '×';
  font-size: 2rem;
  line-height: 1;
}

.share-modal-content {
  color: #B8D4E8;
}

.share-modal-content:not(.active) {
  display: none;
}

.share-modal-content.active {
  display: block;
}

.share-modal-content h3 {
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  text-align: center;
  text-shadow: 0 0 20px var(--color-primary-40);
  letter-spacing: 0.02em;
  background: linear-gradient(
    135deg,
    #E6EDF3 0%,
    #D5E3EE 25%,
    #C7D2E0 50%,
    #D5E3EE 75%,
    #E6EDF3 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmerGradient 4s ease-in-out infinite;
}

.share-modal-text {
  color: #D0E0F0;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 2rem 0;
  text-align: center;
}

.share-modal-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.share-option {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.share-option-label {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

.share-input-group {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.share-input,
.share-textarea {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-primary-30);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  color: #D0E0F0;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.share-input:focus,
.share-textarea:focus {
  outline: none;
  border-color: var(--color-primary-50);
  box-shadow: 0 0 0 2px var(--color-primary-20);
}

.share-textarea {
  min-height: 100px;
  resize: vertical;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}

.share-copy-button {
  background: var(--cta-azoth-gradient);
  color: var(--cta-azoth-text);
  border: 1.5px solid var(--cta-azoth-border);
  border-radius: 8px;
  padding: 0.875rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--cta-azoth-shadow);
  white-space: nowrap;
  min-width: 100px;
}

.share-copy-button:hover {
  background: var(--cta-azoth-gradient-hover);
  border-color: var(--cta-azoth-border-hover);
  box-shadow: var(--cta-azoth-shadow-hover);
  transform: translateY(-2px);
}

.share-copy-button.copied {
  background: rgba(0, 200, 83, 0.2);
  border-color: rgba(0, 200, 83, 0.5);
  color: #4ade80;
}

.share-modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.share-modal-button {
  background: rgba(0, 0, 0, 0.2);
  color: #B8D4E8;
  border: 1.5px solid var(--color-primary-30);
  border-radius: 10px;
  padding: 0.875rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 160px;
}

.share-modal-button:hover {
  background: rgba(0, 224, 255, 0.12);
  border-color: var(--color-primary-50);
  color: #D0E0F0;
}

body.share-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .support-modal-overlay,
  .share-modal-overlay {
    padding: 1rem;
  }

  .support-modal-panel,
  .share-modal-panel {
    padding: 2rem 1.5rem;
    max-width: 100%;
    border-radius: 16px;
  }

  .support-modal-content h3,
  .share-modal-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .support-modal-text,
  .share-modal-text {
    font-size: 1rem;
  }

  .support-modal-note {
    font-size: 0.9rem;
  }

  .support-modal-actions {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }

  .support-modal-button {
    width: 100%;
    min-width: unset;
  }

  .share-input-group {
    flex-direction: column;
  }

  .share-copy-button {
    width: 100%;
  }
}
