
/* ===========================
   Board and Cells
   =========================== */
div.board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 2px;
  width: 600px;
  height: 600px;
  border: 10px solid black;
  transition: background-color 0.5s ease;
}

div.cell {
  width: 100%;
  height: 100%;
  border: 2px solid black;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   Tiles
   =========================== */
div.tile {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  display: block;
  transition: background-color 0.5s ease, transform 0.5s ease;
}

/* Ghost tiles */
div.tile.ghost-tile {
  background: aquamarine;
  opacity: 0.2;
  margin: 4px;
  width: 85%;
  height: 85%;
  border-radius: 50%;
  border: none;
  transition: background-color 0.5s ease, opacity 0.3s ease;
  cursor: pointer;
}

div.tile.ghost-tile:hover {
  opacity: 0.4;
}

/* Fallback tiles */
div.black-tile {
  background-color: black;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

div.white-tile {
  background-color: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Team Colors using board[data-team]
   =========================== */
/* Clemson Tigers */
.board.clemson {
  background-color: #F66733;
}

.board.clemson .black-tile {
  background-color: #522D80;
}

.board.clemson .white-tile {
  background-color: #FFFFFF;
}

/* South Carolina Gamecocks */
.board.gamecocks {
  background-color: #73000A;
}

.board.gamecocks .black-tile {
  background-color: #000000;
}

.board.gamecocks .white-tile {
  background-color: #FFFFFF;
}

/* Florida Gators */
.board.gators {
  background-color: #0021A5;
}

.board.gators .black-tile {
  background-color: #FA4616;
}

/* orange tile */
.board.gators .white-tile {
  background-color: #FFFFFF;
}

/* Charlotte Hornets */
.board.hornets {
  background-color: #00788C;
}

.board.hornets .black-tile {
  background-color: #1d1160;
}

/* orange tile */
.board.hornets .white-tile {
  background-color: #A1A1A4;
}

/* LSU Tigers */
.board.lsu {
  background-color: #461D7C;
}

.board.lsu .black-tile {
  background-color: #FFD700;
}

.board.lsu .white-tile {
  background-color: #FFFFFF;
}

/* Oregon Ducks */
.board.ducks {
  background-color: #004F27;
}

.board.ducks .black-tile {
  background-color: #FEE123;
}

.board.ducks .white-tile {
  background-color: #FFFFFF;
}

/* Notre Dame Fighting Irish */
.board.fightingirish {
  background-color: #0C2340;
}

.board.fightingirish .black-tile {
  background-color: #C99700;
}

/* gold tile */
.board.fightingirish .white-tile {
  background-color: #FFFFFF;
}

/* USC Trojans */
.board.trojans {
  background-color: #990000;
}

.board.trojans .black-tile {
  background-color: #FFCC00;
}

.board.trojans .white-tile {
  background-color: #FFFFFF;
}

/* UCLA Bruins */
.board.bruins {
  background-color: #2774AE;
}

.board.bruins .black-tile {
  background-color: #FFD100;
}

.board.bruins .white-tile {
  background-color: #FFFFFF;
}

/* Charlotte Panthers */
.board.panthers {
  background-color: #0085CA;
}

.board.panthers .black-tile {
  background-color: #101820;
}

.board.panthers .white-tile {
  background-color: #BFC0BF;
}

/* Row/column labels */
/* --- UNIVERSAL: ensure the wrapper positions children correctly --- */
.game-wrapper {
  position: relative !important;
  display: inline-block !important;
}

/* --- ROW LABELS: flush left, lined up with each row --- */
.row-labels {
  position: absolute !important;
  top: 0;
  left: -37px !important;
  /* adjust left spacing as needed */
  height: 100%;
  width: 50px;
  /* fixed width keeps spacing tidy */
  display: grid !important;
  grid-template-rows: repeat(8, 1fr);
  align-items: center;
  justify-items: center;
  font-weight: bold;
  pointer-events: none;
  /* avoids interfering with clicks */
}

/* --- COLUMN LABELS: flush below each column --- */
.col-labels {
  position: absolute !important;
  bottom: -30px;
  /* adjust vertical spacing as needed */
  left: 0;
  width: 100%;
  height: 25px;
  display: grid !important;
  grid-template-columns: repeat(8, 1fr);
  align-items: center;
  justify-items: center;
  font-weight: bold;
  pointer-events: none;
}

#turn-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#turn-indicator .color-dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

#move-log {
  margin: 0 auto;
  height: 200px;
  overflow-y: auto;
  width: 100%;
}

/* ===========================
   Responsive Othello Board
   =========================== */
/* Game wrapper scales with viewport */
.game-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1/1;
  /* Keeps board square */
  margin: 0 auto;
}

/* Board scales inside wrapper */
div.board {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 2px;
  border: 8px solid black;
}

/* Row labels left of board */
.row-labels {
  /* position: absolute; */
  left: -25px;
  top: 0;
  display: grid;
  grid-template-rows: repeat(8, 1fr);
  height: 100%;
  font-weight: bold;
  align-items: center;
  justify-content: center;
}

/* Column labels below board */
.col-labels {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  justify-items: center;
  margin-top: 8px;
  font-weight: bold;
}

/* Tiles remain proportional */
div.cell {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

div.tile {
  width: 80%;
  height: 80%;
  border-radius: 50%;
}

/* Move log responsive */
#move-log {
  max-height: 300px;
  overflow-y: auto;
  width: 100%;
}

/* Three-column layout tweaks */
@media (min-width: 992px) {

  /* Keeps columns roughly 3-6-3 ratio on large screens */
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 991px) {

  /* Stack center first on medium screens */
  .col-md-12 {
    order: 1;
  }

  .col-md-6 {
    order: 2;
    margin-bottom: 1rem;
  }

  .row-labels,
  .col-labels {
    display: none;
  }
}

/* ===========================
   Global & Typography
   =========================== */
body {
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
}

/* ===========================
   Animations
   =========================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* ===========================
   Hero Section
   =========================== */
#hero {
  padding: 180px 0;
  background: linear-gradient(135deg, #1a2332 0%, #0d121a 100%);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(56,189,248,0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-photo {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.15), 0 0 80px rgba(56, 189, 248, 0.05);
  filter: saturate(0.6) brightness(0.9) contrast(1.1) sepia(0.15) hue-rotate(180deg);
  transition: filter 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.hero-photo:hover {
  filter: saturate(1) brightness(1) contrast(1) sepia(0) hue-rotate(0deg);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.25), 0 0 100px rgba(56, 189, 248, 0.1);
}
/* ===========================
   Project Cards
   =========================== */
.project-card {
  background-color: #2b3e50; /* Matches bootswatch superhero slightly */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4) !important;
}

.project-card .card-img-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  object-fit: cover;
  height: 250px;
}
