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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 25px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 4px;
    width: 10%;
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: 600;
    color: #34495e;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Case Card */
.case-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.case-header {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.case-type {
    background: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.case-context {
    background: #95a5a6;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.case-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2c3e50;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #3498db;
}

/* Decision Buttons */
.decision-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.btn {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 15px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-icon {
    font-size: 2rem;
}

.btn-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.btn-subtitle {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.btn-publish:hover {
    border-color: #27ae60;
    background: #f8fff8;
}

.btn-correct:hover {
    border-color: #f39c12;
    background: #fffbf0;
}

.btn-block:hover {
    border-color: #e74c3c;
    background: #fff5f5;
}

/* Feedback Section */
.feedback-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.feedback-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.feedback-icon.correct {
    background: #27ae60;
}

.feedback-icon.incorrect {
    background: #e74c3c;
}

.feedback-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.feedback-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feedback-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.feedback-item p {
    color: #34495e;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.feedback-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tag {
    background: #e8f4fd;
    color: #2980b9;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-next {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Results Section */
.results-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    animation: slideIn 0.5s ease;
}

.results-header {
    margin-bottom: 30px;
}

.results-header h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.score-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
}

.score-number {
    font-size: 4rem;
    font-weight: 700;
    color: #27ae60;
}

.score-total {
    font-size: 2rem;
    color: #7f8c8d;
}

.score-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.score-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #3498db;
}

.score-item.correct {
    border-left-color: #27ae60;
}

.score-item.incorrect {
    border-left-color: #e74c3c;
}

.score-item-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.score-item-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-transform: uppercase;
    font-weight: 600;
}

.final-message {
    text-align: left;
    margin-bottom: 30px;
}

.final-message h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    font-style: italic;
}

.final-message p {
    color: #34495e;
    line-height: 1.7;
    margin-bottom: 25px;
}

.key-learnings h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.key-learnings ul {
    list-style: none;
    padding-left: 0;
}

.key-learnings li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #34495e;
}

.key-learnings li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.btn-restart {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .case-card, .feedback-section, .results-section {
        padding: 25px;
    }
    
    .decision-buttons {
        grid-template-columns: 1fr;
    }
    
    .progress-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .case-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .score-breakdown {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .case-content {
        font-size: 1rem;
        padding: 20px;
    }
    
    .btn {
        padding: 20px 15px;
    }
    
    .btn-text {
        font-size: 1.1rem;
    }
}