@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
}

.graph-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header sekce */
.header-section {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.header-section h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #ff006e, #8338ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-section p {
    font-size: 1.2rem;
    color: #666;
    margin: 0 0 1rem 0;
}

.time-info {
    font-size: 0.95rem;
    color: #888;
    font-weight: 500;
}

/* Graf sekce */
.chart-section {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.chart-wrapper {
    position: relative;
    height: 400px;
}

/* Statistiky sekce */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

#average-score {
    color: #8338ec;
}

#most-common {
    font-size: 2rem;
}

/* Ovládací prvky */
.controls-section {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
}

.control-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease;
    min-width: 150px;
}

.control-group select:hover {
    border-color: #8338ec;
}

.control-group select:focus {
    outline: none;
    border-color: #8338ec;
}

.refresh-button {
    margin-left: auto;
    background: linear-gradient(135deg, #ff006e, #8338ec);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(131, 56, 236, 0.3);
}

.refresh-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 56, 236, 0.4);
}

.refresh-button svg {
    transition: transform 0.3s ease;
}

.refresh-button:hover svg {
    transform: rotate(180deg);
}

/* Responzivní design */
@media (max-width: 768px) {
    .graph-container {
        padding: 1rem;
    }
    
    .header-section {
        padding: 1.5rem;
    }
    
    .header-section h1 {
        font-size: 2rem;
    }
    
    .chart-wrapper {
        height: 300px;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .controls-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .refresh-button {
        margin-left: 0;
        margin-top: 1rem;
        justify-content: center;
    }
}
