/* Nigeria's Digital Future: Interactive Roadmap - Styles */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    background-color: #f8f9fa;
}

header {
    background: linear-gradient(135deg, #008000, #006b00);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

section {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

section h2 {
    color: #008000;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    border-bottom: 3px solid #008000;
    padding-bottom: 0.5rem;
}

#introduction p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

/* Filter Buttons */
#challenge-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

#challenge-filters button {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

#challenge-filters button:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

#challenge-filters button.active {
    background-color: #008000;
    color: #fff;
    border-color: #008000;
    box-shadow: 0 4px 12px rgba(0, 128, 0, 0.3);
}

/* Card Layouts */
.challenge-card, .project-card {
    border: 2px solid #e9ecef;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
    position: relative;
}

.challenge-card:hover, .project-card:hover {
    border-color: #008000;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.challenge-card.highlighted, .project-card.highlighted {
    border-color: #008000;
    box-shadow: 0 0 20px rgba(0, 128, 0, 0.4);
    transform: translateY(-5px);
    background: linear-gradient(135deg, #f8fff8, #ffffff);
}

.challenge-card h3, .project-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #008000;
    font-size: 1.3rem;
    font-weight: 600;
}

.challenge-card p, .project-card p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.challenge-card strong, .project-card strong {
    color: #495057;
    font-weight: 600;
}

/* Project card specific styles */
.project-card .technologies {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #008000;
}

.view-details {
    background-color: #008000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.view-details:hover {
    background-color: #006b00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 0, 0.3);
}

/* Clear Selection Button */
#clear-selection {
    text-align: center;
    background: transparent;
    box-shadow: none;
    border: none;
}

#clear-highlights {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

#clear-highlights:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Category badges */
.category-badge {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 2px;
    font-weight: 500;
}

.category-badge.digital-literacy { background: #d1ecf1; color: #0c5460; }
.category-badge.infrastructure { background: #fff3cd; color: #856404; }
.category-badge.data-security { background: #f8d7da; color: #721c24; }
.category-badge.economic-dev { background: #d4edda; color: #155724; }
.category-badge.innovation { background: #e2e3e5; color: #383d41; }

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: 50px;
}

footer p {
    margin: 10px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    main {
        padding: 0 15px;
    }
    
    section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    #challenge-filters {
        flex-direction: column;
    }
    
    #challenge-filters button {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .challenge-card, .project-card {
        padding: 20px;
    }
    
    .challenge-card h3, .project-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 1rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 15px;
    }
    
    .challenge-card, .project-card {
        padding: 15px;
        margin-bottom: 15px;
    }
}

/* Loading and Animation States */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Accessibility Improvements */
button:focus, .challenge-card:focus, .project-card:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .challenge-card, .project-card {
        border-width: 3px;
    }
    
    .challenge-card.highlighted, .project-card.highlighted {
        border-width: 4px;
    }
}