/* Additional styles for AI Transfers page */

.shortcut-buttons {
    margin-bottom: 25px;
}

.ai-suggestions {
    background: linear-gradient(135deg, #37003c 0%, #04f5ff 5%, white 5%);
    border-left: 5px solid #00ff87;
}

.ai-suggestions h2 {
    color: #37003c;
    border-color: #00ff87;
}

.player-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.player-card:hover {
    border-color: #00ff87;
    box-shadow: 0 5px 15px rgba(0, 255, 135, 0.3);
    transform: translateY(-2px);
}

.player-info {
    flex: 1;
    min-width: 200px;
}

.player-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #37003c;
    margin-bottom: 5px;
}

.player-team {
    color: #666;
    font-size: 0.9em;
}

.player-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.8em;
    color: #666;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.1em;
    font-weight: bold;
    color: #37003c;
}

.stat-value.good {
    color: #00cc6a;
}

.stat-value.bad {
    color: #ff4444;
}

.transfer-suggestion {
    background: linear-gradient(to right, #fff5f5 0%, #f0fff4 100%);
    border-left: 5px solid #00ff87;
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.transfer-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: #37003c;
}

.transfer-header > span {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.transfer-header .ai-badge {
    flex: 0 0 auto;
}

.transfer-header .transfer-arrow {
    flex: 0 0 auto;
}

.fixtures-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.fixtures-column h5 {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #37003c;
    font-weight: bold;
}

.fixtures-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fixture-item {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: bold;
    text-align: center;
}

.fixture-item.very-easy {
    background: #00b359;
    color: white;
}

.fixture-item.easy {
    background: #00ff87;
    color: #37003c;
}

.fixture-item.medium {
    background: #ffa500;
    color: white;
}

.fixture-item.hard {
    background: #ff4444;
    color: white;
}

.fixture-item.very-hard {
    background: #cc0000;
    color: white;
}

.no-fixtures {
    color: #999;
    font-style: italic;
    font-size: 0.85em;
}

/* FDR Legend */
.fdr-legend {
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.fdr-legend h4 {
    color: #37003c;
    margin: 0 0 15px 0;
    font-size: 1.1em;
    text-align: center;
}

.fdr-legend-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.fdr-legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.fdr-legend-item span:last-child {
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
}

.fdr-box {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.fdr-box.very-easy {
    background: #00b359;
    color: white;
}

.fdr-box.easy {
    background: #00ff87;
    color: #37003c;
}

.fdr-box.medium {
    background: #ffa500;
    color: white;
}

.fdr-box.hard {
    background: #ff4444;
    color: white;
}

.fdr-box.very-hard {
    background: #cc0000;
    color: white;
}

.transfer-arrow {
    color: #00cc6a;
    font-size: 1.5em;
}

.transfer-reason {
    background: rgba(0, 255, 135, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 0.95em;
    line-height: 1.6;
}

.transfer-reason strong {
    color: #37003c;
}

.ai-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00ff87, #04f5ff);
    color: #37003c;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    margin-right: 10px;
}

.position-badge {
    display: inline-block;
    background: #37003c;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 10px;
}

.fixtures-preview {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.fixture {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: bold;
}

.fixture.easy {
    background: #00ff87;
    color: #37003c;
}

.fixture.medium {
    background: #ffa500;
    color: white;
}

.fixture.hard {
    background: #ff4444;
    color: white;
}

.no-suggestions {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1em;
}

.no-suggestions .icon {
    font-size: 3em;
    margin-bottom: 10px;
}

/* Position sections */
.position-section {
    margin: 20px 0;
}

.position-title {
    background: #37003c;
    color: #00cc6a;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.players-grid {
    display: grid;
    gap: 10px;
}

/* Top Players 2x2 Grid Layout */
#topPlayers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

#topPlayers .position-section {
    margin: 0;
}

#topPlayers .players-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#topPlayers .player-card {
    margin: 0;
    padding: 12px;
}

#topPlayers .player-name {
    font-size: 1em;
}

#topPlayers .player-stats {
    gap: 10px;
}

/* Methodology Section */
.methodology {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #00cc6a;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.methodology h2 {
    color: #00cc6a;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.methodology h2:hover {
    color: #04f5ff;
}

.methodology h2 .toggle-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.methodology h2 .toggle-icon.rotated {
    transform: rotate(-180deg);
}

.methodology-content {
    max-width: 1200px;
    margin: 0 auto;
}

.methodology-content .intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.formula-box {
    background: #0f3460;
    border: 2px solid #04f5ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.formula-box h3 {
    color: #04f5ff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.formula {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    color: #00ff87;
    background: rgba(0, 255, 135, 0.1);
    padding: 1rem;
    border-radius: 6px;
    font-weight: bold;
}

.formula-small {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #04f5ff;
    background: rgba(4, 245, 255, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    display: inline-block;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.component {
    background: rgba(55, 0, 60, 0.3);
    border: 1px solid #37003c;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.component:hover {
    transform: translateY(-5px);
    border-color: #00cc6a;
}

.component.highlight {
    background: rgba(0, 204, 106, 0.1);
    border: 2px solid #00cc6a;
}

.component h4 {
    color: #00cc6a;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.component p {
    color: #ccc;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.component ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.component ul li {
    color: #e0e0e0;
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.component ul li::before {
    content: '▸';
    color: #04f5ff;
    position: absolute;
    left: 0;
}

.multipliers {
    margin: 2rem 0;
}

.multipliers h3 {
    color: #04f5ff;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.multiplier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.multiplier {
    background: rgba(4, 245, 255, 0.05);
    border: 1px solid #04f5ff;
    border-radius: 8px;
    padding: 1.5rem;
}

.multiplier h4 {
    color: #04f5ff;
    margin-bottom: 1rem;
}

.multiplier ul {
    list-style: none;
    padding: 0;
}

.multiplier ul li {
    padding: 0.5rem 0;
    color: #e0e0e0;
}

.multiplier .easy {
    color: #00ff87;
    font-weight: bold;
}

.multiplier .medium {
    color: #ffd700;
    font-weight: bold;
}

.multiplier .hard {
    color: #ff4444;
    font-weight: bold;
}

.multiplier .small-text {
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.5rem;
}

.value-calculation {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin: 2rem 0;
}

.value-calculation h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.value-calculation p {
    color: #ccc;
    margin-top: 1rem;
}

.defensive-bonus {
    background: linear-gradient(135deg, rgba(0, 204, 106, 0.15), rgba(0, 204, 106, 0.05));
    border: 2px solid #00cc6a;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.defensive-bonus h3 {
    color: #00cc6a;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.defensive-bonus > p {
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.xcs-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.xcs-factor {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 204, 106, 0.3);
    border-radius: 6px;
    padding: 1.5rem;
}

.xcs-factor h4 {
    color: #00cc6a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.xcs-factor p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.xcs-factor ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xcs-factor ul li {
    color: #e0e0e0;
    padding: 0.5rem 0;
    line-height: 1.4;
}

.goalkeeper-bonus {
    text-align: center;
    color: #04f5ff !important;
    font-size: 1.05rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(4, 245, 255, 0.1);
    border-radius: 6px;
}

.why-opta {
    background: rgba(0, 204, 106, 0.05);
    border: 1px solid #00cc6a;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.why-opta h3 {
    color: #00cc6a;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.opta-reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.reason {
    text-align: center;
    padding: 1rem;
}

.reason strong {
    display: block;
    color: #00cc6a;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.reason p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
}

.transfer-criteria {
    background: rgba(4, 245, 255, 0.08);
    border-left: 4px solid #04f5ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.transfer-criteria h3 {
    color: #04f5ff;
    margin-bottom: 1rem;
}

.transfer-criteria p {
    color: #ccc;
    margin-bottom: 1rem;
}

.transfer-criteria ul {
    list-style: none;
    padding: 0;
}

.transfer-criteria ul li {
    color: #e0e0e0;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.transfer-criteria ul li::before {
    content: '✓';
    color: #00cc6a;
    position: absolute;
    left: 0;
    font-weight: bold;
}

@media (max-width: 768px) {
    #topPlayers {
        grid-template-columns: 1fr;
    }

    .transfer-header {
        font-size: 1.05em;
        gap: 8px;
    }

    .transfer-header .ai-badge {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 4px;
    }

    .transfer-header .position-badge {
        margin-left: 0;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .vs-column {
        display: none;
    }
    
    .comparison-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .vs-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .transfer-suggestion {
        padding: 14px;
    }

    .transfer-header {
        font-size: 1em;
    }
}

/* Player Comparison Styles */
.player-comparison {
    background: linear-gradient(135deg, #37003c 0%, #04f5ff 5%, white 5%);
    border-left: 5px solid #04f5ff;
    margin-top: 30px;
}

.player-comparison h2 {
    color: #37003c;
    border-color: #04f5ff;
}

.position-selector {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f0f4ff 0%, #fff5f0 100%);
    border-radius: 8px;
    border: 2px solid #04f5ff;
}

.position-selector label {
    display: block;
    font-weight: bold;
    color: #37003c;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.position-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.position-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    font-size: 1.05em;
}

.position-option:hover {
    border-color: #04f5ff;
    background: #f0fdff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 245, 255, 0.2);
}

.position-option input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #04f5ff;
}

.position-option span {
    font-weight: 600;
    color: #37003c;
}

.position-option:has(input:checked) {
    background: linear-gradient(135deg, #04f5ff, #00cc6a);
    border-color: #04f5ff;
    box-shadow: 0 4px 12px rgba(4, 245, 255, 0.4);
}

.position-option:has(input:checked) span {
    color: white;
    font-weight: 700;
}

.gameweeks-selector {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.gameweeks-selector label {
    display: block;
    font-weight: bold;
    color: #37003c;
    margin-bottom: 10px;
}

.gw-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.gw-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.gw-option:hover {
    border-color: #04f5ff;
    background: #f0fdff;
}

.gw-option input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #04f5ff;
}

.gw-option span {
    font-weight: 600;
    color: #37003c;
}

.gw-option:has(input:checked) {
    background: linear-gradient(135deg, #04f5ff15, #00cc6a15);
    border-color: #04f5ff;
    box-shadow: 0 2px 8px rgba(4, 245, 255, 0.2);
}

.comparison-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.player-select-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.player-select-group label {
    display: block;
    font-weight: bold;
    color: #37003c;
    margin-bottom: 5px;
}

.player-search {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 5px 5px 0 0;
    font-size: 0.95em;
    background: white;
    transition: all 0.3s ease;
    border-bottom: none;
}

.player-search:focus {
    outline: none;
    border-color: #04f5ff;
    box-shadow: 0 0 5px rgba(4, 245, 255, 0.3);
}

.player-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 0 0 5px 5px;
    font-size: 0.95em;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow-y: auto;
}

.player-select:focus {
    outline: none;
    border-color: #04f5ff;
    box-shadow: 0 0 5px rgba(4, 245, 255, 0.3);
}

.player-select option {
    padding: 8px;
}

.player-select optgroup {
    font-weight: bold;
    color: #37003c;
    background: #f5f5f5;
}

.vs-divider {
    font-size: 1.5em;
    font-weight: bold;
    color: #37003c;
    padding: 0 10px;
}

.compare-button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #04f5ff, #00cc6a);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compare-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(4, 245, 255, 0.4);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    margin-top: 20px;
}

.comparison-player {
    background: white;
    border: 3px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.comparison-player.winner {
    border-color: #00ff87;
    box-shadow: 0 0 20px rgba(0, 255, 135, 0.3);
}

.player-comparison-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.player-comparison-header .player-name {
    font-size: 1.4em;
    font-weight: bold;
    color: #37003c;
    margin-bottom: 5px;
}

.player-comparison-header .player-team {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 10px;
}

.comparison-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 5px;
}

.stat-row.highlight {
    background: linear-gradient(135deg, #04f5ff15, #00cc6a15);
    border-left: 3px solid #04f5ff;
}

.stat-row .stat-label {
    font-size: 0.9em;
    color: #666;
}

.stat-row .stat-value {
    font-weight: bold;
    color: #37003c;
    font-size: 1.05em;
}

.stat-row .xp-value {
    font-size: 1.3em;
    color: #00cc6a;
}

.vs-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.vs-badge {
    font-size: 2em;
    font-weight: bold;
    color: #37003c;
    background: linear-gradient(135deg, #04f5ff, #00cc6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.winner-badge {
    font-size: 1.2em;
    color: #00ff87;
    font-weight: bold;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.comparison-summary {
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.comparison-summary h3 {
    color: #37003c;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.summary-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.summary-content strong {
    color: #37003c;
}

.recent-history {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.recent-history h4 {
    color: #37003c;
    font-size: 1em;
    margin-bottom: 12px;
    text-align: center;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: grid;
    grid-template-columns: 50px 1fr 60px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 5px;
    font-size: 0.9em;
}

.history-gw {
    font-weight: bold;
    color: #666;
    font-size: 0.85em;
}

.history-opponent {
    color: #37003c;
    font-weight: 500;
}

.history-points {
    font-weight: bold;
    text-align: right;
    font-size: 1.05em;
}

.history-points.good {
    color: #00cc6a;
}

.history-points.ok {
    color: #ff9800;
}

.history-points.bad {
    color: #ff4444;
}

.upcoming-fixtures {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.upcoming-fixtures h4 {
    color: #37003c;
    font-size: 1em;
    margin-bottom: 12px;
    text-align: center;
}

.upcoming-fixtures .fixtures-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comparison-error {
    background: #fff5f5;
    border: 2px solid #ff4444;
    color: #cc0000;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

/* Chart Styles */
.chart-container {
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.chart-container:hover {
    border-color: #00cc6a;
    box-shadow: 0 6px 12px rgba(0, 204, 106, 0.2);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.chart-header h3 {
    margin: 0;
    color: #37003c;
    font-size: 1.3em;
}

.fullscreen-btn {
    background: linear-gradient(135deg, #00cc6a 0%, #04f5ff 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fullscreen-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 204, 106, 0.3);
}

.fullscreen-btn:active {
    transform: scale(0.95);
}

.chart-wrapper {
    position: relative;
    height: 400px;
    width: 100%;
    touch-action: pan-x pan-y;
}

.zoom-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.zoom-btn {
    background: #37003c;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: #00cc6a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 204, 106, 0.3);
}

.zoom-hint {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

/* Fullscreen mode styles */
.chart-container.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    z-index: 9999;
    background: #fff;
    padding: 30px;
    overflow: auto;
}

.chart-container.fullscreen-mode .chart-wrapper {
    height: calc(100vh - 200px);
}

.chart-container.fullscreen-mode .chart-header h3 {
    font-size: 2em;
}

.chart-container.fullscreen-mode .fullscreen-btn {
    font-size: 1.5em;
    padding: 12px 24px;
}

.chart-container.fullscreen-mode .zoom-controls {
    font-size: 1.2em;
}

.chart-container.fullscreen-mode .zoom-btn {
    font-size: 1.1em;
    padding: 12px 30px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .chart-wrapper {
        height: 350px;
    }
    
    .chart-header h3 {
        font-size: 1.1em;
    }
    
    .fullscreen-btn {
        padding: 6px 12px;
        font-size: 1em;
    }
    
    .zoom-hint {
        font-size: 0.8em;
    }
    
    .chart-container.fullscreen-mode {
        padding: 15px;
    }
    
    .chart-container.fullscreen-mode .chart-wrapper {
        height: calc(100vh - 180px);
    }
}

@media (max-width: 480px) {
    .chart-wrapper {
        height: 300px;
    }
    
    .zoom-controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .zoom-btn {
        width: 100%;
    }
    
    .zoom-hint {
        text-align: center;
    }
    
    .fixtures-comparison {
        padding: 12px;
    }
    
    .fixtures-column h5 {
        font-size: 0.95em;
    }
    
    .fixture-item {
        padding: 10px 16px;
        font-size: 0.95em;
    }

    .player-info,
    .filter-group,
    .player-select-group {
        min-width: 0;
    }

    .comparison-controls {
        gap: 10px;
    }
    
    .section-btn {
        width: 100%;
        padding: 14px 20px;
    }
}
