:root{
  --gray: #1e1e1e;
  --orange: #df4e19;
}

* {
  /* For Debugging */
  /* outline: 1px solid red; */
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

*:focus{
  -webkit-tap-highlight-color: transparent;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}

body{
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
}

main{
  flex: 1;
}

/* Navigation Bar */

div.navigation-bar-container{
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
}

div.navigation-bar-wrapper{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

div.navigation-div{
  width: 67vw;
  height: 63px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: var(--gray);
  padding: 0px 20px 0px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

div.navigation-logo{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

p.navigation-logo-small-text{
  font-size: 12px;
  color: white;
}

p.navigation-logo-big-text{
  font-size: 16px;
  font-weight: bold;
  color: white;
}

img.navigation-logo {
  height: 50px;
}

/* Scroll Bar */
::-webkit-scrollbar {
  width: 4px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 10px;
}

/* Bread Crumbs */
nav.bread-crumbs{
  width: 100%;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

div.bread-crumbs{
  width: 67vw;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 20px;
  padding-right: 20px;
}

svg.home-bread-crumbs{
  width: 18px;
  height: 18px;
  fill: var(--orange);
  display: flex;
  justify-content: center;
  align-items: center;
}

svg.unclickable{
  fill: #1e1e1e;
}

svg.arrow-bread-crumbs{
  width: 15px;
  height: 15px;
  fill: #1e1e1e;
}

ul.bread-crumbs{
  height: 25px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

li.bread-crumbs{
  list-style-type: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

p.bread-crumbs{
  color: #1e1e1e;
  font-size: 14px;
}

a.bread-crumbs-link{
  text-decoration: none;
  color: var(--orange);
  font-size: 14px;
}

p.bread-crumbs-link{
  color: var(--orange);
  font-size: 14px;
}

/* Shared Feature Header */
section.page-feature-shell{
  margin-top: 8px;
  margin-bottom: 18px;
}

header.page-feature-header{
  position: relative;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 26px 26px 22px;
  background:
    radial-gradient(1100px 240px at 95% -40%, rgba(223, 78, 25, 0.1), transparent 45%),
    radial-gradient(500px 180px at 5% -50%, rgba(30, 30, 30, 0.08), transparent 45%),
    #ffffff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.05);
  margin-bottom: 14px;
}

span.page-feature-eyebrow{
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 10px;
}

h1.page-feature-title{
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 8px;
}

p.page-feature-subtitle{
  max-width: 760px;
  color: #6b6b6b;
  font-size: 0.82rem;
  line-height: 1.65;
}

@media (max-width: 860px){
  header.page-feature-header{
    padding: 22px 16px 18px;
    border-radius: 12px;
  }

  p.page-feature-subtitle{
    font-size: 0.76rem;
  }
}

/* Content Container*/

div.content-container{
  width: 100%;
  display: flex;
  justify-content: center;
}

div.content{
  margin-top: 10px;
  width: 70vw;
}

div.content-navigation{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10vw;
}

/* Content Button Navigation */

button.content-navigation-button{
  height: 40px;
  width: 180px;
  border: 1px solid var(--gray);
  color: var(--gray);
}

button.content-navigation-left{
  border-radius: 0px 40px 0px 40px;
}

button.content-navigation-right{
  border-radius: 40px 0px 40px 0px;
}

button.active-content-navigation-button{
  background-color: var(--gray);
  color: white;
}

button.content-navigation-button:hover{
  cursor: pointer;
}

button.content-navigation-button:active{
  transform: none;
}

/* Intrams Content */

div.intrams-content{
  margin-top: 20px;
  justify-content: center;
  width: 98vw
}

/* Intrams Content (Standing) */
div.standing-container{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

div.standing-header{
  width: 98vw;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr; 
  align-items: center;
  padding: 5px 0;

  background-color: var(--gray);
  border-radius: 10px 10px 0px 0px;
  padding: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

div.standing-header-item{
  color: white;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: flex;
  justify-content: center;
  align-items: center;
}

div.department-standing{
  width: 98vw;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr; 
  align-items: center;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

div.department-standing:hover{
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

div.department-standing-item{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  font-weight: 700;
  color: var(--gray);
  border-left: 1px solid #efefef;
}

div.department-standing-item:first-child{
  border-left: none;
}

div.department-standing-banner-item{
  position: relative;
  justify-content: flex-start;
  overflow: hidden;
}

div.department-standing-banner-item::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.08) 32%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

img.department-standing-item.logo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;  
  display: block;
}

span.department-standing-name{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: absolute;
  left: 40%;
  right: 10px;
  top: 4px;
  bottom: 4px;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-align: right;
  color: white;
  font-size: 13px;
  font-weight: 700;
  white-space: normal;
  line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  z-index: 1;
}

/* Footer */
div.footer-container{
  margin-top: 40px;
}

.hide{
  display: none;
}

.footer-content{
  background-color: var(--gray);
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 40px 28px;
}

.footer-brand{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin-left: 5%;
}

.footer-logo{
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.footer-brand-text{
  color: #fff;
}

.footer-small{ 
  margin: 0; 
  font-size: 0.85rem; 
  opacity: 0.85; 
}

.footer-big{ 
  margin: 0; 
  font-size: 1.2rem; 
  font-weight: 800; 
}

.footer-section{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
  margin-right: 5%;
}

.footer-title{
  color: var(--orange);
}

a.section-link{
  text-decoration: none;
  color: #fff;
}

a.section-link:hover{
  text-decoration: underline;
}

.footer-column ul{
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li{
  margin: 6px 0;
}

/* Mobile footer */
@media (max-width: 700px){
  .footer-content{
    flex-direction: column;
    align-items: center;
  }

  .footer-section{
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .footer-column{
    min-width: 140px;
    text-align: center;
  }
}

@media (max-width: 860px){
  div.navigation-div, div.bread-crumbs{
    width: 80vw;
  }

  ul.navigation-link{
    width: 100%;
    justify-content: space-around;
  }

  div.content{
    width: 85vw;
  }

  img.department-standing-item.logo{
    object-position: center;
    object-fit: contain;
  }

  div.department-standing-banner-item::after{
  background: none;
}
}

@media (max-width: 430px){
  div.navigation-div, div.bread-crumbs{
    width: 95vw;
  }

  div.content{
    width: 98vw;
  }

  
}

/* PC */
@media (min-width: 861px){
  div.standing-header, div.standing-content, div.intrams-content, div.department-standing{
    width: 70vw;
  }
}

/* Tablet */
@media (min-width: 431px) and (max-width: 860px){
  div.standing-header, div.standing-content, div.intrams-content, div.department-standing{
    width: 85vw;
  }
}

:root{
  --orange: #df4e19;
  --orange-light: #fce8e5;
  --gray: #1e1e1e;
}

div.intrams-content.games.show {
  display: block;
  width: auto;
}

/* GAMES FILTERS */
.games-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.games-filter-btn {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 4px;
  border: 1.5px solid #e2e2e2;
  background: transparent;
  color: #8a8a8a;
  cursor: pointer;
  transition: all 0.15s;
}
.games-filter-btn.active {
  background: var(--gray);
  color: #fff;
  border-color: var(--gray);
}
.games-filter-btn:hover:not(.active){
  border-color: var(--orange);
  color: var(--orange);
}

/* SECTION LABEL */
.game-section-label{
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #8a8a8a;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.game-section-label:first-of-type{ 
  margin-top: 0; 
}

.game-section-label::after{
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e2e2;
}

/* GAME CARD */
.game-card {
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.15s, border-color 0.15s;
  animation: fadeUp 0.3s ease both;
}
.game-card:nth-child(1) { animation-delay: 0.05s; }
.game-card:nth-child(2) { animation-delay: 0.1s; }
.game-card:nth-child(3) { animation-delay: 0.15s; }
.game-card:nth-child(4) { animation-delay: 0.2s; }
.game-card:nth-child(5) { animation-delay: 0.25s; }
.game-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); border-color: #ccc; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-status-bar {
  height: 3px;
  width: 100%;
}
.card-status-bar.finished      { background: var(--gray); }
.card-status-bar.ongoing   { background: var(--orange); }
.card-status-bar.upcoming { background: #e2e2e2; }

.card-body {
  padding: 14px 20px 0;
}

/* ── STATUS BADGE ── */
.status-row {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 3px 12px;
  border-radius: 20px;
}
.status-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-badge.finished {
  background: rgba(30,30,30,0.07);
  color: var(--gray);
}
.status-badge.finished::before { background: var(--gray); }
.status-badge.ongoing {
  background: var(--lighter-orange);
  color: var(--orange);
}
.status-badge.ongoing::before {
  background: var(--orange);
  animation: pulse 1s infinite;
}
.status-badge.upcoming {
  background: #f6f6f6;
  color: #8a8a8a;
  border: 1px solid #e2e2e2;
}
.status-badge.upcoming::before { background: #8a8a8a; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* TEAMS ROW */
.teams-row {
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end
}
.team-block.away {
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.team-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f6f6f6;
  border: 2px solid #e2e2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--gray);
  flex-shrink: 0;
  overflow: hidden;
}
.team-logo img { width: 100%; height: 100%; object-fit: cover; }

.team-name {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--gray);
}
.vs-divider {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #8a8a8a;
  letter-spacing: 0.1em;
}
.teams-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  flex-shrink: 0;
}
.sport-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a8a8a;
  background: #f6f6f6;
  border: 1px solid #e2e2e2;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.bracket-tag {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--orange);
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

/* SCORE ROW */
.score-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  min-height: 42px;
}
.score {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray);
  min-width: 34px;
  text-align: center;
  line-height: 1;
}
.score.winner-score { color: var(--orange); }
.score-sep {
  color: #e2e2e2;
  font-size: 1.2rem;
  font-weight: 300;
}
.score-placeholder {
  font-size: 0.7rem;
  font-weight: 600;
  color: #8a8a8a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.winner-tag {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gray);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 4px;
}

/* DROPDOWN BAR */
.dropdown-bar {
  display: flex;
  align-items: stretch;
  margin-top: 12px;
  border-top: 1px solid #e2e2e2;
  cursor: pointer;
}
.dropdown-bar:hover { background: rgba(0,0,0,0.02); }

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #8a8a8a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 20px;
  border: none;
  background: none;
  cursor: pointer;
  flex: 1;
}
.toggle-arrow {
  display: inline-block;
  font-size: 0.6rem;
  transition: transform 0.25s ease;
}
.game-card.open .toggle-arrow { transform: rotate(180deg); }

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--orange);
  border: none;
  padding: 0 18px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  border-left: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
}
.nav-btn:hover { background: var(--gray); }

.view-on-map-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* DROPDOWN CONTENT */
.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.game-card.open .dropdown-content { max-height: 300px; }

.dropdown-inner {
  padding: 14px 20px 16px;
  border-top: 1px solid #e2e2e2;
  background: #fafafa;
}

.dropdown-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1.5px solid #e2e2e2;
  background: #ffffff;
  color: #4a4a4a;
  cursor: pointer;
  transition: all 0.15s;
}
.edit-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.edit-btn.danger:hover {
  border-color: #c0392b;
  color: #c0392b;
}

.venue-row {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
}

.venue-info-container{
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.venue-icon {
  height: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.venue-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a8a8a;
  margin-bottom: 2px;
}
.venue-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 20px;
}

/* MAP MODAL */
.map-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.55);
  align-items: center;
  justify-content: center;
}
.map-overlay.open { display: flex; }

.map-modal {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  width: min(700px, 92vw);
  height: min(520px, 85vh);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.map-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e2e2;
  flex-shrink: 0;
}
.map-modal-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray);
}
.map-modal-sub {
  font-size: 0.7rem;
  color: #8a8a8a;
  margin-top: 1px;
}
.map-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #e2e2e2;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: #4a4a4a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.map-modal-close:hover {
  background: var(--gray);
  color: #fff;
  border-color: var(--gray);
}

#map-container {
  flex: 1;
  position: relative;
}
#map {
  width: 100%;
  height: 100%;
}
.map-pan-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 10;
  background: #ffffff;
  border: 1.5px solid #e2e2e2;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: all 0.15s;
}
.map-pan-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.map-pan-btn:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .team-name      { display: none; }
  .teams-meta     { margin-left: 8px; gap: 4px; }
  .card-body      { padding: 12px 12px 0; }
  .dropdown-toggle { padding: 8px 12px; }
  .dropdown-actions { gap: 6px; }
}

nav.navigation-bar {
  z-index: 100;
  background: white;
}

