/* CSS COMPLETO PER RESULTS.HTML - results-style.css */

/* ===== BASE STYLES ===== */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 10px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
}

.container {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 900px;
    width: 100%;
}

/* ===== RESULTS HEADER ===== */
.results-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.results-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.results-subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

/* ===== SCORE SECTION ===== */
.score-section {
    background: linear-gradient(45deg, #ffd89b, #19547b);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.score-main {
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.score-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.score-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.breakdown-item {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.breakdown-value {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.breakdown-label {
    font-size: 0.9em;
    opacity: 0.9;
}

/* ===== DETAILED STATS ===== */
.detailed-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-detailed {
    background: linear-gradient(45deg, #f7fafc, #edf2f7);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    text-align: center;
}

.stat-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.stat-main-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 10px;
}

.stat-description {
    color: #718096;
    font-size: 0.9em;
    line-height: 1.4;
}

/* ===== GAME LOG SECTION ===== */
.game-log-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    border: 3px solid #e2e8f0;
}

.log-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 20px;
    text-align: center;
}

.log-entry {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.log-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.log-entry.correct {
    background: linear-gradient(45deg, #f0fff4, #e6fffa);
    border-color: #48bb78;
}

.log-entry.incorrect {
    background: linear-gradient(45deg, #fef5e7, #fed7d7);
    border-color: #f56565;
}

.entry-number {
    font-weight: bold;
    font-size: 1.2em;
    color: #4a5568;
}

.entry-note-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.entry-note-image {
    height: 70px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.entry-note-details {
    text-align: left;
}

.entry-note-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #2d3748;
}

.entry-note-label {
    font-size: 0.85em;
    color: #718096;
}

.entry-answer {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.8);
}

.entry-answer-value {
    font-weight: bold;
    font-size: 1.1em;
    color: #2d3748;
}

.entry-time {
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
}

.entry-time.fast { color: #48bb78; }
.entry-time.medium { color: #ed8936; }
.entry-time.slow { color: #e53e3e; }

.entry-status {
    font-size: 1.5em;
}

.correction-note {
    margin-left: 60px;
    padding: 12px;
    background: linear-gradient(45deg, #e6fffa, #f0fff4);
    border-left: 4px solid #38b2ac;
    border-radius: 0 8px 8px 0;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.correction-image {
    height: 50px;
    border-radius: 5px;
}

.correction-text {
    color: #38b2ac;
    font-weight: bold;
    font-size: 0.95em;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #48bb78, #38a169);
    color: white;
}

.btn-secondary {
    background: linear-gradient(45deg, #4299e1, #3182ce);
    color: white;
}

.btn-tertiary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ===== LEVEL BADGE ===== */
.level-badge {
    display: inline-block;
    background: rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* ===== EMPTY LEADERBOARD ===== */
.empty-leaderboard {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.empty-leaderboard h3 {
    color: #4a5568;
    margin-bottom: 15px;
}

.empty-leaderboard p {
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .results-title {
        font-size: 2em;
    }
    
    .score-main {
        font-size: 3em;
    }
    
    .log-entry {
        grid-template-columns: auto 1fr auto;
        gap: 10px;
    }
    
    .entry-time, .entry-status {
        grid-column: span 1;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .detailed-stats {
        grid-template-columns: 1fr;
    }
    
    .score-breakdown {
        grid-template-columns: 1fr;
    }
    
    .stat-detailed {
        padding: 20px;
    }
    
    .stat-main-value {
        font-size: 2em;
    }
    
    .stat-icon {
        font-size: 2.5em;
    }
    
    .correction-note {
        margin-left: 20px;
    }
    
    .entry-note-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .entry-note-details {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .results-header {
        padding: 20px;
    }
    
    .score-section {
        padding: 20px;
    }
    
    .game-log-section {
        padding: 20px;
    }
    
    .results-title {
        font-size: 1.8em;
    }
    
    .score-main {
        font-size: 2.5em;
    }
    
    .score-title {
        font-size: 1.5em;
    }
    
    .log-entry {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .entry-note-image {
        height: 50px;
    }
    
    .correction-note {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .container {
        box-shadow: none;
        border: 1px solid #ccc;
        max-width: 100%;
    }
    
    .action-buttons {
        display: none;
    }
    
    .results-header,
    .score-section {
        background: #f8f9fa !important;
        color: #333 !important;
        border: 1px solid #ddd;
    }
    
    .log-entry {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .detailed-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}