/* ============================= */
/* GLOBAL RESET */
/* ============================= */

* {
  box-sizing: border-box;
}

/* ============================= */
/* SCREEN BACKGROUND (DEFAULT) */
/* ============================= */

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, #10244d 0%, #040810 60%),
    linear-gradient(to bottom, rgba(255,255,255,0.04), rgba(0,0,0,0.9));
  font-family: "Segoe UI", Arial, sans-serif;
  color: #ffffff;
}

/* ============================= */
/* TITLE */
/* ============================= */

h1 {
  text-align: center;
  margin: 24px 0 16px;
  font-size: 26px;
  letter-spacing: 3px;
  font-weight: 700;
}

/* ============================= */
/* EXPORT BUTTONS */
/* ============================= */

.export-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 16px 0;
}

.export-controls button {
  background: linear-gradient(180deg, #2d6cdf, #1a3f8b);
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.export-controls button:hover {
  opacity: 0.9;
}

/* ============================= */
/* FIXTURE PANEL */
/* ============================= */

.fixtures-wrapper {
  width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.06),
    rgba(0,0,0,0.35)
  );
  border-radius: 10px;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ============================= */
/* FIXTURES GRID */
/* ============================= */

.fixtures {
  width: 100%;
  display: grid;
  row-gap: 6px;
}

/* ============================= */
/* MONTH HEADER */
/* ============================= */

.month-header {
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ============================= */
/* FIXTURE ROW */
/* ============================= */

.fixture {
  display: grid;
  grid-template-columns:
    34px
    1fr
    34px
    1fr
    170px
    110px
    34px;

  align-items: center;
  padding: 4px 0;
}

/* ============================= */
/* ROW SEPARATOR */
/* ============================= */

.fixture:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* ============================= */
/* LOGOS */
/* ============================= */

.logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

.logo.home { justify-self: start; }
.logo.away { justify-self: end; }

/* ============================= */
/* TEAM NAMES */
/* ============================= */

.home,
.away {
  font-size: 13px;
}

.home {
  text-align: right;
  padding-right: 4px;
}

.away {
  text-align: left;
  padding-left: 4px;
}

/* ============================= */
/* VS */
/* ============================= */

.vs {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.95;
  color: var(--home-color, #ffffff);
}

/* ============================= */
/* DATE & TIME */
/* ============================= */

.date,
.time {
  font-size: 12px;
}

/* ============================= */
/* PRINT — LEAVE STABLE */
/* ============================= */

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .export-controls {
    display: none !important;
  }

  .fixtures-wrapper {
    background: #ffffff !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .logo {
    filter: none;
  }
}

/* ============================= */
/* PRINT FIX — FORCE SINGLE PAGE */
/* ============================= */
@media print {
  .month-header {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .fixtures { row-gap: 4px !important; }
  .fixture { padding: 2px 0 !important; }

  .home, .away { font-size: 11px !important; }
  .date, .time { font-size: 10px !important; }

  .logo { width: 20px !important; height: 20px !important; }

  .fixture { page-break-inside: avoid !important; }
}

/* ===================================================== */
/* SOCIAL LAYOUT (ONE LAYOUT FOR BOTH EXPORTS) */
/* ===================================================== */

body.export-social h1 {
  font-size: 42px;
  margin: 20px 0 26px;
  letter-spacing: 3px;
}

/* SAME DIMENSIONS FOR BOTH THEMES */
body.export-social .fixtures-wrapper {
  width: 900px;
  padding: 28px 30px;
  border-radius: 16px;
}

/* Same spacing */
body.export-social .fixtures { row-gap: 10px; }
body.export-social .fixture { padding: 6px 0; }

body.export-social .home,
body.export-social .away {
  font-size: 18px;
  font-weight: 600;
}

body.export-social .vs { font-size: 14px; }

body.export-social .date,
body.export-social .time {
  font-size: 15px;
}

body.export-social .logo {
  width: 32px;
  height: 32px;
}

/* Hide month header on BOTH social exports */
body.export-social .month-header {
  display: none !important;
}

/* ===================================================== */
/* SOCIAL THEME — DARK (UNCHANGED LOOK) */
/* ===================================================== */

body.export-social.export-social-dark {
  background: radial-gradient(circle at top, #10244d 0%, #040810 65%);
  color: #ffffff;
}

body.export-social.export-social-dark .fixtures-wrapper {
  background: linear-gradient(to bottom, rgba(255,255,255,0.10), rgba(0,0,0,0.35));
  box-shadow:
    0 20px 40px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Dark theme: date yellow, time bold white */
body.export-social.export-social-dark .date {
  color: #ffd24a;
  font-weight: 500;
}

body.export-social.export-social-dark .time {
  color: #ffffff;
  font-weight: 800;
}

/* ===================================================== */
/* SOCIAL THEME — WHITE (SAME LAYOUT, DIFFERENT COLOURS) */
/* ===================================================== */

body.export-social.export-social-white {
  background: #ffffff;
  color: #0b2a5a;
}

body.export-social.export-social-white h1 {
  color: #0b2a5a;
}

body.export-social.export-social-white .fixtures-wrapper {
  background: #ffffff;
  border: 6px solid #6072A9; /* nice blue border */
  box-shadow: none;
}

/* White theme separators */
body.export-social.export-social-white .fixture:not(:last-child) {
  border-bottom: 1px solid rgba(0,0,0,0.10);
}

/* White theme team names: dark blue */
body.export-social.export-social-white .home,
body.export-social.export-social-white .away {
  color: #0b2a5a;
}

/* White theme date: bold dark yellow */
body.export-social.export-social-white .date {
  color: #b8860b; /* dark yellow */
  font-weight: 800;
}

/* White theme time: black */
body.export-social.export-social-white .time {
  color: #111111;
  font-weight: 700;
}

/* VS stays team colour (from --home-color) */
body.export-social.export-social-white .vs {
  color: var(--home-color, #0b2a5a);
  font-weight: 800;
}
