/* Reset / Base styles */ 
* {
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    background: linear-gradient(150deg, #8c99d3 0%, #764ba2 100%); 
    min-height: 100vh; 
    padding: 50px;
}

/* Header */ 
header {
    text-align: center; 
    color: white; 
    margin-bottom: 50px; 
}

header h1 {
    font-size: 3rem; 
    margin-bottom: 10px; 
}

header p {
    font-size: 1.2rem; 
    opacity: 0.9; 
}

/* Main container */ 
main { 
    max-width: 800px;
    margin: 0 auto; 
}

/* Compare Section */
.compare-section {
    background: white; /* or: rgb(126, 115, 208); */
    padding: 30px;
    border-radius: 15px; 
    box-shadow: 0 20px 30px rgba(29, 0, 175, 0.421);
    margin-bottom: 30px;
}

.compare-section h2 {
    font-size: 2rem; 
    margin-bottom: 10px; 
    color: #000080;   
}

.info-text {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem; 
}

/* Input Boxes */ 
.player-inputs {
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    margin-bottom: 20px; 
}

.player-inputs input {
    padding: 15px; 
    font-size: 1rem; 
    border: 2px solid #e0e0e0; 
    border-radius: 50px; 
    transition: border-color 0.3s; 
}

/* Clicking into text box */ 
.player-inputs input:focus {
    outline: none; 
    border-color: black;
}

/* Button */ 
#compareBtn {
    width: 100%; 
    padding: 15px; 
    font-size: 1rem; 
    font-weight: bold; 
    color: white; 
    background: linear-gradient(150deg, #4b5dad 0%, #8864ae 100%);
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: transform 0.2s, box-shadow 0.2s; 
}

#compareBtn:hover {
    transform: translate(-2px); 
    box-shadow: 0 15px 25px rgba(102, 126, 234, 0.4);
}

/* Clicking into box */
#compareBtn:active {
    transform: translateY(0); 
}


/* Results Section */ 
.results-section {
    background: white; 
    padding: 30px; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden until results are needed */
}

.results-section.show {
    display: block; 
}

/* Results Styling */ 
.recommended {
    background: radial-gradient(circle, #ff9a9e, #fad0c4);
    color: white; 
    padding: 25px; 
    border-radius: 10px; 
    text-align: center; 
    margin-bottom: 30px; 
}

.recommendation h3 {
    font-size: 1.8rem; 
    margin-bottom: 10px; 
}

.reason {
    font-size: 1.1rem; 
    opacity: 0.95; 
    margin: 0; 
}

/* Player Cards */ 
.comparison-cards {
    display: grid; 
    grid-template-columns: auto; /* might change */
    gap: 20px; 
}

.player-card {
    background: #f8f9fa; 
    border: 2px solid #e0e0e0; 
    border-radius: 10px; 
    padding: 20px; 
    transition: transform 0.2s, box-shadow 0.2s; 
}

.player-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); 
}

.player-card.recommended {
    border-color: #667eea; 
    background: radial-gradient(circle, #9aaeff, #dac4fa);
}

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

.player-header h4 {
    font-size: 1.4rem; 
    color: #333; 
    margin: 0; 
}

.badge {
    background: #4caf50; 
    color: white; 
    padding: 5px 12px; 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: bold; 
}

.badge.sit {
    background: #9e9e9e; 
}

.player-info p {
    margin: 8px 0; 
    color: #555; 
}

.data-status {
    font-size: 0.85rem; 
    color: #666; 
    font-size: italic; 
    margin-top: 10px; 
}

.weekly-points {
    margin-top: 15px; 
    padding-top: 15px; 
    border-top: 1px solid #e0e0e0; 
}

.weekly-points p {
    margin: 5px 0; 
    color: #555; 
}

/* Reset Button - hidden by default */ 
.reset-btn {
    width: 100%; 
    padding: 15px; 
    font-size: 1.1rem; 
    font-weight: bold; 
    color: red; 
    background: white; 
    border: 2px solid red; 
    border-radius: 8px; 
    cursor: pointer;
    transition: all 0.2s; 
    margin-top: 15px; 
    display: none;  /* Hidden by default */ 
}

.reset-btn.show {
    display: block; /* show when results appear */ 
}

.reset-btn:hover {
    background: red; 
    color: white; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3); 
}

.reset-btn:active {
    transform: translateY(0); 
}


/* Mobile View */
@media (max-width: 650px) {
    .header {
        text-align: center;
        padding-top: 20px;
        margin-bottom: 20px; 
    }

    .header h1 {
        font-size: 1.5rem;
        margin-bottom: 4px; 
        font-weight: 700; 
        display: flex; 
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .header p {
        font-size: 0.9rem;
        margin-top: 0;
        opacity: 0.9;
        font-weight: 400; 
        max-width: 80%; 
        margin-left: auto;
        margin-right: auto;
    }
    
    .compare-section {
        padding: 10px 10px 20px 10px;
        min-height: 300px;
        display: flex;
        flex-direction: column;
    }

    .player-inputs {
        display: flex; 
        flex-direction: column;
        gap: 12px; 
        width: 100%;
    }

    .player-inputs input {
        width: 100%;
        box-sizing: border-box;
        min-height: 50px; 
        padding: 0 16px;   
        font-size: 16px;     
        border-radius: 8px;   
        border: 1px solid #ccc;
    }

    .player-inputs input::placeholder {
        color: #555; 
        opacity: 1; 
    }
}