/* COMPONENTS - Specific UI elements like analysis boxes, showcases */

/* MODERN SCHOLARSHIP BOX - Updated to match Mary Beard style */
.scholarship-box {
    margin: 2rem 0;
    background: white;
    border: 1px solid #e9ecef;
    border-left: 4px solid #e83e8c;
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.scholarship-box::before {
    content: "📚";
    font-size: 1.5rem;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    opacity: 0.6;
}

.scholarship-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e83e8c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.scholarship-content {
    line-height: 1.6;
    color: #333;
}

.scholarship-content strong {
    color: #e83e8c;
    font-weight: 600;
}

.scholarship-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.scholar-profile {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #e9ecef;
}

.scholar-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e83e8c;
    margin-right: 1rem;
    flex-shrink: 0;
}

.scholar-image-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e83e8c, #d91a72);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-right: 1rem;
    flex-shrink: 0;
    border: 2px solid #e83e8c;
}

.scholar-info {
    flex: 1;
}

.scholar-name {
    font-weight: 600;
    color: #e83e8c;
    margin-bottom: 0.25rem;
}

.scholar-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.evidence-section, .challenge-section {
    background: #f8f9fa;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.evidence-section h4 {
    color: #28a745;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.challenge-section h4 {
    color: #dc3545;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.evidence-section ul, .challenge-section ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.evidence-section li, .challenge-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.assessment-prompt {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    border-left: 4px solid #ffc107;
}

.assessment-prompt strong {
    color: #856404;
}

/* CONSEQUENCE ANALYSIS */
.consequence-analysis {
    margin: 2rem 0;
    background: white;
    border: 1px solid #e9ecef;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.consequence-analysis::before {
    content: "⚠️";
    font-size: 1.5rem;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    opacity: 0.6;
}

.consequence-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.consequence-content {
    line-height: 1.6;
    color: #333;
}

.consequence-content strong {
    color: #856404;
    font-weight: 600;
}

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

.consequence-item {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
}

.consequence-item h4 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.consequence-item p {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* DEATH SCENE RECREATION */
.death-scene {
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid #dc3545;
}

.death-scene-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.death-scene-content {
    padding: 2rem;
}

.scene-description {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin: 1rem 0;
    font-style: italic;
}

.casualty-count {
    background: #fff5f5;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin: 1.5rem 0;
}

.casualty-number {
    font-size: 2rem;
    font-weight: 700;
    color: #dc3545;
    display: block;
    margin-bottom: 0.5rem;
}

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

/* POLITICAL IMPACT CARDS */
.impact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.impact-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.impact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #dc3545;
}

.impact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.impact-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.impact-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ASSESSMENT PROMPT */
.assessment-prompt {
    background: #e7f3ff;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.assessment-prompt::before {
    content: "📝";
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.assessment-prompt h4 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.assessment-prompt p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.assessment-prompt strong {
    color: #007bff;
}

/* RESPONSIVE FOR COMPONENTS */
@media (max-width: 768px) {
    .consequence-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-cards {
        grid-template-columns: 1fr;
    }
}

/* RIVALRY SHOWCASE - For Marius vs Sulla section */
.rivalry-showcase {
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid #dc3545;
}

.rivalry-showcase .showcase-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.rivalry-content {
    padding: 2rem;
}

.rival-profiles {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.rival-profile {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    text-align: center;
}

.rival-profile.marius {
    border-color: #007bff;
}

.rival-profile.sulla {
    border-color: #6f42c1;
}

.rival-portrait {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    display: block;
    border: 3px solid #dc3545;
}

.rival-portrait-fallback {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc3545, #c82333);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem auto;
    border: 3px solid #dc3545;
}

.rival-profile h4 {
    color: #dc3545;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.rival-profile p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.rival-profile p strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.versus-symbol {
    font-size: 2rem;
    font-weight: 700;
    color: #dc3545;
    text-align: center;
    background: white;
    border: 3px solid #dc3545;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.conflict-progression {
    border-top: 2px solid #e9ecef;
    padding-top: 2rem;
}

.conflict-progression h4 {
    color: #dc3545;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.conflict-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.conflict-stage {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.conflict-stage:hover {
    background: #e9ecef;
    border-color: #dc3545;
    transform: translateY(-2px);
}

.conflict-stage.active {
    background: #fff3cd;
    border-color: #ffc107;
}

.stage-title {
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.stage-description {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* RESPONSIVE FOR RIVALRY SHOWCASE */
@media (max-width: 768px) {
    .rival-profiles {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .versus-symbol {
        order: 2;
        margin: 1rem auto;
    }
    
    .rival-profile.marius {
        order: 1;
    }
    
    .rival-profile.sulla {
        order: 3;
    }
    
    .conflict-stages {
        grid-template-columns: 1fr;
    }
}
