
/*index.css 260904

/* =========================================================
   BASE WRAPPER
   ========================================================= */

.analysisHome {
    box-sizing: border-box;
    margin: auto;
    padding-bottom: 140px;
    width: min(1500px, 99%);
}

.analysisHome * {
    box-sizing: border-box;
}

/* =========================================================
   BRAND / HERO
   ========================================================= */

.hero {
    align-items: center;
    background: white;
    border-radius: 10px;
    display: flex;
    padding: 20px;
}

.heroContent {
    display: flex;
    flex-direction: column;
}

.row1 {
    margin-bottom: 20px;
}



.heroTag,
.contentLabel {
    color: #ff6600;
    font-size: .8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero h1 span {
    color: #ff6600;
}

.heroLinks {
    display: flex;
    gap: 20px;
}

.heroLink {
    border: 1px solid grey;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    text-decoration: none;
    transition: .3s;
    width: 230px;
    margin-right: 5px;
}

.heroLink:hover {
    border-color: #f60;
    transform: translateY(-5px);
}

.heroLink h3 {
    font-size: 1.3rem;
    margin: 0 0 12px;
}

.heroLink p {
    color: #aaa;
    font-size: .95rem;
    line-height: 1.4;
    margin: 0;
}

.row3 {
	display: flex;
}

/* Data overview cards */

.row2 {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 50px;
    margin-bottom: 40px;
}

.row2Content {
    max-width: 700px;
}

.row2 h1 {
    font-size: 4rem;
    line-height: .95;
    margin: 0;
    max-width: 700px;
    margin: 0 0 15px;
}

.row2 p {
	margin: 0;
    margin-top: 10px;
    max-width: 400px;
}

.indexDataOverview {
    display: grid;
    grid-template-columns: repeat(2, 120px);
    gap: 8px;
    margin: 10px 0;
}

.indexDataOverviewCard {
    align-items: flex-end;
    background: #fff;
    border: 1px solid #dfe3e6;
    border-radius: 10px;
    display: flex;
    min-height: 75px;
    overflow: hidden;
    padding: 12px;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}

.indexDataOverviewCard:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    border: 1px solid #ff6600;
}

.indexDataOverviewNumber {
    position: absolute;
    top: 4px;
    right: 6px;
    color: #e8eaec;
    font-family: "Anton", sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.indexDataOverviewContent {
    position: relative;
    z-index: 1;
}

.indexDataOverviewTitle {
    color: #003366;
    font-family: "Anton", sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .03em;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.indexDataOverviewValue {
    color: #ff6600;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}



/* =========================================================
   EXISTING BRAND ELEMENTS
   ========================================================= */

.heroImage {
    width: 50px;
}

.heroBrand {
    font-family: "Inter", sans-serif;
    font-size: 4.2rem;
    font-weight: 900;
    letter-spacing: -3px;
    padding-left: 5px;
    text-align: center;
}

.heroTagline {
    color: #aaa;
    font-family: "Source Serif 4", serif;
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-left: 20px;
    margin-top: 10px;
}

.tagLine {
    background: white;
    border-radius: 10px;
    display: flex;
    padding: 10px;
    margin-bottom: 10px
}

/* =========================================================
   RESULTS TICKER
   ========================================================= */

.results-bar-container {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
    margin-top: 65px;
  	margin-bottom: 5px;
}

.results-bar-scroll {
    overflow: hidden;
    width: 100%;
}

.rbTrack {
    animation: resultsTicker 45s linear infinite;
    display: flex;
    width: max-content;
}

.rbItem {
    align-items: center;
    background: #f7f7f7;
    border-right: 1px solid #ddd;
    color: #555;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 42px;
    padding: 3px 12px;
    text-decoration: none;
}

.rbItem:hover {
    background: #eee;
    color: #222;
}

.rbTeams {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.rbTeam {
    align-items: center;
    display: grid;
    gap: 4px;
    grid-template-columns: 16px 30px 16px;
    line-height: 1;
}

.rbCrest {
    height: 15px;
    object-fit: contain;
    width: 15px;
}

.rbAbbr {
    color: #3f3f3f;
    font-size: .65rem;
    letter-spacing: .3px;
}

.rbScore {
    color: #444;
    font-size: .7rem;
    text-align: right;
}

.rbCompetition {
    height: 22px;
    margin-left: 3px;
    object-fit: contain;
    width: 22px;
}

.rbDate {
    flex: 0 0 auto;
}

.rbDateSVG {
    display: block;
    height: 32px;
    width: 32px;
}

.rbDateSVG .dateSVGmonth {
    font-size: 90px;
    fill: white;
}

.rbDateSVG .dateSVGday {
    font-size: 170px;
    fill: #3f3f3f;
}

.rbDateSVG .dateSVGweekday {
    font-size: 90px;
    fill: #3f3f3f;
}



@keyframes resultsTicker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* =========================================================
   MAIN GRID
   ========================================================= */

.dashboard {
    align-items: start;
    display: grid;
    gap: 15px;
    grid-template-columns: 250px 1fr 250px;
    margin-bottom: 230px;
}

/* =========================================================
   SIDE RAILS
   ========================================================= */

.sideRail {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.railHeading {
    background: #003366;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 12px 15px;
    text-transform: uppercase;
    width: 100%;
    border-radius: 10px;
}

.leftRail .bsCardWrapper,
.rightRail .bsCardWrapper {
    align-items: center;
    display: flex;
    flex-direction: column;
}

.leftRail .bsCardWrapper .cardHeader,
.rightRail .bsCardWrapper .cardHeader {
    width: 100%;
}

/* =========================================================
   GENERIC LIVE CARD
   ========================================================= */

.liveCard {
    border: 2px solid #222;
    min-height: 145px;
    padding: 15px;
}

.liveCard h3 {
    font-size: 18px;
    margin: 0 0 8px;
}

.liveCard p {
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 10px;
}

.cardLabel {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cardMeta {
    color: #555;
    font-size: 11px;
}

.cardValue {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

/* =========================================================
   CENTRE COLUMN
   ========================================================= */

.mainColumn {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* =========================================================
   FEATURED DISCOVERY
   ========================================================= */

.featuredDiscovery {
    border: 1px solid #ff6600;
    padding: 10px;
    border-radius: 10px;
    background: white;
}

.featuredDiscovery h2 {
    font-size: 32px;
    line-height: 1.1;
    margin: 10px 0;
}

.featuredDiscovery p {
    line-height: 1.5;
}

.featuredImage {
    align-items: center;
    background: #7899b0;
    display: flex;
    font-weight: 700;
    height: 230px;
    justify-content: center;
    margin-bottom: 20px;
}



.readLink {
    font-weight: 700;
}

/* =========================================================
   INSIGHT
   ========================================================= */

.insightCard {
    border: 1px solid #ff6600;
    padding: 10px;
    border-radius: 10px;
    background: white;
}

.insightCard h2 {
    font-size: 27px;
    line-height: 1.15;
    margin: 10px 0;
}

/* =========================================================
   DATA WORTH SEEING
   ========================================================= */

.dataCard {
    border: 1px solid #ff6600;
    padding: 10px;
    border-radius: 10px;
    background: white;
}

.dataCard h2 {
    margin-top: 0;
}

.chartHolder {
    align-items: center;
    background: white;
    border-radius: 8px;
    display: flex;
    min-height: 650px;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.articleLink {
	text-align: right;
}

#conversionScatter {
    height: 100%;
    position: relative;
    width: 100%;
}

.chartHolder {
    position: relative;
}

.chartClubSelector {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    z-index: 20;
}

.chartClubSelector input {
    width: 200px;
}


/* =========================================================
   LATEST DISCOVERIES
   ========================================================= */

.latest {
    background: #eee;
    border: 2px solid #222;
    padding: 20px;
}

.latestHeading {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.latestHeading h2 {
    margin: 0;
}

.discoveryRow {
    border-top: 1px solid #999;
    padding: 15px 0;
}

.discoveryRow:first-of-type {
    border-top: 0;
}

.discoveryRow h3 {
    font-size: 19px;
    margin: 5px 0;
}

.discoveryRow p {
    font-size: 13px;
    margin: 0;
}

.discoveryType {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* =========================================================
   DATABASE BAR
   ========================================================= */

.databaseBar {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 15px;
}

.databaseCard {
    border: 2px solid #222;
    color: #222;
    font-weight: 700;
    padding: 20px;
    text-align: center;
    text-decoration: none;
}

.databaseCard h3 {
    margin: 0 0 8px;
}

.databaseCard p {
    font-size: 12px;
    font-weight: 400;
    margin: 0;
}

/* =========================================================
   FEATURE CARDS / PILLARS / STORIES
   ========================================================= */

.featureCard {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 1fr;
    margin: 40px 0;
}

.featureImage {
    background: white;
    min-height: 400px;
}

.featureText {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featureText h2 {
    font-size: 2.5rem;
    margin: 20px 0;
}

.sectionTitle {
    color: #ff6600;
    font-size: .8rem;
    text-transform: uppercase;
}

.pillars {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(3, 1fr);
    margin: 40px 0;
}

.pillar {
    background: white;
    border-radius: 8px;
    padding: 40px;
}

.insight {
    background: white;
    border-left: 5px solid #ff6600;
    margin: 40px 0;
    padding: 40px;
}

.insightHeader {
    color: #ff6600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cardGrid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.storyCard {
    background: white;
    border-radius: 8px;
    height: 320px;
}

.visualisation {
    margin: 40px 0;
}

.explore {
    margin: 40px 0;
}

.exploreGrid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(4, 1fr);
}

.exploreGrid a {
    background: white;
    color: #003366;
    padding: 40px;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
}

.exploreGrid a:hover {
    background: #003366;
    color: #ff6600;
}

/* =========================================================
   ANALYSIS LIST
   ========================================================= */

.latestAnalysis {
    margin: 40px 0;
}

.sectionHeading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.sectionHeading h2 {
    font-size: 3rem;
    font-weight: 700;
}

.sectionHeading a {
    color: #999;
    text-decoration: none;
}

.analysisRow {
    border-top: 1px solid #262626;
    display: grid;
    gap: 40px;
    grid-template-columns: 90px 1fr;
    padding: 35px 0;
    transition: .3s;
}

.analysisRow:hover {
    padding-left: 25px;
}

.analysisRow.featured {
    border: none;
    grid-template-columns: 480px 1fr;
    margin-bottom: 50px;
}

.analysisImage {
    aspect-ratio: 16/10;
    background: #222;
}

.analysisText {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.analysisText h3 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0;
}

.analysisRow:not(.featured) h3 {
    font-size: 1.45rem;
}

.analysisText p {
    color: #999;
    margin: 20px 0;
    max-width: 700px;
}

.analysisMeta {
    color: #777;
    display: flex;
    font-size: .9rem;
    gap: 15px;
}

.analysisNumber {
    color: #333;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.analysisType {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.player { color: #00b7c7; }
.coach { color: #d6a72a; }
.referee { color: #d35a5a; }



/* =========================================================
   IMAGE CLUSTER
   ========================================================= */

.featuredImage {
    align-items: center;
    background: #ff6600;
    display: flex;
    height: 230px;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.playerStack {
    align-items: center;
    display: flex;
    justify-content: center;
    width: 100%;
}

.playerAvatar {
    align-items: center;
    aspect-ratio: 1;
    background: white;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    height: auto;
    justify-content: center;
    margin-left: -5%;
    overflow: visible;
    padding: 0;
    position: relative;
    transition: transform .25s ease, margin .25s ease;
    width: 20%;
}

.playerAvatar:first-child {
    margin-left: 0;
}

.playerAvatar img {
    border-radius: 50%;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.playerAvatar:hover {
    margin-left: 2%;
    margin-right: 2%;
    transform: scale(1.35);
    z-index: 100;
}

.playerAvatar.isLeft {
    transform: translateX(-8px);
}

.playerAvatar.isRight {
    transform: translateX(8px);
}

/* ---------------------------------------------------------
   PLAYER NAME
   --------------------------------------------------------- */

.featuredPlayerName {
    background: white;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,.2);
    color: #222;
    font-size: 2em;
    font-weight: 700;
    left: 50%;
    opacity: 0;
    padding: 6px 12px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity .2s ease;
    white-space: nowrap;
    z-index: 200;
}

.featuredPlayerName.visible {
    opacity: 1;
}

/* ---------------------------------------------------------
   STACKING ORDER
   --------------------------------------------------------- */

.playerAvatar:nth-child(1) { z-index: 10; }
.playerAvatar:nth-child(2) { z-index: 9; }
.playerAvatar:nth-child(3) { z-index: 8; }
.playerAvatar:nth-child(4) { z-index: 7; }
.playerAvatar:nth-child(5) { z-index: 6; }
.playerAvatar:nth-child(6) { z-index: 5; }
.playerAvatar:nth-child(7) { z-index: 4; }
.playerAvatar:nth-child(8) { z-index: 3; }
.playerAvatar:nth-child(9) { z-index: 2; }
.playerAvatar:nth-child(10) { z-index: 1; }



/* =========================================================
   MOBILE QUERIES
   ========================================================= */

@media (max-width: 1100px) {
    .dashboard {
        grid-template-columns: 250px minmax(300px, 1fr) 250px;
    }
}

@media (max-width: 850px) {
    .dashboard {
        grid-template-columns: 1fr 1fr;
    }

    .mainColumn {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .leftRail {
        grid-column: 1;
        grid-row: 2;
    }

    .rightRail {
        grid-column: 2;
        grid-row: 2;
    }

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

@media (max-width: 600px) {
    .hero {
        padding: 30px 20px;
    }

    .dashboard {
        display: flex;
        flex-direction: column;
    }

    .mainColumn {
        order: 1;
        width: 100%;
    }

    .leftRail {
        order: 2;
        width: 100%;
    }

    .rightRail {
        order: 3;
        width: 100%;
    }

    .databaseBar {
        grid-template-columns: 1fr;
    }
}
