/* === Base Layout === */
body, html {
  overflow-x: hidden;
}

.ams-agenda-wrapper {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 0px 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;

  /* Centers everything inside, but keeps title centered too */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title */
.ams-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
  color: #fff;
  text-shadow: 0 0 8px rgba(128, 0, 255, 0.3);
  width: 100%;
}

/* === Card List === */
.ams-menu {
  list-style: none;
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
   justify-content: center;
}
/* === Card === */
.ams-item {
  width: 100%;                /* take full width of centered container */
  margin-bottom: 12px;
  background: #0a0a0a;
  border: 2px solid #fff;
  overflow: hidden;
  position: relative;
  transition: all 0.8s ease;
  z-index: 1;
}


/* Hover glow */
.ams-item:hover {
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.12),
              0 0 60px rgba(128, 0, 255, 0.25);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.6);
}

/* === Glow Effects === */
.ams-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 2;
  pointer-events: none;
}
.ams-item:hover::after {
  opacity: 1;
}

.ams-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 1s ease;
  z-index: 3;
}
.ams-item:hover::before {
  left: 100%;
}

/* Smooth color transition */
.ams-item * {
  transition: color 0.4s ease;
}
.ams-item:hover > .ams-item-head * {
  color: #fff;
}

/* === Submenu (excluded from hover effects) === */
.ams-submenu {
  background: #fff;
  border-top: 2px solid #7a00ff;
  padding: 10px 25px;
  display: none;
  box-shadow: none !important;
}
.ams-submenu * {
  color: #7a00ff;
}

/* === Header === */
.ams-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  position: relative;
  background: #0a0a0a;
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Active state (purple gradient) */
.ams-item.active .ams-item-head {
  background: linear-gradient(90deg, #7a00ff, #b266ff);
  color: #fff;
}

/* === Left section (time, flag, title) === */
.ams-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Time */
.ams-time {
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  min-width: 60px;
  text-align: center;
}

/* Flag */
.ams-flag {
  width: 40px;
  height: 26px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Match Title Area */
.ams-match-title {
  display: flex;
  flex-direction: column; /* h2 on top, p below */
  justify-content: center;
  line-height: 1.2;
}
.ams-match-title h2 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
  color: #fff;
}
.ams-match-title p {
  font-size: 0.9rem;
  color: #cfcfcf;
  margin: 2px 0 0;
  line-height: 1.2;
}

/* === Right side (channel count & icon) === */
.ams-channel-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ams-count-num {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
}
.ams-count-icon i {
  font-size: 1.2rem;
  color: #fff;
}

/* === Submenu Links === */
.ams-submenu-item {
  border-bottom: 1px solid rgba(122, 0, 255, 0.3);
  padding: 10px 0;
}
.ams-submenu-item:last-child {
  border-bottom: none;
}
.ams-submenu-item a {
  color: #7a00ff;
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.ams-submenu-item a:hover {
  color: #4a00cc;
  text-shadow: 0 0 8px rgba(122, 0, 255, 0.3);
}
.ams-submenu-item a i {
  color: #7a00ff;
  font-size: 1.1rem;
}

/* === Text Styles === */
.ams-match-subtitle {
  font-size: 0.95rem;
  color: #cfcfcf;
  margin: 0;
  line-height: 1.3;
  font-weight: 400;
}
.ams-match-heading {
  font-size: 1.05rem;
  color: #a64dff;
  margin: 2px 0 0;
  line-height: 1.3;
  font-weight: 600;
  transition: color 0.3s ease;
}
.ams-item:hover .ams-match-heading {
  color: #c07dff;
}

/* === Responsive Fix === */
@media (max-width: 768px) {
  .ams-menu {
    width: 100%;
    padding: 0 8px;
    
  }

  .ams-item {
    width: 100%; /* full width on mobile */
    border-width: 2px; /* keep border visible */
  }

  .ams-item-head {
    flex-direction: row;
    align-items: center;
  }

  .ams-item-left {
    flex-wrap: nowrap;
    gap: 0px;
  }

  .ams-match-title h2 {
    font-size: 1rem;
  }

  .ams-match-title p {
    font-size: 0.85rem;
  }
}