/**
 * Buffalo eXtreme Manager - Frontend Styles
 * Namespace: be-
 */

/* ==========================================================================
   Roster Grid
   ========================================================================== */

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

@media (max-width: 1024px) {
    .be-roster {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .be-roster {
        grid-template-columns: 1fr;
    }
}

.be-roster-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.be-roster-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.be-roster-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.be-roster-card-photo {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    background: #f3f4f6;
    overflow: hidden;
}

.be-roster-card-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.be-roster-card-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.be-roster-card-jersey {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.be-roster-card-info {
    padding: 20px;
    text-align: center;
}

.be-roster-card-number {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.be-roster-card-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.be-roster-card-firstname {
    display: block;
    font-weight: 400;
    font-size: 16px;
    color: #6b7280;
}

.be-roster-card-lastname {
    display: block;
    font-weight: 700;
    font-size: 24px;
    color: #111827;
}

.be-roster-card-position {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.be-roster-card-stats {
    font-size: 14px;
    color: #6b7280;
}

.be-roster-card-sep {
    margin: 0 8px;
}

/* ==========================================================================
   Schedule List
   ========================================================================== */

.be-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.be-schedule-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 24px;
    align-items: center;
}

@media (max-width: 768px) {
    .be-schedule-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.be-schedule-card-final {
    border-left: 4px solid #10b981;
}

.be-schedule-card-upcoming {
    border-left: 4px solid #3b82f6;
}

.be-schedule-card-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.be-schedule-card-dow {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.be-schedule-card-date-text {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.be-schedule-card-time {
    font-size: 14px;
    color: #6b7280;
}

.be-schedule-card-matchup {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.be-schedule-card-vs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.be-schedule-card-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.be-schedule-card-opponent {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.be-schedule-card-location {
    font-size: 14px;
    color: #6b7280;
}

.be-schedule-card-sep {
    margin: 0 8px;
}

.be-schedule-card-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    border-left: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .be-schedule-card-score {
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding: 16px 0 0 0;
        align-items: flex-start;
    }
}

.be-schedule-card-score-label {
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.be-schedule-card-score-numbers {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.be-schedule-card-score-win {
    color: #10b981;
}

.be-schedule-card-score-sep {
    font-size: 24px;
    color: #d1d5db;
}

.be-schedule-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 768px) {
    .be-schedule-card-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.be-schedule-card-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.be-schedule-card-btn-tickets {
    background: #3b82f6;
    color: #fff;
}

.be-schedule-card-btn-tickets:hover {
    background: #2563eb;
    color: #fff;
}

.be-schedule-card-btn-video {
    background: #ef4444;
    color: #fff;
}

.be-schedule-card-btn-video:hover {
    background: #dc2626;
    color: #fff;
}

.be-schedule-card-btn-details {
    background: #f3f4f6;
    color: #111827;
}

.be-schedule-card-btn-details:hover {
    background: #e5e7eb;
    color: #111827;
}

/* ==========================================================================
   Schedule Calendar
   ========================================================================== */

.be-schedule-calendar {
    margin: 30px 0;
}

.be-calendar-month {
    margin-bottom: 40px;
}

.be-calendar-month-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #111827;
}

.be-calendar-grid {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.be-calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.be-calendar-day-name {
    padding: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.be-calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.be-calendar-day {
    min-height: 100px;
    border: 1px solid #e5e7eb;
    padding: 8px;
    background: #fff;
}

.be-calendar-day-empty {
    background: #f9fafb;
}

.be-calendar-day-has-games {
    background: #eff6ff;
}

.be-calendar-day-number {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.be-calendar-day-games {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.be-calendar-game {
    display: block;
    padding: 6px;
    background: #3b82f6;
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.be-calendar-game:hover {
    background: #2563eb;
    color: #fff;
}

.be-calendar-game-teams {
    font-weight: 600;
    line-height: 1.3;
}

.be-calendar-game-time {
    font-size: 10px;
    opacity: 0.9;
    margin-top: 2px;
}

/* ==========================================================================
   Stats Table
   ========================================================================== */

.be-stats-table-wrapper {
    margin: 30px 0;
    overflow-x: auto;
}

.be-stats-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.be-stats-table thead {
    background: #f3f4f6;
}

.be-stats-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.be-stats-table th:hover {
    background: #e5e7eb;
}

.be-stats-table th[data-sort-direction="asc"]::after {
    content: " ▲";
}

.be-stats-table th[data-sort-direction="desc"]::after {
    content: " ▼";
}

.be-stats-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
}

.be-stats-table tbody tr:hover {
    background: #f9fafb;
}

.be-stats-table tbody tr:last-child td {
    border-bottom: none;
}

.be-stats-table a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.be-stats-table a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Single Game Template
   ========================================================================== */

.be-single-game-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.be-single-game-header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 40px;
}

.be-single-game-season {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.be-single-game-matchup {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .be-single-game-matchup {
        flex-direction: column;
        gap: 20px;
    }
}

.be-single-game-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.be-single-game-team-buffalo {
    order: -1;
}

.be-single-game-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 10px;
}

.be-single-game-team-name {
    font-size: 24px;
    font-weight: 700;
}

.be-single-game-score {
    font-size: 48px;
    font-weight: 700;
    margin-top: 8px;
}

.be-single-game-score-win {
    color: #10b981;
}

.be-single-game-vs {
    font-size: 32px;
    font-weight: 300;
}

.be-single-game-at {
    opacity: 0.7;
}

.be-single-game-status {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
}

.be-single-game-status-final {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.be-single-game-status-upcoming {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.be-single-game-details {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.be-single-game-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.be-single-game-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.be-single-game-info-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.be-single-game-info-value {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.be-single-game-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.be-single-game-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.be-single-game-btn-tickets {
    background: #3b82f6;
    color: #fff;
}

.be-single-game-btn-tickets:hover {
    background: #2563eb;
    color: #fff;
}

.be-single-game-btn-video {
    background: #ef4444;
    color: #fff;
}

.be-single-game-btn-video:hover {
    background: #dc2626;
    color: #fff;
}

.be-single-game-excerpt {
    background: #f9fafb;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
}

.be-single-game-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
}

.be-single-game-boxscore {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.be-boxscore-wrapper {
    overflow-x: auto;
}

.be-boxscore-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.be-boxscore-table th {
    background: #f3f4f6;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
}

.be-boxscore-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
}

.be-boxscore-table tbody tr:hover {
    background: #f9fafb;
}

.be-boxscore-player {
    font-weight: 600;
}

.be-single-game-content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    line-height: 1.8;
}

/* ==========================================================================
   Single Player Template
   ========================================================================== */

.be-single-player-container {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0;
}

.be-single-player-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    margin-bottom: -100px;
}

.be-single-player-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.be-single-player-profile {
    position: relative;
    display: flex;
    gap: 40px;
    padding: 40px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 0 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .be-single-player-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.be-single-player-photo {
    flex-shrink: 0;
}

.be-single-player-photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.be-single-player-info {
    flex: 1;
}

.be-single-player-number {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
}

.be-single-player-name {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.be-single-player-firstname {
    display: block;
    font-size: 24px;
    font-weight: 400;
    color: #6b7280;
}

.be-single-player-lastname {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: #111827;
}

.be-single-player-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.be-single-player-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.be-single-player-meta-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.be-single-player-meta-value {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.be-single-player-bio {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 20px;
}

.be-single-player-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
}

.be-single-player-bio-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.be-single-player-bio-content ul {
    list-style: none;
    padding: 0;
}

.be-single-player-bio-content li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.be-single-player-bio-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
}

.be-single-player-stats {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 20px;
}

.be-single-player-subsection-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 30px 0 20px 0;
}

.be-single-player-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.be-single-player-stat-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.be-single-player-stat-card-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.be-single-player-stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.be-single-player-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.be-single-player-stat-card-highlight .be-single-player-stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.be-single-player-shooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.be-single-player-shooting-stat {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.be-single-player-shooting-label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.be-single-player-shooting-value {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.be-single-player-shooting-detail {
    font-size: 14px;
    color: #6b7280;
}

.be-single-player-totals-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.be-single-player-totals-table th {
    background: #f3f4f6;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
}

.be-single-player-totals-table td {
    padding: 16px 8px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-weight: 600;
}

.be-single-player-content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 20px;
    line-height: 1.8;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.be-no-results {
    padding: 40px;
    text-align: center;
    font-size: 16px;
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 30px 0;
}

