/* ==========================================================================
   QQChess Official Website - Tournament & Pages Stylesheet
   Mobile-Optimized & Large Touch Typography
   ========================================================================== */

/* Hero Section */
.hero {
  position: relative;
  min-height: auto;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  background: radial-gradient(circle at 50% 30%, rgba(128, 0, 32, 0.15) 0%, rgba(15, 43, 92, 0.15) 40%, rgba(9, 10, 15, 1) 90%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, var(--gold-light), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.5), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 90px 40px, var(--gold-primary), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-border);
  border-radius: 50px;
  color: var(--gold-light);
  font-size: clamp(0.75rem, 2.5vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-title {
  font-size: clamp(1.4rem, 5.2vw, 4.25rem);
  font-weight: 900;
  line-height: 1.18;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 5px 25px rgba(0,0,0,0.8);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-title-word {
  display: inline-block;
  font-size: clamp(1.05rem, 5vw, 3.8rem);
  letter-spacing: 0.01em;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-title-sub {
  display: inline-block;
  font-size: clamp(1.2rem, 5.5vw, 4rem);
  letter-spacing: 0.04em;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.8vw, 1.4rem);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  font-weight: 500;
}

/* Dates Bar */
.hero-dates-container {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

.hero-date-badge {
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: clamp(0.85rem, 2.6vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  backdrop-filter: blur(8px);
  max-width: 100%;
  box-sizing: border-box;
}

.hero-date-badge.maroon {
  background: rgba(128, 0, 32, 0.4);
  border: 1px solid rgba(163, 28, 63, 0.8);
  color: #fecdd3;
}

.hero-date-badge.navy {
  background: rgba(15, 43, 92, 0.5);
  border: 1px solid rgba(29, 78, 216, 0.8);
  color: #bfdbfe;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

/* Countdown Timer */
.countdown-box {
  margin-top: 2rem;
  background: var(--bg-glass);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: block;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.countdown-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  justify-content: center;
}

.countdown-unit {
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.6rem 0.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-top: 0.3rem;
  font-weight: 500;
}

/* Tournament Cards (Showcase) */
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.25rem;
  margin-top: 2rem;
}

.tournament-card {
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
  transition: var(--transition);
  overflow: hidden;
}

.tournament-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.tournament-card.card-maroon {
  background: linear-gradient(180deg, rgba(74, 0, 18, 0.65) 0%, rgba(18, 21, 30, 0.95) 100%);
  border: 1px solid rgba(163, 28, 63, 0.45);
}

.tournament-card.card-maroon::before {
  background: var(--maroon-gradient);
}

.tournament-card.card-maroon:hover {
  border-color: var(--maroon-bright);
  box-shadow: 0 15px 40px rgba(128, 0, 32, 0.35);
  transform: translateY(-5px);
}

.tournament-card.card-navy {
  background: linear-gradient(180deg, rgba(7, 21, 48, 0.65) 0%, rgba(18, 21, 30, 0.95) 100%);
  border: 1px solid rgba(29, 78, 216, 0.45);
}

.tournament-card.card-navy::before {
  background: var(--navy-gradient);
}

.tournament-card.card-navy:hover {
  border-color: var(--navy-bright);
  box-shadow: 0 15px 40px rgba(29, 78, 216, 0.35);
  transform: translateY(-5px);
}

.tournament-card-header {
  margin-bottom: 1.25rem;
}

.tournament-card-title {
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 1rem 0 0.5rem;
}

.tournament-prize-tag {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 2.5rem);
  font-weight: 900;
  color: var(--gold-primary);
  margin: 1.25rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.tournament-prize-tag span {
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

.tournament-details-list {
  list-style: none;
  margin-bottom: 2rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.tournament-details-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--text-main);
  font-size: 1rem;
}

.tournament-card-actions {
  display: flex;
  gap: 0.85rem;
}

/* Tables (Prizes, Schedule) Touch Optimized */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
}

.table-custom {
  width: 100%;
  min-width: 480px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card-premium .table-custom {
  min-width: 100%;
  width: 100%;
}

.table-custom th {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary);
  font-family: var(--font-serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1.1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--gold-border);
  white-space: nowrap;
  font-size: 1rem;
}

.table-custom td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-card);
  color: var(--text-main);
  font-size: 1rem;
}

.table-custom td.table-label {
  font-weight: 700;
  width: 30%;
  min-width: 120px;
  color: var(--gold-light);
}

.table-custom tr:last-child td {
  border-bottom: none;
}

.table-custom tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.table-custom tr:hover {
  background: rgba(212, 175, 55, 0.04);
}

/* Page Header Banner */
.page-header {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 3.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.1) 0%, rgba(9, 10, 15, 1) 80%);
  border-bottom: 1px solid var(--border-card);
}

.page-header.maroon-header {
  background: radial-gradient(circle at 50% 0%, rgba(128, 0, 32, 0.3) 0%, rgba(9, 10, 15, 1) 80%);
}

.page-header.navy-header {
  background: radial-gradient(circle at 50% 0%, rgba(29, 78, 216, 0.3) 0%, rgba(9, 10, 15, 1) 80%);
}

.page-title {
  font-size: clamp(1.85rem, 5.5vw, 3.25rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--gold-border);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-toggle-icon {
  color: var(--gold-primary);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 1.5rem 1.5rem 1.5rem;
  transition: max-height 0.3s ease-in-out;
}

/* Feature Grid Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.info-card h3 {
  font-size: 1.3rem;
}

.info-card p {
  font-size: 1.025rem;
  line-height: 1.6;
}

.info-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
}

.tournament-page-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tournament-page-grid > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.info-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  border: 1px solid var(--gold-border);
}

@media (max-width: 992px) {
  .tournament-page-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .tournament-card-actions {
    flex-direction: column;
  }
  .tournament-card-actions .btn {
    width: 100%;
  }
  .hero-dates-container {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-date-badge {
    justify-content: center;
  }
  .page-header {
    padding-top: calc(var(--header-height) + 1.25rem);
    padding-bottom: 2rem;
  }
  .page-title {
    font-size: clamp(1.2rem, 4.5vw, 2.25rem);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .page-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .page-header .btn {
    width: 100%;
  }
  .prize-banner-right {
    text-align: left !important;
    min-width: 100% !important;
    width: 100% !important;
  }
  .table-custom {
    min-width: 100%;
    width: 100%;
  }
  .table-custom th {
    white-space: normal;
  }
  .table-custom th, .table-custom td {
    padding: 0.6rem 0.55rem;
    font-size: 0.85rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .table-custom td.table-label {
    width: 35%;
    min-width: 85px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding-top: calc(var(--header-height) + 1.25rem);
    padding-bottom: 2.5rem;
  }
  .hero-title {
    font-size: 1.35rem;
    line-height: 1.2;
  }
  .hero-title-word {
    font-size: 1.05rem;
    letter-spacing: 0;
  }
  .hero-title-sub {
    font-size: 1.2rem;
    letter-spacing: 0.02em;
  }
  .hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
  }
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.85rem;
  }
  .hero-date-badge {
    font-size: 0.825rem;
    padding: 0.75rem 0.85rem;
  }
  .tournament-card {
    padding: 1.5rem 1.25rem;
    min-height: auto;
  }
  .tournament-prize-tag {
    font-size: 1.75rem;
  }
  .countdown-box {
    padding: 1rem 0.75rem;
  }
  .countdown-grid {
    gap: 0.35rem;
  }
  .countdown-unit {
    padding: 0.5rem 0.25rem;
  }
  .countdown-number {
    font-size: 1.3rem;
  }
  .table-custom th, .table-custom td {
    padding: 0.55rem 0.4rem;
    font-size: 0.8rem;
  }
  .table-custom td.table-label {
    width: 35%;
    min-width: 80px;
  }
}

@media (max-width: 380px) {
  .hero-title-word {
    font-size: 0.95rem;
    letter-spacing: 0;
  }
  .hero-title-sub {
    font-size: 1.1rem;
  }
  .hero-date-badge {
    font-size: 0.775rem;
    padding: 0.65rem 0.65rem;
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Accommodation Room Gallery Styles
   ========================================================================== */
.room-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.room-gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.room-gallery-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.room-gallery-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.room-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.room-gallery-card:hover .room-gallery-img {
  transform: scale(1.06);
}

.room-gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
  width: 100%;
  height: 100%;
}

.room-gallery-placeholder i {
  font-size: 2.25rem;
  color: var(--gold-primary);
}

.room-gallery-caption {
  padding: 1rem 1.25rem;
  background: rgba(18, 21, 30, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.room-gallery-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.room-gallery-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .room-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .room-gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

