/* === Contenitore generale === */
.ewenty-upload-area {
  max-width: 1000px;
  margin: 0 auto;
}

/* === Copertina evento === */
.ewenty-cover {
  position: relative;
  width: 100%;
  height: 550px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  overflow: hidden;
}
.ewenty-cover.fallback {
  background: linear-gradient(135deg, #ccc, #eee);
}
.ewenty-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  border-radius: 10px;
}
.ewenty-cover-btn {
  position: relative;
  z-index: 2;
  padding: 0.7rem 1.8rem;
  font-size: 1rem;
  background: #1f7cff;
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.3s;
}
.ewenty-cover-btn:hover {
  background: #005edb;
}

/* === MODALE === */
.ewenty-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
}

/* === Contenuto Modale Minimal === */
.ewenty-modal-content {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === Bottone chiusura rotondo === */
.ewenty-close-btn.styled {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f1f1f1;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.ewenty-close-btn.styled:hover {
  background: #005edb;
  color: white;
}

/* === Box tratteggiato upload === */
.ewenty-upload-box {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 2rem 1rem;
  cursor: pointer;
  transition: border-color 0.3s;
}
.ewenty-upload-box:hover {
  border-color: #005edb;
}
.ewenty-upload-box i {
  font-size: 2rem;
  color: #005edb;
  display: block;
  margin-bottom: 0.5rem;
}
.ewenty-upload-box p {
  margin: 0;
  font-size: 1rem;
  color: #555;
}
.ewenty-upload-box input[type="file"] {
  display: none;
}

/* === Input e Textarea === */
.ewenty-modal-content input[type="text"],
.ewenty-modal-content textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  margin-top: 0.5rem;
}

/* === Pulsante principale rosa === */
.ewenty-submit-btn i {
  margin-right: 0.5rem;
  vertical-align: middle;
  font-size: 1.2rem;
}

.ewenty-submit-btn {
  background: #005edb;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 999px;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s;
}
.ewenty-submit-btn:hover {
  background: #005edb;
}

/* === Feedback caricamento === */
.ewenty-feedback {
  text-align: center;
  margin-top: 1rem;
}
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #005edb;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.success {
  font-size: 1rem;
  color: green;
  margin-top: 0.5rem;
}

/* === Galleria contenuti caricati === */
#uploadedContent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0 1rem;
}
.ewenty-item {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.ewenty-item img,
.ewenty-item video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.ewenty-item .dedica {
  font-size: 0.95rem;
  color: #444;
  font-style: italic;
  margin: 0;
  word-break: break-word;
}

/* === Layout full height === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
.single-ewenty_event body,
.single-ewenty_event .site,
.single-ewenty_event .content-area,
.single-ewenty_event main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Nascondi titolo pagina evento === */
.single-ewenty_event h1.entry-title {
  display: none;
}
.upload-progress {
  width: 100%;
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
  height: 10px;
}
.upload-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #e91e63;
  transition: width 0.3s ease;
}
.ewenty-delete-btn {
  display: inline-block;
  margin-top: 8px;
  background: #ff3b3b;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}

.ewenty-delete-btn:hover {
  color: #e91e63;
}

.ewenty-custom-title {
    font-size: 22px;
    font-weight: normal;
    margin-bottom: 1rem;
    text-align: center;
    color: #222;
}

.ewenty-event-date {
  text-align: center;
  font-size: 1.2rem;
  margin-top: -1rem;
  margin-bottom: 2rem;
  color: #555;
}

.ewenty-event-instructions {
  max-width: 800px;
  margin: 2rem auto;
  font-size: 1.1rem;
  color: #444;
  text-align: center;
  line-height: 1.6;
}
