/* Report Template Consolidated CSS
 * Combined from report.css and report-modern.css
 * Organized for better maintainability and performance
 */

/* ------------------------------
 * Variables and Utility Classes
 * ------------------------------ */

  }
*/

.hidden {
    display: none !important;
}

/* Season Fallback Notice */
.season-fallback-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin: 0.5rem 0 1rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.season-fallback-notice i {
    color: #856404;
}

/* ------------------------------
 * Page Header & Navigation
 * ------------------------------ */

/* Header */

*/

*/
*/

/* Records */
.records {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.record-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.record-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Nav Links Container */

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

*/

/* Action Buttons */

*/

*/

*/

*/

*/

*/

/* ------------------------------
 * Section Headings
 * ------------------------------ */
.section-heading {
    display: flex;
    align-items: center;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* ------------------------------
 * Team Selection Form
 * ------------------------------ */
.team-selection-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    width: 100%;
}

.input-group-text {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 6px 0 0 6px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
}

.form-control {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 0 6px 6px 0;
    padding: 0.5rem;
    background-color: var(--input-bg-color);
    color: var(--text-primary);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ------------------------------
 * Schedule Section
 * ------------------------------ */
.schedule-section {
    margin-bottom: 2.5rem;
}

/* Schedule Container */
.schedule-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    background-color: #F8F9FA; /* Primary Background */
    border-radius: 8px;
}

/* Schedule Card */
.schedule-card {
    background-color: #FFFFFF; /* Secondary Background */
    border: 1px solid #DEE2E6; /* Border Color */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.schedule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.card-header {
    background-color: #FFFFFF;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #DEE2E6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Info Bubble Wrapper */
.info-bubble-wrapper {
    position: relative;
    display: inline-block;
}

/* Info Bubble Toggle Button */
.info-bubble-toggle {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(222, 226, 230, 0.5);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.info-bubble-toggle:hover {
    background: #ffffff;
    border-color: #10B981;
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.info-bubble-toggle i {
    color: #6C757D;
    font-size: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-bubble-toggle:hover i {
    color: #10B981;
}

.info-bubble-toggle.active {
    background: #10B981;
    border-color: #10B981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.info-bubble-toggle.active i {
    color: #ffffff;
}

/* Info Bubble Popup */
.info-bubble-popup {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(222, 226, 230, 0.8);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    font-size: 0.875rem;
}

.info-bubble-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 12px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(222, 226, 230, 0.8);
    border-top: 1px solid rgba(222, 226, 230, 0.8);
    transform: rotate(45deg);
}

.info-bubble-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.info-bubble-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #F8F9FA;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.info-bubble-close:hover {
    background: #DC3545;
    transform: scale(1.1);
}

.info-bubble-close i {
    color: #6C757D;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.info-bubble-close:hover i {
    color: #ffffff;
}

.info-bubble-content {
    padding: 16px;
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-bubble-content .betting-section,
.info-bubble-content .score-details-section {
    background: rgba(248, 249, 250, 0.6);
    border: 1px solid rgba(222, 226, 230, 0.6);
    border-radius: 10px;
    padding: 12px;
}

/* Smaller text in popup */
.info-bubble-content .betting-provider {
    font-size: 0.8rem;
}

.info-bubble-content .line-label {
    font-size: 0.7rem;
}

.info-bubble-content .line-value {
    font-size: 0.875rem;
}

.info-bubble-content .score-row {
    font-size: 0.8rem;
}

/* Smooth scrollbar for popup */
.info-bubble-content::-webkit-scrollbar {
    width: 6px;
}

.info-bubble-content::-webkit-scrollbar-track {
    background: #F8F9FA;
    border-radius: 3px;
}

.info-bubble-content::-webkit-scrollbar-thumb {
    background: #CED4DA;
    border-radius: 3px;
}

.info-bubble-content::-webkit-scrollbar-thumb:hover {
    background: #ADB5BD;
}

.game-week {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6C757D; /* Text Secondary */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Content */
.card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-grow: 1;
}

/* Teams Section */
.teams-section {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 1rem;
    text-align: center;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.schedule-team-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.schedule-team-logo:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.team-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.team-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529; /* Text Primary */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-record {
    font-size: 0.85rem;
    color: #6C757D; /* Text Secondary */
}

.vs-divider {
    font-weight: 700;
    color: #CED4DA; /* Accent Subtle */
    font-size: 1rem;
    margin: 0 1rem;
    align-self: center;
}

/* Betting Section */
.betting-section {
    background-color: #F8F9FA;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #DEE2E6;
}

.betting-provider-select {
    margin-bottom: 1rem;
}

.betting-provider {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #DEE2E6;
    border-radius: 6px;
    background-color: #FFFFFF;
    color: #212529;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236C757D' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

  }
*/

.line-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
    text-align: center;
}

.line-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.line-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6C757D;
    text-transform: uppercase;
}

.line-value {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
}

/* Info Section */
.info-section {
    border-top: 1px solid #DEE2E6;
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #6C757D;
}

.final-score, .info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

*/

.final-score {
    font-weight: 600;
    color: #212529;
}

/* Score Details Section */
.score-details-section {
    background-color: #F8F9FA;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
}

.quarter-scores {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.score-row {
    display: flex;
    justify-content: space-between;
}

/* No Schedule Message */
.no-schedule {
    text-align: center;
    padding: 2rem;
    background-color: #FFFFFF;
    border: 1px dashed #DEE2E6;
    border-radius: 8px;
    color: #6C757D;
}

/* ------------------------------
 * Charts Section
 * ------------------------------ */

.chart-container {
    margin: 1rem 0;
}

.chart-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
}

/* ------------------------------
 * Button Styles
 * ------------------------------ */
.btn-info {
    box-shadow: 0 3px 5px rgba(23, 162, 184, 0.5);
}

.btn-success {
    box-shadow: 0 3px 5px rgba(40, 167, 69, 0.5);
}

/* ------------------------------
 * Dark Mode Adjustments
 * ------------------------------ */

*/
*/

*/
*/

/* ------------------------------
 * Responsive Adjustments
 * ------------------------------ */
@media (max-width: 768px) {

    

*/
    

    

*/
    

}

@media (max-width: 576px) {
    .chart-container {
        margin: 0.5rem 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .chart-wrapper {
        margin-bottom: 1rem;
        padding: 0;
        min-width: 300px;
    }

    .col-md-6 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .schedule-container {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .line-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .line-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
        background: var(--bg-primary);
        border-radius: 6px;
    }

    .line-label {
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .line-value {
        font-size: 0.9rem;
        text-align: right;
    }

    .team-text {
        font-size: 0.9rem;
        white-space: normal;
        word-break: break-word;
    }

    .team-record {
        font-size: 0.8rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .team-logo {
        --logo-size: 60px;
    }

    .schedule-team-logo {
        width: 60px;
        height: 60px;
    }

    .card-content {
        padding: 0.75rem;
    }

    .score-row {
        font-size: 0.9em;
        white-space: nowrap;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-link {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .schedule-container {
        grid-template-columns: 1fr;
    }
    
    .line-label {
        min-width: 2rem;
        font-size: 0.7em;
    }
    
    .team-logo {
        --logo-size: 32px;
    }
    
    .schedule-team-logo {
        width: 60px;
        height: 60px;
        padding: 6px;
    }
    
    .team-text {
        font-size: 0.7em;
    }
    
    .team-record {
        font-size: 0.65em;
    }
    
    .vs-divider {
        font-size: 0.6em;
        padding: 0 0.15rem;
    }
    
    /* Make moneyline values more compact */
    .line-item .line-value {
        word-break: break-word;
    }
}
