/*
Theme Name: Exiles
Theme URI: https://xx.kittybit.space
Description: Exiles 
Version: 1.0
Author: GAYLE
*/

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --black:   #ffffff;
  --deep:    #f5f4f2;
  --surface: #eeece9;
  --card:    #ffffff;
  --border:  #e0ddd8;
  --orange:  #f07a00;
  --orange2: #d96d00;
  --odim:    rgba(240,122,0,.12);
  --white:   #1a1917;
  --muted:   #8a8680;

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-ui:      'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow', 'Arial', sans-serif;

  --clip: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  --clip-sm: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

/* ── BASE ────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── GOOGLE FONTS IMPORT ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;600;700&family=Barlow:wght@400;500&display=swap');

/* ── NAV ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.site-header__inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 48px;
}
.site-logo {
  display: flex; align-items: center;
  flex-shrink: 0;
}
/* Logo image: source may be 200×200 but we display it small in the nav */
.site-logo img,
.site-logo a img {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain;
  display: block;
}
/* WordPress custom_logo wraps in <a> — strip its default styles */
.site-logo .custom-logo-link {
  display: flex; align-items: center; line-height: 1;
}
.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav a {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav a:hover,
.site-nav a.current { color: var(--white); }
.site-nav .nav-cta {
  background: var(--orange); color: var(--black);
  padding: 7px 18px; clip-path: var(--clip-sm);
  border-bottom: none; transition: background .2s;
}
.site-nav .nav-cta:hover { background: var(--orange2); color: var(--black); }

/* ── BACK LINK (inner pages) ─────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  transition: color .2s; padding: 1rem 1.5rem; display: block;
}
.back-link:hover { color: var(--orange); }

/* ── POSTER (front page) ─────────────────────────────── */
.event-poster {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}
.event-poster img {
  width: 100%; height: auto;
  display: block;
}

/* ── EVENT DETAILS (front page) ──────────────────────── */
.event-details {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  text-align: center;
}
.event-details__name {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 48px);
  letter-spacing: 1px;
  color: var(--white);
  margin: .4rem 0 .75rem;
  line-height: 1;
}
.event-details__meta {
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.event-details__closes {
  font-size: 12px; color: var(--orange);
  text-transform: none; letter-spacing: 0; font-weight: 500;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  padding: 13px 36px; border: none; cursor: pointer;
  clip-path: var(--clip); transition: background .2s, color .2s;
}
.btn--primary { background: var(--orange); color: var(--black); }
.btn--primary:hover { background: var(--orange2); color: var(--black); }
.btn--ghost {
  background: transparent; color: var(--white);
  border: 1px solid var(--border); clip-path: var(--clip);
  padding: 12px 36px;
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ── SECTION CHROME ──────────────────────────────────── */
.section { padding: 64px 1.5rem; max-width: 960px; margin: 0 auto; }
.section__label {
  font-family: var(--font-ui); font-size: 10px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase; color: var(--orange);
  margin-bottom: .5rem;
}
.section__title {
  font-family: var(--font-display); font-size: clamp(30px, 5vw, 46px);
  letter-spacing: 1px; margin-bottom: 2rem;
}

/* ── TOURNAMENT CARD ─────────────────────────────────── */
.tourn-card {
  background: var(--card);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.tourn-card__img {
  flex-shrink: 0;
  width: 200px; height: 200px;
}
.tourn-card__img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.tourn-card__meta {
  flex: 1; padding: 2rem 0 2rem 2rem;
}
/* When no image, let meta have left padding from card edge */
.tourn-card:not(:has(.tourn-card__img)) .tourn-card__meta {
  padding-left: 2.5rem;
}
.tourn-card__action { padding: 2rem 2.5rem 2rem 0; flex-shrink: 0; }
.tourn-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: var(--orange);
}
.tourn-card--past { opacity: .6; }
.tourn-card--past::before { background: var(--muted); }
.tourn-card__meta {}
.tourn-card__tag {
  font-family: var(--font-ui); font-size: 10px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--orange);
  margin-bottom: .4rem;
}
.tourn-card--past .tourn-card__tag { color: var(--muted); }
.tourn-card__name {
  font-family: var(--font-display); font-size: 32px; letter-spacing: 1px;
  color: var(--white); line-height: 1;
}
.tourn-card__detail {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  letter-spacing: 1px; color: var(--muted); margin-top: .5rem;
  text-transform: uppercase;
}
.tourn-card__action { flex-shrink: 0; }
.tourn-card + .tourn-card { margin-top: 1.5px; }

/* Past block */
.past-section { border-top: 1px solid var(--border); padding-top: 48px; margin-top: 64px; }

/* ── DIVIDER ─────────────────────────────────────────── */
.divider {
  max-width: 960px; margin: 0 auto;
  height: 1px; background: var(--border);
}

/* ── INNER PAGE (register / players) ─────────────────── */
.page-wrap {
  max-width: 680px; margin: 0 auto; padding: 3rem 1.5rem 5rem;
}
.page-title {
  font-family: var(--font-display); font-size: clamp(36px, 7vw, 60px);
  letter-spacing: 2px; margin-bottom: .25rem;
}
.page-label {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--muted);
  margin-bottom: 2rem; display: block;
}
.plugin-block {
  background: var(--card); border: 1px solid var(--border);
  padding: 2rem;
}

.plugin-block .tr-header { display: none; }

.plugin-block .tr-wrap { padding: 0; max-width: 100%; }

.plugin-block .tr-wrap { font-family: var(--font-body); }

.plugin-block .tr-submit {
  background: var(--orange) !important;
  border-radius: 0 !important;
  clip-path: var(--clip) !important;
  font-family: var(--font-ui) !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  font-size: 12px !important;
}
.plugin-block .tr-submit:hover { background: var(--orange2) !important; }


.plugin-block .tr-btn-outline {
  border-color: var(--orange) !important;
  color: var(--orange) !important;
  border-radius: 0 !important;
}

/* Active entry option accent */
.plugin-block .tr-entry-opt.active {
  border-color: var(--orange) !important;
}

/* Table hover tint */
.plugin-block .tr-table tr:hover td {
  background: rgba(240,122,0,.04) !important;
}

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  max-width: 960px; margin: 0 auto;
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
}
.site-footer a { color: var(--orange); transition: opacity .2s; }
.site-footer a:hover { opacity: .7; }

/* ── EVENT PHOTO (register page) ─────────────────────── */
.event-photo {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  overflow: hidden;
}
.event-photo img {
  width: 100%; height: auto;
  display: block; max-height: auto;
  object-fit: cover;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 600px) {
  .tourn-card { flex-direction: column; align-items: stretch; gap: 0; }
  .tourn-card__img { width: 100%; height: 200px; }
  .tourn-card__meta { padding: 1.25rem 1.25rem 0; }
  .tourn-card__action { padding: 1.25rem; }
  .site-nav .nav-cta { padding: 7px 14px; }
  .site-header__inner { padding: 0 1rem; }
}
