/* Social Media Shortcode Styles */

.top-performers-social {
    width: 1350px;
    height: 1350px;
    background-color: #16b7eb;
    border: 10px solid black;
    position: relative;
    font-family: 'Roboto', sans-serif;
    color: white;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* Header Styles */
.social-header {
    text-align: center;
    padding: 15px 0;
    border-bottom: 3px solid white;
    margin-bottom: 20px;
}

.social-header h1 {
    font-size: 42px;
    margin: 0;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
}

.social-header .date {
    font-size: 20px;
    margin: 8px 0 0 0;
    font-weight: 300;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 18px;
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
    height: 1050px;
}

/* Make the last card span both columns to center it */
.stats-grid .stat-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 550px;
    margin: 0 auto;
}

/* Stat Cards */
.stat-card {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card:hover {
    transform: scale(1.02);
}

.stat-card .category {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #16b7eb;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Top Performer Styles */
.top-performer {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
}

.top-performer .value {
    font-size: 42px;
    font-weight: 900;
    margin: 5px 0;
    line-height: 1.1;
}

.top-performer .player {
    font-size: 22px;
    margin: 5px 0;
    font-weight: 500;
}

.top-performer .team-name {
    font-size: 16px;
    margin: 3px 0;
    font-weight: 400;
    color: #16b7eb;
}

.league-logo-corner {
    position: absolute;
    bottom: 0;
    right: 0;
}

.league-logo-corner .league-logo {
    width: 30px;
    height: 30px;
}

/* Other Results Styles */
.other-results {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 8px;
    margin-top: 8px;
}

.other-result {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 8px;
    align-items: center;
    margin: 3px 0;
    font-size: 11px;
}

.other-value {
    font-weight: bold;
    font-size: 12px;
}

.other-player {
    font-size: 11px;
    text-align: left;
}

.other-team {
    font-size: 10px;
    color: #16b7eb;
    text-align: right;
}

.other-league-logo {
    display: flex;
    justify-content: flex-end;
}

.league-logo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    background-color: white;
}

.league-text {
    font-size: 12px;
    color: #16b7eb;
    font-weight: 300;
    padding: 4px 8px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 12px;
}

/* Small logos for other results */
.other-league-logo .league-logo-small {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid white;
    background-color: white;
}

.other-league-logo .league-text-small {
    font-size: 9px;
    color: #16b7eb;
    font-weight: 300;
    padding: 2px 5px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
}

/* Footer */
.social-footer {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 15px;
}

.social-footer img {
    height: 50px;
    margin-bottom: 8px;
    filter: brightness(0) invert(1); /* Makes the logo white */
}

.social-footer .social-handle {
    font-size: 18px;
    color: white;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 1350px) {
    .top-performers-social {
        transform: scale(0.8);
        transform-origin: top left;
    }
}

/* Additional Visual Elements */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #16b7eb;
    border-radius: 3px 3px 0 0;
}

/* Category-specific colors */
.stat-card[data-category="Distance"] .category { color: #ff6b6b; }
.stat-card[data-category="Exit Speed"] .category { color: #4ecdc4; }
.stat-card[data-category="Release Speed"] .category { color: #45b7d1; }
.stat-card[data-category="Spin Rate (Overall)"] .category { color: #96ceb4; }
.stat-card[data-category="Spin Rate Fastball"] .category { color: #ffeead; } 