/**
 * Live Ticker Block Styles
 * Responsive design for displaying sports game information
 */

.liveticker-wrapper {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  padding: 25px;
  margin: 20px 0;
  color: #222;
  border-radius: 12px;
}

/* SCOREBOARD */
.liveticker-wrapper .header {
  background: #111;
  color: white;
  padding: 28px;
  border-radius: 12px;
}

.liveticker-wrapper .loading {
  text-align: center;
  font-size: 18px;
  padding: 20px;
}

/* TOP ROW */
.liveticker-wrapper .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* TEAMS */
.liveticker-wrapper .team {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 600;
  width: 40%;
}

.liveticker-wrapper .team.left {
  justify-content: flex-start;
}

.liveticker-wrapper .team.right {
  justify-content: flex-end;
  text-align: right;
}

/* LOGOS */
.liveticker-wrapper .team img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

/* SCORE */
.liveticker-wrapper .score {
  font-size: 48px;
  font-weight: bold;
  width: 20%;
  text-align: center;
  white-space: nowrap;
}

/* META */
.liveticker-wrapper .meta {
  margin-top: 18px;
  text-align: center;
  font-size: 18px;
  opacity: 0.85;
  line-height: 1.5;
}

.liveticker-wrapper .stream-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #e74c3c;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s;
}

.liveticker-wrapper .stream-btn:hover {
  background: #c0392b;
  color: white;
}

/* BUTTONS */
.liveticker-wrapper .toggle-events-btn {
  display: block;
  margin: 25px auto 0;
  padding: 18px 32px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: #222;
  color: white;
  font-size: 20px;
  font-weight: 600;
  transition: background 0.3s;
}

.liveticker-wrapper .toggle-events-btn:hover {
  background: #444;
}

/* EVENTS */
.liveticker-wrapper .events {
  margin-top: 12px;
}

.liveticker-wrapper .event {
  background: white;
  margin-top: 12px;
  border-radius: 10px;
  padding: 14px;
  font-size: 18px;
}

.liveticker-wrapper .event-header {
  font-weight: 600;
  cursor: pointer;
}

.liveticker-wrapper .event-body {
  display: none;
  margin-top: 8px;
  font-size: 16px;
  color: #555;
}

.liveticker-wrapper .event-body.visible {
  display: block;
}

.liveticker-wrapper .goal {
  color: green;
}

.liveticker-wrapper .penalty {
  color: red;
}

.liveticker-wrapper .error-message {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
}

/* ========================= */
/* 💻 LARGE SCREENS */
/* ========================= */

@media (min-width: 1400px) {
  .liveticker-wrapper {
    max-width: 1600px;
    margin: 35px auto;
    padding: 35px;
  }

  .liveticker-wrapper .header {
    padding: 40px;
  }

  .liveticker-wrapper .team {
    font-size: 32px;
    gap: 18px;
  }

  /* 🔥 LARGE LOGOS DESKTOP ONLY */
  .liveticker-wrapper .team img {
    width: 140px;
    height: 140px;
  }

  .liveticker-wrapper .score {
    font-size: 72px;
  }

  .liveticker-wrapper .meta {
    font-size: 24px;
    margin-top: 24px;
  }

  .liveticker-wrapper .toggle-events-btn {
    font-size: 24px;
    padding: 22px 38px;
  }

  .liveticker-wrapper .event {
    font-size: 24px;
    padding: 20px;
  }

  .liveticker-wrapper .event-body {
    font-size: 20px;
    margin-top: 12px;
  }
}

/* ========================= */
/* 📱 MOBILE */
/* ========================= */

@media (max-width: 768px) {
  .liveticker-wrapper {
    padding: 12px;
  }

  .liveticker-wrapper .header {
    padding: 18px;
  }

  .liveticker-wrapper .topbar {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .liveticker-wrapper .team {
    width: 100%;
    justify-content: center !important;
    font-size: 18px;
  }

  .liveticker-wrapper .team.left,
  .liveticker-wrapper .team.right {
    justify-content: center;
    text-align: center;
  }

  .liveticker-wrapper .team img {
    width: 55px;
    height: 55px;
  }

  .liveticker-wrapper .score {
    width: 100%;
    font-size: 36px;
  }

  .liveticker-wrapper .meta {
    font-size: 14px;
  }

  .liveticker-wrapper .toggle-events-btn {
    width: 100%;
    font-size: 18px;
    padding: 14px;
  }

  .liveticker-wrapper .event {
    font-size: 16px;
  }

  .liveticker-wrapper .event-body {
    font-size: 14px;
  }
}

/* ========================= */
/* TABLET */
/* ========================= */

@media (min-width: 769px) and (max-width: 1399px) {
  .liveticker-wrapper {
    max-width: 1200px;
    margin: 25px auto;
  }

  .liveticker-wrapper .team {
    font-size: 24px;
  }

  .liveticker-wrapper .team img {
    width: 100px;
    height: 100px;
  }

  .liveticker-wrapper .score {
    font-size: 56px;
  }

  .liveticker-wrapper .meta {
    font-size: 20px;
  }
}

/* ========================= */
/* EDITOR STYLES */
/* ========================= */

.wp-block-liveticker-game-ticker {
  margin: 20px 0;
}

.editor-styles-wrapper .liveticker-wrapper {
  margin: 0;
}

/* Made with Bob */
