/* DUNDAA 2.0 — ONE GLOBAL HEADER AND FOOTER */

:root {
  --du-shell-bg: #fff;
  --du-shell-text: #111;
  --du-shell-border: #e5e5e5;
  --du-shell-muted: #666;
  --du-shell-button: #111;
  --du-shell-button-text: #fff;
}

html[data-theme="dark"],
html.dark,
body.dark {
  --du-shell-bg: #101010;
  --du-shell-text: #fff;
  --du-shell-border: #333;
  --du-shell-muted: #aaa;
  --du-shell-button: #fff;
  --du-shell-button-text: #111;
}

.du-shell-header,
.du-shell-footer {
  font-family: Montserrat, sans-serif;
  box-sizing: border-box;
  color: var(--du-shell-text);
  background: var(--du-shell-bg);
}

.du-shell-header *,
.du-shell-footer * {
  box-sizing: border-box;
}

.du-shell-container {
  width: min(1280px,calc(100% - 40px));
  margin-inline: auto;
}

.du-shell-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  border-bottom: 1px solid var(--du-shell-border);
  box-shadow: 0 2px 15px rgba(0,0,0,.035);
}

.du-shell-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.du-shell-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.du-shell-brand img {
  width: 132px;
  max-height: 55px;
  object-fit: contain;
}

.du-shell-logo-dark {
  display: none !important;
}

html[data-theme="dark"] .du-shell-logo-light,
html.dark .du-shell-logo-light,
body.dark .du-shell-logo-light {
  display: none !important;
}

html[data-theme="dark"] .du-shell-logo-dark,
html.dark .du-shell-logo-dark,
body.dark .du-shell-logo-dark {
  display: block !important;
}

.du-shell-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: clamp(10px,1.15vw,19px);
}

.du-shell-nav > a {
  color: inherit;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.du-shell-nav > a:hover {
  opacity: .6;
}

.du-shell-account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.du-shell-login,
.du-shell-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.du-shell-login {
  border: 1px solid var(--du-shell-text);
  color: var(--du-shell-text);
}

.du-shell-join {
  border: 1px solid var(--du-shell-button);
  background: var(--du-shell-button);
  color: var(--du-shell-button-text);
}

.du-shell-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.du-shell-theme,
.du-shell-menu {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--du-shell-border);
  background: transparent;
  color: var(--du-shell-text);
  border-radius: 6px;
  cursor: pointer;
}

.du-shell-menu {
  display: none;
}

.du-shell-footer {
  border-top: 1px solid var(--du-shell-border);
  padding: 72px 0 25px;
}

.du-shell-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 45px;
}

.du-shell-footer-grid > div {
  min-width: 0;
}

.du-shell-footer-about img {
  width: 155px;
  max-height: 65px;
  object-fit: contain;
}

.du-shell-footer-about p,
.du-shell-footer-grid > div > p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--du-shell-muted);
  margin: 20px 0;
}

.du-shell-footer-grid h3 {
  margin: 0 0 24px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.du-shell-footer-grid a:not(.du-shell-footer-about a) {
  display: block;
  margin-bottom: 14px;
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.6;
}

.du-shell-footer-grid a:hover {
  opacity: .65;
}

.du-shell-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.du-shell-socials span {
  width: 39px;
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--du-shell-border);
  border-radius: 7px;
  font-size: 17px;
}

.du-shell-footer-bottom {
  margin-top: 55px;
  padding-top: 22px;
  border-top: 1px solid var(--du-shell-border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--du-shell-muted);
  font-size: 11px;
}

@media(max-width:1190px) {
  .du-shell-menu {
    display: inline-flex;
  }

  .du-shell-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--du-shell-bg);
    border-bottom: 1px solid var(--du-shell-border);
    padding: 20px;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .du-shell-nav.is-open {
    display: flex;
  }

  .du-shell-nav > a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--du-shell-border);
    font-size: 13px;
  }

  .du-shell-account {
    margin: 20px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .du-shell-footer-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 35px;
  }
}

@media(max-width:600px) {
  .du-shell-container {
    width: calc(100% - 32px);
  }

  .du-shell-header-inner {
    min-height: 70px;
  }

  .du-shell-brand img {
    width: 118px;
  }

  .du-shell-footer {
    padding: 48px 0 22px;
  }

  .du-shell-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .du-shell-footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* DUNDAA — FREE EVENT RED CORNER RIBBON */
.event-card,
.event-item,
.event-tile {
    position: relative;
    overflow: hidden;
}

.event-free-ribbon {
    position: absolute;
    top: 20px;
    right: -40px;
    width: 160px;
    padding: 8px 0;
    background: #e00000;
    color: #ffffff;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    transform: rotate(45deg);
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 3px 8px rgba(0,0,0,.18);
}

/* Hide ticket actions on FREE event cards */
.event-card.is-free-event .ticket-btn,
.event-card.is-free-event .view-tickets,
.event-card.is-free-event .buy-ticket,
.event-card.is-free-event a[href*="tickets"],
.event-card.is-free-event a[href*="checkout"],
.event-item.is-free-event .ticket-btn,
.event-item.is-free-event .view-tickets,
.event-item.is-free-event a[href*="tickets"],
.event-tile.is-free-event .ticket-btn,
.event-tile.is-free-event a[href*="tickets"] {
    display: none !important;
}

/* DUNDAA FREE EVENT RIBBON */
.event-image,
.de-image {
  position: relative;
  overflow: hidden;
}

.event-free-ribbon {
  position: absolute;
  top: 17px;
  right: -39px;
  width: 155px;
  padding: 7px 0;
  background: #e00000;
  color: #fff;
  text-align: center;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  transform: rotate(45deg);
  z-index: 5;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}

.de-card-bottom a.de-demo-label {
  text-decoration: none;
  cursor: pointer;
}
