/* Poker111 Academy */

#header {
  background: transparent;
}

.academy {
  max-width: 1200px;
  padding: 24px 16px 48px;
  color: #111827;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.academy-background {
  --bg: #f1f1f1;
  --surface: #ffffff;
  --muted: #f3f4f6;
  --text: #0f172a;
  --sub: #6b7280;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --accent: #f59e0b;
  --ok: #22c55e;
  --warn: #eab308;
  --lock: #ef4444;
  --ring: 0 0 0 3px rgba(37, 99, 235, 0.25);
  --r-xl: 24px;
  --r-lg: 18px;
  --r: 14px;
  --shadow: 0 10px 20px rgba(2, 6, 23, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
  Arial, sans-serif !important;
  color: var(--text);
  background: var(--bg);
}

.academy-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 125px 28px 28px;
}

@media (max-width: 767px) {
  .academy-wrapper {
    padding: 105px 0 0;
  }
  .header_2 {
    margin: 0;
  }
}

.academy-wrapper h1 {
  padding: 16px;
}

.academy-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.academy-tab {
  border: 1px solid #003399;
  background: transparent;
  color: #003399;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.academy-tab.is-active {
  background: #003399;
  color: #ffffff;
  transform: translateY(-1px);
}

.academy-tab:focus-visible {
  outline: 2px solid rgba(0, 51, 153, 0.8);
  outline-offset: 2px;
}

.academy-layout {
  display: flex;
  gap: 24px;
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
}

.academy-layout-left {
  flex: 0 0 calc(58% - 12px);
  min-width: 280px;
  display: flex;
  flex-direction: column;
}

.academy-layout-right {
  flex: 0 0 calc(42% - 12px);
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.academy-search {
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.academy-search input {
  border: 1px solid #d0d7de;
  border-radius: 12px;
  padding: 10px 14px;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.academy-search input:focus-visible {
  outline: none;
  border-color: #003399;
  box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.15);
}


.academy-player {
  background: transparent;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}


.academy-player .academy-player-lock-icon {
  position: absolute;
}


.academy-player .label {
  color: #0f172a;
  font-weight: 900;
  font-size: 20px;
  padding: 10px 8px;
  background: transparent;
  white-space: normal;
  word-break: break-word;
  line-height: initial;
}
@media (min-width: 900px) {
  .academy-player .label {
    height: 70px;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

.academy-description {
  margin-top: 16px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 12px;
  color: #1f2937;
  line-height: 1.6;
  min-height: 80px;
}

.academy-description p {
  margin: 0;
}

.academy-description__placeholder {
  color: #94a3b8;
  font-style: italic;
}

.academy-empty {
  width: 100%;
  padding: 32px 24px;
  background: #f8fafc;
  color: #475569;
  border-radius: 12px;
  text-align: center;
  border: 1px dashed #d0d7de;
}

.academy-embed {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
  flex-shrink: 0;
  height: 0;
}

.academy-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  background: #000;
}

@media (max-width: 767px) {
  .academy-locked {
    height: 230px;
  }
}

.academy-list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  
}

@media (min-width: 901px) {
  .academy-list {
    min-height: 0;
    max-height: 100%;
    flex: 1 1 0;
  }
}

.academy-list::-webkit-scrollbar {
  width: 8px;
}

.academy-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.academy-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.academy-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.academy-list-item {
  list-style: none;
}

.academy-list-button {
  width: 100%;
  border: 1px solid #d0d7de;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.academy-list-item.is-active .academy-list-button,
.academy-list-button:hover {
  border-color: #003399;
  box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.12);
}

.academy-thumb {
  width: 96px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f4f6;
  flex-shrink: 0;
  position: relative;
}

.academy-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  position: relative;
  overflow: hidden;
}

.academy-thumb--empty::after {
  content: "No preview";
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
}

.academy-list-item.is-locked .academy-list-button::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 96px;
  height: 64px;
  border-radius: 8px;
  background:
    url('/wp-content/themes/poker111/assets/img/icons/lock.svg') center/32px 32px no-repeat,
    rgba(15, 23, 42, 0.5);
  pointer-events: none;
  z-index: 1;
}

.academy-list-text {
  line-height: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.academy-list-text strong {
  font-weight: 900;
  color: #0f172a;
}

.academy-list-text small {
  color: #64748b;
  line-height: 1.4;
}

.academy-status {
  margin-top: 24px;
  color: #4b5563;
  min-height: 1.2rem;
}

.academy-status[data-state="error"] {
  color: #b91c1c;
}

.academy-locked {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(15, 23, 42, 0.85));
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.academy-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/wp-content/themes/poker111/assets/img/icons/lock.svg') center/96px 96px no-repeat;
  pointer-events: none;
  z-index: 1;
}

.academy-locked img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) brightness(0.55);
}

.academy-locked__background {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1f2937, #0f172a);
  opacity: 0.85;
}

.academy-locked figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(0, 51, 153, 0.88);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: white;
}

.academy-legend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

@media (max-width: 767px) {
  .academy-legend-header {
    flex-direction: column;
    gap: 4px;
  }
}

.academy-legend__label {
  padding-right: 15px;
}

.academy-legend {
  display: flex;
  color: #003399;
  padding: 10px 0;
}

.academy-legend .academy-legend__tiers {
  display: flex;
  align-items: center;
}

.academy-legend .academy-legend__tiers .academy-legend__tier {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

@media (max-width: 900px) {
  .academy-layout {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .academy-layout-left {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .academy-layout-right {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .academy-player {
    min-height: 280px;
  }

  .academy-list {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .academy-tab,
  .academy-list-button {
    transition: none;
  }
}