/* Global Variables */
:root {
    --blue-mc: #1E69B2;
    --grey-mc-text: #6B7280;
    --black-mc-text: #1F2937;
    --ff-primary: 'Noto Serif', serif;
    --ff-secondary: 'Cabin', sans-serif;
}
/* Normalize Font Family */
.metric-card h1,
.metric-card h2,
.metric-card h3,
.metric-card h4,
.metric-card h5,
.metric-card h6 {
    font-family: var(--ff-primary);
}

.metric-card p,
.metric-card span {
    font-family: var(--ff-secondary);
}

/* Section */

.section-wrapper.two-col {
    display: grid;
    grid-template-columns: repeat( 2, 1fr );
    gap: 30px;
}

.section-wrapper.two-col .metric-card-wrapper {
    grid-template-columns: 1fr;
}

.section-wrapper .section-title,
.section .section-title {
    font-weight: 700;
    font-family: var(--ff-secondary) !important;
    padding: 12px;
    background-color: var(--blue-mc);
    display: inline-block;
    font-size: 18px;
    color: #fff;
    border-radius: 8px;
    margin-top: 0;
    margin-bottom: 20px;
}

.section-wrapper {
   margin-top: 45px; 
}

/* Metric Card */
.metric-card-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.metric-card-wrapper.horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    row-gap: 12px;
    column-gap: 30px;
}

@media screen and (max-width: 820px){
    .metric-card-wrapper.horizontal,
    .section-wrapper.two-col {
        grid-template-columns: repeat(1, 1fr);
        grid-auto-flow: row;
    }
    
    .section-wrapper.table {
        overflow: hidden;
        overflow-x: scroll;  
    }
}

.metric-card-wrapper.web-performance,
.metric-card-wrapper.google-search-performance {
    margin-top: 35px;
}

.metric-card {
    display: flex;
    flex-direction: column;
    gap:20px;
    padding: 40px;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.15);
}

.metric-card h2,
.metric-card span {
    margin: 0;
    word-break: break-word;
}

.metric-card span {
    font-size: 13px;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--grey-mc-text);
}

.metric-card h2 {
    font-size: 50px !important;
    font-weight: 700 !important;
    color: var(--blue-mc);
    margin-top: auto;
}

.metric-card .metric-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-secondary);
    font-size: 16px;
    font-weight: 700;
    width: 35px;
    height: 35px;
    border-radius: 100%;
    background-color: var(--blue-mc);
    color: #fff;
    letter-spacing: 0;
    line-height: 1;
}

.metric-card.google-search-top-queries .metric-center {
    flex: 1;
}

.metric-description {
    font-size: 14px;
    margin-bottom: -25px;
    display: block;
    color: var(--grey-mc-text);
}

.horizontal .metric-card {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.horizontal .metric-card span {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: unset;
}

.horizontal .metric-card .metric-label {
    display: block;
    font-family: var(--ff-secondary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: normal;
    color: var(--black-mc-text);
    text-align: left;
    text-transform: lowercase;
}

.horizontal .metric-card .metric-percentage {
    font-size: 13px;
    font-weight: 400;
    font-family: var(--ff-secondary);
    text-transform: lowercase;
}

.horizontal .metric-card .metric-center {
    flex: 1;
    text-align: left;
    margin-bottom: -10px;
}

.horizontal .metric-card .metric-values {
    margin-left: auto;
}

.horizontal .metric-card h4 {
    margin: 0;
    font-family: var(--ff-secondary);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: var(--blue-mc);
}

/* AI Summary*/
.ai-summary {
    padding: 24px 32px;
    background-color: var(--blue-mc);
    border-radius: 12px;
    background: linear-gradient(90deg, #D5ECFF 0%, #95CAEF 100%);
    border-left: 4px solid var(--blue-mc);
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.data-table thead {
  background: var(--blue-mc);
  color: #fff;
}
.data-table th {
    border: 0 !important;
    padding: 18px 15px;
    font-family: var(--ff-secondary);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.data-table td {
  padding: 15px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  border: none !important;
}
table.data-table tbody>tr:nth-child(odd)>td, 
table tbody>tr:nth-child(odd)>th {
    border: none;
    background: transparent;
}
.data-table tbody tr:not(:last-child) {
    border-bottom: 1px solid #E5E7EB;
}
.data-table tbody tr:hover { 
    background: #f9fafb; 
}
.data-table tbody tr:last-child td { border-bottom: none; }
.mom-positive,
.yoy-positive { 
    color: var(--blue-mc); 
    font-weight: 700; 
}
.mom-negative,
.yoy-negative { 
    color: var(--grey-mc-text); 
    font-weight: 700; 
}
.mom-neutral,
.yoy-neutral { 
    color: var(--grey-mc-text);
    font-weight: 700; 
}
.list-item {
  background: white;
  border: 2px solid #e5e7eb;
  padding: 20px 25px;
  margin: 12px 0;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

/* Chart */
.chart-container {
    position: relative;
    height: 500px;
    margin: 35px 0;
    padding: 30px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ANIMATION */
/* Generic animation class - hidden by default */
body.single-client .animation {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Fade In */
body.single-client .animation.fade-in {
    opacity: 0;
}

body.single-client .animation.fade-in.animated {
    opacity: 1;
}

/* Fade In Up */
body.single-client .animation.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

body.single-client .animation.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Slide Up */
body.single-client .animation.slide-up {
    transform: translateY(30px);
}

body.single-client .animation.slide-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Scale */
body.single-client .animation.scale {
    transform: scale(0.8);
}

body.single-client .animation.scale.animated {
    opacity: 1;
    transform: scale(1);
}