/* ==========================================================================
   Fasnet 2027 Salmendingen – Petz-Portal Stylesheet (Simplified)
   Design Language: Royal Blue & Sunshine Yellow (example_design.png)
   "Only one field, media button and send button thats it."
   ========================================================================== */

.petzen-page {
  padding: 3.5rem 0 5rem;
  background: radial-gradient(circle at 10% 10%, rgba(11, 80, 189, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(242, 180, 44, 0.1) 0%, transparent 40%),
              var(--color-bg);
}

/* Header & Intro */
.petzen-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 2.75rem;
}

.petzen-mascot-badge {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  background: #ffffff;
  border-radius: 50%;
  padding: 8px;
  border: 3.5px solid var(--color-accent);
  box-shadow: 0 8px 24px rgba(11, 80, 189, 0.2), 0 0 16px rgba(242, 180, 44, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.petzen-mascot-badge:hover {
  transform: rotate(-6deg) scale(1.05);
}

.petzen-mascot-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.petzen-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-primary-dark);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.petzen-headline span {
  color: var(--color-festive-red);
  display: block;
}

.petzen-subtext {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Anonymity Shield */
.trust-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  color: #065f46;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  font-size: 1.1rem;
}

/* Petzen Form Card: Single Field + Media Button + Send Button */
.petzen-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-xl), 0 0 25px rgba(11, 80, 189, 0.08);
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.petzen-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-festive-red) 100%);
}

.petzen-form-simple {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* The Single Field */
.petzen-field-group {
  margin-bottom: 0;
}

.petzen-story-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text-main);
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 190px;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.petzen-story-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(11, 80, 189, 0.15);
}

.petzen-story-input::placeholder {
  color: #94a3b8;
  font-style: italic;
}

/* Bottom Action Bar: Media Button & Send Button */
.petzen-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
}

.petzen-media-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
}

.file-input-hidden {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.btn-media-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.btn-media-picker:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.btn-media-picker.has-file {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
  color: var(--color-accent-contrast);
}

.media-icon {
  font-size: 1.15rem;
}

/* File Selected Pill Badge */
.file-chosen-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  max-width: 240px;
}

.file-chosen-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-clear-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.file-clear-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Send Button */
.btn-petzen-submit {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 2.25rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-festive-red) 0%, #b8171d 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(217, 36, 42, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  margin-left: auto;
}

.btn-petzen-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #ef4444 0%, var(--color-festive-red) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217, 36, 42, 0.55);
}

.btn-petzen-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  display: none;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Status Message */
.status-message {
  display: none;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  animation: fadeIn 0.3s ease;
}

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

.status-message.success {
  background: #ecfdf5;
  border: 2px solid #10b981;
  color: #065f46;
}

.status-message.error {
  background: #fef2f2;
  border: 2px solid #ef4444;
  color: #991b1b;
}

.success-icon {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #047857;
}

.btn-reset-form {
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
}

.btn-reset-form:hover {
  color: var(--color-primary-dark);
}

/* Responsive */
@media (max-width: 600px) {
  .petzen-card {
    padding: 1.75rem 1.25rem;
  }

  .petzen-action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-petzen-submit {
    width: 100%;
    margin-left: 0;
  }

  .btn-media-picker {
    width: 100%;
    justify-content: center;
  }
}
