/* NFL Head-to-Head Comparison Styles */

.head-to-head-widget {
    background: linear-gradient(135deg, rgba(55, 0, 60, 0.1) 0%, rgba(0, 255, 135, 0.05) 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(55, 0, 60, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.head-to-head-header {
    text-align: center;
    margin-bottom: 20px;
}

.head-to-head-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #37003c;
    margin-bottom: 5px;
}

.head-to-head-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.team-comparison {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
}

.team-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(55, 0, 60, 0.1);
    transition: all 0.3s ease;
}

.team-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.team-info.home-team {
    justify-content: flex-end;
    text-align: right;
}

.team-info.away-team {
    justify-content: flex-start;
    text-align: left;
}

.team-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(55, 0, 60, 0.2);
}

.home-team .team-logo {
    margin-left: 12px;
}

.away-team .team-logo {
    margin-right: 12px;
}

.team-details {
    flex: 1;
}

.team-name {
    font-size: 1rem;
    font-weight: 600;
    color: #37003c;
    margin-bottom: 2px;
}

.team-abbreviation {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #37003c;
    background: linear-gradient(135deg, #37003c, #00ff87);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-comparison {
    margin-top: 20px;
}

/* NFL Win Percentages - Using EPL Layout Style */
.win-percentages {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 15px;
}

.percentage-item {
    text-align: center;
    flex: 1;
}

.percentage-label {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 2px;
}

.percentage-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #495057;
}

/* NFL Team Colors */
.percentage-item.home-win .percentage-value {
    color: #1565c0;
}

.percentage-item.away-win .percentage-value {
    color: #6a1b9a;
}

.stats-comparison-simple {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(55, 0, 60, 0.1);
}

.team-records {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 20px;
    align-items: center;
}

.away-record, .home-record {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, rgba(55, 0, 60, 0.05) 0%, rgba(0, 255, 135, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(55, 0, 60, 0.1);
    transition: all 0.3s ease;
}

.away-record:hover, .home-record:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.record-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.record-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #37003c;
    margin-bottom: 8px;
}

.win-percentage {
    font-size: 1rem;
    color: #00ff87;
    font-weight: 600;
}

.vs-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #37003c;
    background: linear-gradient(135deg, #37003c, #00ff87);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-meetings {
    margin-top: 15px;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px dashed rgba(55, 0, 60, 0.2);
}

.meetings-title {
    font-size: 0.9rem;
    color: #37003c;
    font-weight: 600;
    margin-bottom: 8px;
}

.meetings-placeholder {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

.insights-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(55, 0, 60, 0.1);
}

.insights-title {
    font-size: 1rem;
    font-weight: 600;
    color: #37003c;
    margin-bottom: 15px;
    text-align: center;
}

.insight-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.insight-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.insight-item.home-advantage {
    border-left-color: #37003c;
}

.insight-item.away-advantage {
    border-left-color: #00ff87;
}

.insight-item.neutral {
    border-left-color: #999;
}

.insight-icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

.insight-text {
    flex: 1;
}

.insight-category {
    font-weight: 600;
    color: #37003c;
    font-size: 0.9rem;
}

.insight-description {
    color: #666;
    font-size: 0.85rem;
    margin-top: 2px;
}

.advantage-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.advantage-significant {
    background: #ff6b6b;
    color: white;
}

.advantage-slight {
    background: #ffa726;
    color: white;
}

.no-data-message {
    text-align: center;
    padding: 30px;
    color: #666;
}

.no-data-icon {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 10px;
}

.loading-widget {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(55, 0, 60, 0.1);
    border-top: 3px solid #37003c;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .team-comparison {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .vs-divider {
        order: -1;
        margin: 10px 0;
    }
    
    .team-info {
        justify-content: center !important;
        text-align: center !important;
    }
    
    .team-info .team-logo {
        margin: 0 8px !important;
    }
    
    .team-records {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vs-simple {
        order: -1;
        margin: 10px 0;
        font-size: 1rem;
    }
    
    .away-record, .home-record {
        padding: 12px;
    }
    
    .record-value {
        font-size: 1.2rem;
    }
    
    .win-percentage {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .head-to-head-widget {
        padding: 15px;
        margin: 15px 0;
    }
    
    .team-name {
        font-size: 0.9rem;
    }
    
    .team-abbreviation {
        font-size: 0.8rem;
    }
    
    .team-logo {
        width: 35px;
        height: 35px;
    }
}