/* ================================================
   BilliardsBase — Player Profile Stylesheet
   bb-player-profile.css
   Enqueue on is_singular('player_profile') only.
   ================================================ */

/* ---- GLOBAL WRAPPER ---- */
.bb-home {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: #07100a;
  color: #ddd5c4;
  -webkit-font-smoothing: antialiased;
}

/* ---- CONTAINER ---- */
.bb-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- SECTIONS ---- */
.bb-sec {
  padding: 72px 0;
  background: #07100a;
  border-bottom: 1px solid #22392a;
}

.bb-sec-alt  { background: #0a1a0e; }
.bb-sec-table { background: #07100a; }
.bb-sec-dark  { background: #050e07; }

/* ---- TWO-COLUMN GRID ---- */
.bb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.bb-grid-flip .bb-grid-content { order: 2; }
.bb-grid-flip .bb-grid-visual  { order: 1; }

.bb-grid-visual img {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid #22392a;
  object-fit: cover;
}

/* ---- SECTION TAG LABEL ---- */
.bb-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Arial', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #229950;
  margin-bottom: 14px;
}

/* ---- HEADINGS ---- */
.bb-home h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: #f4efe4;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.bb-home h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #f4efe4;
  line-height: 1.25;
  margin: 0 0 18px;
  letter-spacing: -0.3px;
}

/* ---- BODY COPY ---- */
.bb-body {
  font-size: 16px;
  line-height: 1.80;
  color: #c8bfb0;
  margin: 0 0 18px;
}

.bb-lead {
  font-size: 18px;
  line-height: 1.65;
  color: #a8bfb0;
  margin: 0 0 24px;
}

.bb-microcopy {
  font-size: 13px;
  color: #5e7265;
  margin-top: 14px;
  line-height: 1.5;
}

/* ---- BUTTONS ---- */
.bb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Arial', sans-serif;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.bb-btn:hover { transform: translateY(-2px); text-decoration: none; }

.bb-btn-green {
  background: #229950;
  color: #07100a;
  border-color: #229950;
}
.bb-btn-green:hover { background: #27b05c; border-color: #27b05c; color: #07100a; }

.bb-btn-outline {
  background: transparent;
  color: #229950;
  border-color: rgba(34,153,80,0.55);
}
.bb-btn-outline:hover { background: rgba(34,153,80,0.09); border-color: #229950; color: #229950; }

/* ---- CAREER ACHIEVEMENTS TABLE ---- */
.bb-rtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 24px 0 8px;
  font-family: 'Arial', sans-serif;
}

.bb-rtable thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5e7265;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid #22392a;
  background: #0c1a10;
}

.bb-rtable tbody tr {
  border-bottom: 1px solid #1a2e1f;
  transition: background 0.12s;
}
.bb-rtable tbody tr:last-child { border-bottom: none; }
.bb-rtable tbody tr:hover { background: rgba(34,153,80,0.06); }

.bb-rtable tbody td {
  padding: 13px 16px;
  color: #ddd5c4;
  vertical-align: top;
  line-height: 1.5;
}

.bb-rtable tbody td:first-child {
  font-weight: 700;
  color: #f0c030;
  white-space: nowrap;
  min-width: 58px;
}

/* ---- NEWSLETTER SECTION ---- */
.bb-form-section {
  text-align: center;
}

.bb-form-section h2 {
  margin-bottom: 8px;
}

.bb-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0 0;
}

.bb-form-row input[type="text"],
.bb-form-row input[type="email"] {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  padding: 13px 16px;
  background: #111f16;
  border: 1px solid #22392a;
  border-radius: 6px;
  color: #f4efe4;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.bb-form-row input[type="text"]::placeholder,
.bb-form-row input[type="email"]::placeholder { color: #5e7265; }

.bb-form-row input[type="text"]:focus,
.bb-form-row input[type="email"]:focus { border-color: #229950; }

/* ---- FOOTER BAR ---- */
.bb-footer {
  background: #050e07;
  border-top: 1px solid #22392a;
  text-align: center;
  padding: 22px 28px;
  font-size: 13px;
  font-family: 'Arial', sans-serif;
  color: #5e7265;
}

/* ---- BREADCRUMB BAR ---- */
.bb-breadcrumb-bar {
  background: #07100a;
  border-bottom: 1px solid #22392a;
  padding: 14px 0;
}

.bb-breadcrumb {
  font-size: 13px;
  color: #5e7265;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.bb-breadcrumb a {
  color: #5e7265;
  text-decoration: none;
  transition: color 0.15s;
}

.bb-breadcrumb a:hover { color: #229950; }

.bb-breadcrumb-sep {
  margin: 0 8px;
  color: #2d4d38;
}

.bb-breadcrumb-current { color: #ddd5c4; }

/* ---- PLAYER HERO ---- */
.bb-player-hero {
  padding: 72px 0 60px;
  border-bottom: 1px solid #22392a;
  background-color: #07100a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.bb-player-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(7,16,10,0.92) 0%, rgba(15,25,18,0.74) 55%, rgba(7,16,10,0.92) 100%);
  pointer-events: none;
}

.bb-player-hero > .bb-wrap { position: relative; }

/* ---- PLAYER BADGES ---- */
.bb-player-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.bb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(17, 31, 22, 0.90);
  border: 1px solid #22392a;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #ddd5c4;
  line-height: 1;
  backdrop-filter: blur(4px);
}

.bb-badge-green {
  background: rgba(34, 153, 80, 0.18);
  border-color: rgba(34, 153, 80, 0.50);
  color: #229950;
}

/* ---- STAT STRIP ---- */
.bb-stat-strip {
  display: flex;
  flex-wrap: wrap;
  background: #111f16;
  border: 1px solid #22392a;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 44px;
}

.bb-stat-item {
  flex: 1;
  min-width: 120px;
  padding: 20px 16px;
  border-right: 1px solid #22392a;
  text-align: center;
}

.bb-stat-item:last-child { border-right: none; }

.bb-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5e7265;
  margin-bottom: 7px;
}

.bb-stat-value {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #f4efe4;
  line-height: 1.3;
}

.bb-stat-value-gold { color: #f0c030; }

/* ---- PLAYING STYLE TAGS ---- */
.bb-style-tag {
  display: inline-block;
  background: rgba(34,153,80,0.12);
  border: 1px solid rgba(34,153,80,0.30);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #229950;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 6px 8px 0;
}

/* ---- SIGNATURE MOMENTS ---- */
.bb-moment-list {
  list-style: none;
  margin: 20px 0 28px;
  counter-reset: moment-counter;
}

.bb-moment-list li {
  padding: 16px 0 16px 52px;
  position: relative;
  color: #ddd5c4;
  font-size: 15px;
  border-bottom: 1px solid #22392a;
  line-height: 1.65;
  counter-increment: moment-counter;
}

.bb-moment-list li:last-child { border-bottom: none; }

.bb-moment-list li::before {
  content: counter(moment-counter);
  position: absolute;
  left: 0;
  top: 14px;
  width: 30px;
  height: 30px;
  background: #229950;
  color: #07100a;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-moment-list li strong {
  color: #f4efe4;
  display: block;
  margin-bottom: 4px;
}

/* ---- EQUIPMENT PANEL ---- */
.bb-equipment-panel {
  background: #0c1a10;
  border: 1px solid #22392a;
  border-radius: 10px;
  padding: 26px 28px;
  margin: 18px 0 22px;
}

.bb-equipment-panel h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5e7265;
  margin-bottom: 18px;
}

.bb-equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px 24px;
  margin-bottom: 16px;
}

.bb-equipment-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5e7265;
  margin-bottom: 4px;
}

.bb-equipment-val {
  font-size: 15px;
  color: #ddd5c4;
  font-weight: 500;
}

/* ---- RELATED PLAYER CARDS ---- */
.bb-player-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.bb-player-card {
  background: #192b1e;
  border: 1px solid #22392a;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}

.bb-player-card:hover {
  border-color: #229950;
  transform: translateY(-2px);
}

.bb-player-card-thumb {
  width: 100%;
  height: 150px;
  background: #22392a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}

.bb-player-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.bb-player-card-body { padding: 14px 16px; }

.bb-player-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #f4efe4;
  margin-bottom: 3px;
  display: block;
}

.bb-player-card-meta {
  font-size: 12px;
  color: #5e7265;
  display: block;
}

/* ---- LAST UPDATED NOTE ---- */
.bb-last-updated {
  display: inline-block;
  font-size: 12px;
  color: #5e7265;
  margin-top: 14px;
  padding: 4px 10px;
  background: #111f16;
  border: 1px solid #22392a;
  border-radius: 4px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 820px) {
  .bb-sec { padding: 48px 0; }

  .bb-player-hero { padding: 56px 0 44px; }

  /* Stack the two-column grid on mobile */
  .bb-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bb-grid-flip .bb-grid-content { order: 1; }
  .bb-grid-flip .bb-grid-visual  { order: 2; }

  .bb-stat-item {
    flex: 0 0 50%;
    border-right: none;
    border-bottom: 1px solid #22392a;
  }

  .bb-stat-item:nth-child(odd)  { border-right: 1px solid #22392a; }
  .bb-stat-item:last-child      { border-bottom: none; }
  .bb-stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  .bb-moment-list li { padding-left: 44px; }

  .bb-equipment-panel { padding: 20px 18px; }

  .bb-player-card-grid { grid-template-columns: repeat(2, 1fr); }

  /* Table: allow horizontal scroll on small screens */
  .bb-rtable { font-size: 13px; }
  .bb-rtable thead th,
  .bb-rtable tbody td { padding: 10px 10px; }

  /* Form */
  .bb-form-row { flex-direction: column; align-items: center; }
  .bb-form-row input[type="text"],
  .bb-form-row input[type="email"] { max-width: 100%; width: 100%; }
}
