/* Action Dart League public theme - Coming Soon inspired */

/* CSS variables */
:root {
  --adl-blue: #003399;
  --adl-dark: #001a4d;
  --adl-silver: #e0e0e0;
  --adl-grey: #2a2a2a;
}

/* Public body wrapper */
body.adl-public {
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #0f172a;
  background-image:
    radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(339,49%,30%,0) 0, transparent 50%);
  color: #f9fafb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Outer dartboard rings like Coming Soon page
   (centered on the viewport) */
body.adl-public::before,
body.adl-public::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body.adl-public::before {
  width: 150vw;
  height: 150vw;
  border: 40px solid rgba(255, 255, 255, 0.04);
}

body.adl-public::after {
  width: 100vw;
  height: 100vw;
  border: 40px solid rgba(255, 255, 255, 0.04);
}

/* Page content container so footer can stick */
.adl-page-container {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

/* Navbar */
.adl-navbar {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  position: relative;
  z-index: 2;
}

.adl-navbar .navbar-brand {
  font-family: 'Teko', 'Roboto', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.adl-navbar .nav-link {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  color: #e5e7eb !important;
}

.adl-navbar .nav-link.active,
.adl-navbar .nav-link:hover {
  color: #60a5fa !important;
}

/* Glassy panels and cards */
.glass-panel,
.adl-card {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 0.75rem;
}

/* Hero heading style */
.adl-heading {
  font-family: 'Teko', 'Roboto', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metallic-text {
  background: linear-gradient(to bottom, #ffffff 0%, #a0a0a0 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.3);
}

/* Hero title size */
.adl-hero-title {
  font-size: clamp(2.2rem, 3vw, 3rem);
}

/* Top 25 tabs */
#top25Tabs .nav-link {
  border-radius: 999px;
  padding-inline: 0.9rem;
  padding-block: 0.25rem;
  font-size: 0.8rem;
}

#top25Tabs .nav-link.active {
  background-color: #f9fafb;
  color: #111827;
}

/* Tables on dark background */
.table-dark {
  --bs-table-bg: rgba(15, 23, 42, 0.95);
  --bs-table-striped-bg: rgba(30, 41, 59, 0.9);
  --bs-table-hover-bg: rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
}

/* Scrolling table wrapper */
.table-scroll {
  max-height: 300px;
  overflow-y: auto;
}

.table-scroll thead th {
  position: sticky;
  top: 0;
  background: #020617;
  color: #e5e7eb;
  z-index: 2;
}

/* Make card titles readable on dark glass cards */
.adl-card .card-title {
  color: #e5e7eb;
}

/* Footer */
.adl-footer {
  position: relative;
  z-index: 2;
  background: transparent;
}

/* ----------------------------------------------------
   CARD LINK HOVER – Schedules / Team Standings / Player Search
---------------------------------------------------- */
.adl-card:hover {
    border-color: rgba(96, 165, 250, 0.7) !important; /* blue-400 border */
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.35);
}

.adl-card:hover .card-title,
.adl-card:hover .card-text {
    color: #60a5fa !important; /* blue-400 */
}

a:hover .adl-card {
    cursor: pointer;
}

/* ----------------------------------------------------
   FACEBOOK ICON HOVER – Match Coming Soon Page
---------------------------------------------------- */
.adl-footer a:hover svg {
    color: #60a5fa !important;  /* blue-400 */
    fill: #60a5fa !important;
}

.adl-footer a:hover {
    color: #60a5fa !important;
}

.adl-logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}

/* Wrap logo + text so we can nudge the text under the right side of the A */
.hero-logo-wrap {
  position: relative;
}

/* Main welcome line – pull it up and to the right on desktop */
.adl-hero-line {
  position: relative;
  margin-top: -8px;   /* move text closer up under the logo */
  margin-left: 70px;  /* start after the left wing / left side of A */
}

/* Active Season line – align under the welcome line */
.adl-hero-subline {
  position: relative;
  margin-top: -8px;
  margin-left: 110px;
}

/* On small screens, stack normally so it doesn’t look cramped */
@media (max-width: 767.98px) {
  .adl-hero-line,
  .adl-hero-subline {
    margin-top: 0;
    margin-left: 0;
  }
}

/* =========================================
   PLAYER SEARCH & PROFILE (DARK THEME FIXED)
   ========================================= */

/* --- Containers (Dark Glass) --- */
.adl-content-box,
.profile-card,
.adl-search-container {
    background-color: rgba(33, 37, 41, 0.95) !important; /* Dark Background */
    color: #ffffff !important;
    border: 1px solid #495057;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

/* --- Search List Items --- */
.custom-list-item {
    background-color: #212529 !important; /* Very Dark Grey */
    border: 1px solid #495057;
    color: #e9ecef !important;            /* White Text */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    margin-bottom: -1px;
    transition: all 0.2s;
}

.custom-list-item:hover {
    background-color: #2c3034 !important; /* Slightly lighter on hover */
    border-color: #60a5fa;                /* Blue Border */
    color: #ffffff !important;
    cursor: pointer;
}

/* --- Text Highlights --- */
.player-name-new {
    color: #00d27a !important; /* Green */
    font-weight: 800 !important;
    text-transform: uppercase;
}

.player-name-normal {
    color: #ffffff !important;
    font-weight: 600;
}

.badge-new {
    background-color: #00d27a !important;
    color: #000;
    font-weight: bold;
    font-size: 0.7em;
    vertical-align: middle;
    margin-left: 0.5rem;
    padding: 2px 6px;
    border-radius: 4px;
}

/* --- Badges --- */
.rating-badge-search {
    background-color: #343a40;
    color: #fff;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    min-width: 45px;
    text-align: center;
    border: 1px solid #6c757d;
}

/* --- Profile Page Styles --- */
.profile-header {
    border-bottom: 1px solid #495057;
    padding-bottom: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.profile-stat-box {
    background-color: #212529 !important;
    border: 1px solid #495057;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.stat-label {
    color: #adb5bd !important; /* Light Grey Label */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 0;
    font-family: 'Teko', sans-serif; 
}

/* Rating Box on Profile */
.profile-rating-box {
    background-color: #343a40;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #6c757d;
    text-align: center;
    min-width: 80px;
}

.profile-rating-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #adb5bd;
    display: block;
    margin-bottom: 2px;
}

.profile-rating-value {
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1;
    color: #ffffff;
}

    /* Reduce row height */
    .standings-table td {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        line-height: 1.1rem !important;
    }

    /* Keep medal icons normal size */
    .rank-medal {
        font-size: 1.3rem;   /* adjust if needed */
        line-height: 1rem !important;
        display: inline-block;
        vertical-align: middle;
    }

    /* Remove border line above tfoot row */
/* Remove lines */
table tfoot td {
    border: 0 !important;
    padding: 0 !important;

    height: 48px !important;         /* Same height as your table body rows */
    line-height: 48px !important;    /* Forces vertical middle */
    vertical-align: middle !important;
    text-align: center !important;

    display: table-cell !important;  /* Prevents flex/inline issues */
}
/* Force TRUE vertical centering */
.table > tfoot > tr > td,
.table tfoot td {
    vertical-align: middle !important;
    height: 100% !important;
    line-height: normal !important;
    text-align: center !important;
    padding: 0 !important;
}

.card-body.p-0 {
    padding-bottom: 0 !important;
}

.card-body .table tfoot tr td {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.sponsored-ad-image {
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
    display: block;
    filter: drop-shadow(0px 0px 6px rgba(0,0,0,0.6));
}

.sponsored-ad-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.sponsored-ad-text {
    opacity: 0.9;
    color: #ccc;
}

.sponsored-ad-card {
    padding: .5rem 1rem 1rem 1rem;
}

.sponsored-ad-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    height: 100%;
    padding: 1rem;
}

.sponsored-ad-image {
    max-width: 260px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 0px 6px rgba(0,0,0,0.6));
}

.sponsored-ad-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 10px;
    text-align: center;
}

.sponsored-ad-image {
    max-width: 260px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.6));
}

.sponsored-ad-text {
    color: #ccc;
    font-size: 0.95rem;
    margin-top: 8px;
}

/* Fade animations */
/* Ads Slideshow Transitions */
.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#sponsoredAdWrapper {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Layout / image rules */
.sponsored-ad-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 10px;
    text-align: center;
}

.sponsored-ad-image {
    max-width: 260px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.6));
}

.sponsored-ad-text {
    color: #ccc;
    font-size: 0.95rem;
    margin-top: 8px;
}

.adl-ad-title {
    color: #ffffff !important;
}