/* ==========================================
   TABLET AND MOBILE STYLES
========================================== */

@media (max-width: 850px) {
  .awards-feature {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
    text-align: center;
  }

  .award-featured-image {
    min-height: 320px;
  }

  .award-featured-copy {
    max-width: 600px;
    margin: 0 auto;
  }

  .awards-supporting {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .award-card {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(180px, 1.2fr);
    align-items: stretch;
  }

  .award-card-image {
    min-height: 220px;
  }

  .award-card-image img {
    height: 180px;
  }

  .award-card-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: auto;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 800px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    right: 7%;
    background: #11111d;
    flex-direction: column;
    padding: 20px;
    border-radius: 14px;
    display: none;
  }
 
	.service-gallery-img {
	  height: 260px;
	}

	.service-arrow {
	  width: 40px;
	  height: 40px;
	  font-size: 1.7rem;
	}

	.service-arrow-left {
	  left: 10px;
	}

	.service-arrow-right {
	  right: 10px;
	}

	.service-dot.mobile-hidden {
	  display: none;
	}

	.service-dots {
	  flex-wrap: nowrap;
	  min-height: 16px;
	}

  .main-nav.show {
    display: flex;
  }
  
/* ==========================================
   MOBILE EVENT CARDS
========================================== */

.events-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.event-card {
  flex-direction: row;
  align-items: stretch;
  min-height: 180px;
  max-height: 220px;
  border-radius: 16px;
}

.event-card img {
  flex: 0 0 38%;
  width: 38%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px 0 0 16px;
}

.event-info {
  flex: 1;
  min-width: 0;
  padding: 14px;
  gap: 4px;
  justify-content: center;
}

.event-card-top {
  align-items: flex-start;
  gap: 5px;
}

.event-type {
  font-size: 0.72rem;
  line-height: 1.2;
}

.event-status-badge {
  padding: 4px 6px;
  font-size: 0.58rem;
}

.event-date {
  font-size: 0.7rem;
  line-height: 1.2;
}

.event-info h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.event-info p {
  font-size: 0.8rem;
  line-height: 1.25;
}

.event-info a {
  margin-top: 6px;
  padding: 7px 10px;
  font-size: 0.7rem;
}

.review-summary {
  padding: 28px 20px;
}

  .poster-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dj-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .dj-card {
    display: flex;
    flex-direction: column;
    min-height: 480px;
	}

	.dj-card img {
		height: 300px;
		object-fit: contain;
		object-position: center;
		padding: 10px;
		background: #000;
	}

	.dj-card p {
		min-height: 72px;    /* reserves the same space for descriptions */
	}

	.dj-card button {
		margin-top: auto;
	}

	.dj-contact-links {
		gap: 20px;
		margin-top: 24px;
	}

	.dj-contact-links a {
		width: 36px;
		height: 36px;
	}

	.dj-card .dj-contact-links img {
		width: 36px;
		height: 36px;
		padding: 0;
	}

	.dj-card h3 {
		font-size: 1.45rem;
	}
	
	.dj-contact-links a:active img {
		transform: scale(1.15);
	}

  .dj-card,
  .dj-card:nth-child(1),
  .dj-card:nth-child(2),
  .dj-card:nth-child(3),
  .dj-card:nth-child(4),
  .dj-card:nth-child(5),
  .dj-card:nth-child(6),
  .dj-card:nth-child(7) {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .award-categories {
    justify-content: center;
  }

  .award-categories span {
    font-size: 0.72rem;
  }

  .awards-feature {
    padding: 20px;
  }

  .award-featured-image {
    min-height: 280px;
  }

  .award-featured-image img {
    max-height: 260px;
  }

  .award-card {
    display: block;
  }

  .award-card-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
    text-align: center;
  }

  .award-trust-row {
    grid-template-columns: 1fr;
  }

  .award-trust-item + .award-trust-item {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }
}

/* ==========================================
   PRIVATE DJ AREA - MOBILE
========================================== */
@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .login-brand-panel {
    min-height: 330px;
    padding: 38px;
  }

  .login-brand-copy h1 {
    font-size: 3rem;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }

  .dashboard-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-nav-divider {
    display: none;
  }

  .dashboard-nav a {
    justify-content: center;
    text-align: center;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .member-main {
    padding: 118px 4% 40px;
  }

  .login-panel {
    padding: 38px 26px;
  }

  .login-brand-panel {
    min-height: 285px;
    padding: 28px;
  }

  .login-brand-copy img {
    width: 190px;
    margin-bottom: 16px;
  }

  .login-brand-copy h1 {
    font-size: 2.25rem;
  }

  .password-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-summary {
    grid-template-columns: 1fr;
  }

  .schedule-item {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .schedule-status {
    grid-column: 2;
    justify-self: start;
  }

  .calendar-day-label,
  .calendar-day {
    min-height: 38px;
    padding: 5px;
    font-size: 0.78rem;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .profile-form-grid .full-width {
    grid-column: auto;
  }

  .profile-actions {
    flex-direction: column-reverse;
  }

  .profile-actions button {
    width: 100%;
  }
}

/* ==========================================
   DJ PORTAL MOBILE CONTROL NAVIGATION
========================================== */
@media (max-width: 980px) {
  .portal-page .dashboard-sidebar {
    display: none;
  }

  .portal-page .member-main {
    padding-bottom: 138px;
  }

  .mobile-control-nav {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 1800;
    display: block;
    width: min(620px, calc(100% - 18px));
    transform: translateX(-50%);
  }

  .mobile-control-track {
    --nav-columns: 5;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--nav-columns), minmax(0, 1fr));
    align-items: center;
    min-height: 82px;
    padding: 7px 10px;
    border: 2px solid #101114;
    border-radius: 31px;
    background:
      linear-gradient(
        180deg,
        #d7d9dc 0%,
        #878a8f 10%,
        #34363a 33%,
        #202226 53%,
        #55585d 74%,
        #b7babf 93%,
        #65686d 100%
      );
    box-shadow:
      inset 0 2px 2px rgba(255, 255, 255, 0.72),
      inset 0 -4px 8px rgba(0, 0, 0, 0.72),
      0 13px 28px rgba(0, 0, 0, 0.62);
    isolation: isolate;
  }

  .mobile-control-track::before {
    content: "";
    position: absolute;
    inset: 5px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.33);
    border-radius: 25px;
    pointer-events: none;
  }

  .mobile-control-track::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: inherit;
    opacity: 0.34;
    background:
      repeating-linear-gradient(
        91deg,
        rgba(255,255,255,0.08) 0,
        rgba(255,255,255,0.08) 1px,
        rgba(0,0,0,0.06) 1px,
        rgba(0,0,0,0.06) 3px
      );
    pointer-events: none;
  }

  .mobile-control-link {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    align-items: center;
    gap: 2px;
    min-width: 0;
    min-height: 66px;
    color: #ececef;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-control-link[hidden] {
    display: none !important;
  }

  .mobile-control-link img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.62));
    transition:
      opacity 0.16s ease,
      transform 0.16s ease;
  }

  .mobile-control-link span {
    overflow: hidden;
    max-width: 100%;
    color: rgba(255,255,255,0.76);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-control-link.is-active img {
    opacity: 0;
  }

  .mobile-control-link.is-active span {
    color: #ffcc28;
  }

  .mobile-control-link:active img {
    transform: scale(0.91);
  }

  .mobile-control-puck {
    --puck-x: 50%;
    position: absolute;
    left: var(--puck-x);
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 2px solid #151619;
    border-radius: 50%;
    background:
      radial-gradient(circle at 34% 25%, #fafafa 0 4%, #aeb1b6 12%, #35373b 39%, #16171a 67%, #72757a 88%, #d4d6da 100%);
    box-shadow:
      inset 0 2px 2px rgba(255,255,255,0.8),
      inset 0 -5px 8px rgba(0,0,0,0.7),
      0 0 0 4px rgba(20,21,24,0.95),
      0 0 0 6px rgba(255,204,40,0.62),
      0 0 17px rgba(255,204,40,0.48),
      0 9px 15px rgba(0,0,0,0.65);
    transform: translate(-50%, -58%);
    transition: left 0.34s cubic-bezier(.22,.8,.22,1);
    pointer-events: none;
  }

  .mobile-control-puck::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255,255,255,0.38);
    border-radius: 50%;
  }

  .mobile-control-puck-icon {
    position: relative;
    z-index: 1;
    display: block;
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter:
      drop-shadow(0 0 7px rgba(255,204,40,0.56))
      drop-shadow(0 4px 4px rgba(0,0,0,0.64));
  }
}

@media (max-width: 430px) {
  .mobile-control-track {
    min-height: 76px;
    padding-inline: 5px;
  }

  .mobile-control-link img {
    width: 44px;
    height: 44px;
  }

  .mobile-control-link span {
    font-size: 0.56rem;
  }

  .mobile-control-puck {
    width: 68px;
    height: 68px;
  }

  .mobile-control-puck-icon {
    width: 56px;
    height: 56px;
  }
}

/* ==========================================
   SCHEDULE PAGE - MOBILE
========================================== */

@media (max-width: 980px) {
  .calendar-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
  }

  .calendar-toolbar > div:first-child {
    grid-column: 1 / -1;
  }

  .calendar-view-toggle {
    justify-self: start;
  }

  .calendar-controls {
    justify-self: end;
  }

	.calendar-day {
	  position: relative;
	  padding-bottom: 18px;
	  overflow: hidden;
	}

	.calendar-event-dots {
	  position: absolute;
	  left: 6px;
	  right: 6px;
	  bottom: 5px;

	  display: flex;
	  flex-direction: column;
	  gap: 2px;

	  margin: 0;
	  width: auto;
	  z-index: 2;
	}

	.calendar-event-dot {
	  display: block !important;

	  width: 100% !important;
	  min-width: 100% !important;

	  height: 0 !important;
	  min-height: 0 !important;

	  flex: none !important;

	  border: 0;
	  border-top: 4px solid currentColor;
	  border-radius: 999px;

	  background: none !important;
	  opacity: 1;
	}

  /* Mobile event list */

  .schedule-list-header {
    display: none;
  }

	.schedule-item {
	  display: grid;
	  grid-template-columns: 1fr;
	  gap: 4px;

	  padding: 10px 12px;
	  margin-bottom: 8px;
	}

  .schedule-row-date {
    font-size: 1rem;
    font-weight: 800;
  }

  .schedule-row-time {
    font-size: 0.9rem;
    color: #d0d0d4;
  }

  .schedule-row-dj {
    margin-top: 2px;
    font-weight: 700;
  }

  .schedule-row-venue {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    font-weight: 700;
  }

  .schedule-row-event {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;

    padding-top: 6px;
    margin-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  
	.schedule-row-date {
	  font-size: 0.9rem;
	  line-height: 1.2;
	}

	.schedule-row-time {
	  font-size: 0.82rem;
	  line-height: 1.2;
	}

	.schedule-row-dj {
	  font-size: 0.9rem;
	  line-height: 1.2;
	}

	.schedule-row-venue {
	  font-size: 0.9rem;
	  line-height: 1.2;
	}

	.schedule-row-event {
	  font-size: 0.85rem;
	  line-height: 1.25;
	}
}