@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --color-primary: #048bff;
  --color-secondary: #92c2fc;
  --color-bg: #ffffff;
  --color-bg-secondary: #f5fbff;
  --color-text: #000000;
  --color-text-secondary: #666666;
  --color-border: #f5fbff;

  /* Radii */
  --radius-btn: 8px;
  --radius-input: 8px;
  --radius-card: 16px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-low: rgba(16, 24, 40, 0.1) 0px 1px 3px 0px;
  --shadow-mid: rgba(0, 0, 0, 0.05) 0px 4px 10px 0px;
  --shadow-deep: rgba(9, 20, 66, 0.25) 0px 20px 32px -8px;

  /* Fonts */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--color-text);
}

/* Form Controls */
.dmf-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-input);
  font-size: 16px;
  font-family: var(--font-main);
  transition: all 0.3s ease;
  background-color: #fff;
}

.dmf-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(5, 152, 215, 0.1);
}

.dmf-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}

/* Buttons */
.btn-primary,
.btn-filled {
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-low);
}

.btn-primary:hover,
.btn-filled:hover {
  background-color: #0488c1;
  transform: translateY(-1px);
  box-shadow: var(--shadow-mid);
}

.btn-primary:active,
.btn-filled:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Selection Cards (Tickets/Votes) */
.selection-card-wrap {
  position: relative;
  cursor: pointer;
}

.selection-card-wrap input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.selection-card {
  display: block;
  padding: 20px;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-card);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-low);
}

.selection-card-wrap input[type="radio"]:checked+.selection-card {
  border-color: var(--color-primary);
  background-color: rgba(5, 152, 215, 0.05);
}

/* Skeleton Loaders */
.dmf-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Utility */
.dmf-shell-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-low);
  border: 1px solid var(--color-border);
}

.dmf-shell-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.dmf-shell-muted {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* Review System */
.dmf_api_stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.dmf_api_stars input[type=radio] {
  display: none;
}

.dmf_api_stars label {
  font-size: 1.8rem;
  color: var(--color-border);
  transition: color 0.2s;
  cursor: pointer;
}

.dmf_api_stars input[type=radio]:checked~label {
  color: var(--color-primary);
}

.dmf_api_stars label:hover,
.dmf_api_stars label:hover~label {
  color: var(--color-primary);
}

.dmf_api_reviews .overall_rating .num {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
}

.dmf_api_reviews .overall_rating .total {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.dmf_api_reviews .write_review_btn,
.dmf_api_reviews .write_review button {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px var(--shadow-tint);
}

.dmf_api_reviews .write_review_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-tint);
}

.dmf_api_reviews .write_review textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  min-height: 120px;
  margin-top: 10px;
  font-family: inherit;
  background: var(--color-bg-secondary);
}

.dmf_api_reviews .write_review input {
  display: block;
  width: 100%;
  max-width: 400px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  margin-top: 10px;
  background: var(--color-bg-secondary);
}

.dmf_api_reviews .review {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.dmf_api_reviews .review .name {
  font-weight: 700;
  color: var(--color-text);
  font-size: 1.1rem;
}

.dmf_api_reviews .review .rating {
  letter-spacing: 2px;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.dmf_api_reviews .review .date {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

/* Summary Table Styles */
.summary-card {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-card);
  padding: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  font-size: 15px;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.total {
  border-top: 2px solid var(--color-text);
  margin-top: 8px;
  padding-top: 16px;
  font-weight: 800;
  font-size: 18px;
  border-bottom: none;
}

/* Badges */
.ticket-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-sold {
  background: #fee2e2;
  color: #dc2626;
}

.badge-low {
  background: #fef3c7;
  color: #d97706;
}

.badge-left {
  background: #ecfdf5;
  color: #059669;
}

/* Event Specific Components */
.dmf-shell-section-head {
  margin-bottom: 32px;
}

.dmf-shell-kicker {
  display: block;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.event-date-widget {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.event-date-inner {
  display: flex;
  gap: 15px;
  background: #0f172a;
  padding: 16px 24px;
  border-radius: 16px;
  color: #fff;
  text-align: center;
  width: 100%;
  box-shadow: var(--shadow-mid);
}

.date-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  background: #1e293b;
  border-radius: 12px;
  padding: 12px;
}

.date-day .day-num {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.date-day .weekday {
  font-size: 11px;
  text-transform: uppercase;
  opacity: .7;
  margin-top: 6px;
  font-weight: 600;
}

.date-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.date-meta .month {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}

.date-meta .year {
  font-size: 14px;
  opacity: .7;
}

/* Countdown */
#countdown {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

#countdown div {
  background: var(--color-bg-secondary);
  color: var(--color-text);
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  width: 70px;
  border: 1px solid var(--color-border);
}

#countdown span {
  font-weight: 800;
  font-size: 20px;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

#countdown .label {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.6;
}

/* Contestant List Item (Gallery View) */
.contestant-list-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  margin-bottom: 12px;
}

.contestant-list-item:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-low);
}

.contestant-list-item img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  margin-right: 16px;
}

.contestant-list-item .name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .btn-primary {
    width: 100%;
  }
}