/* GSoC Report Specific Styles */

/* Report Header */
.report-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.report-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.8;
}

.report-header .header-content {
    position: relative;
    z-index: 1;
}

.report-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Report Meta Information */
.report-meta {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.meta-item {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.meta-item .label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.meta-item .value {
    font-weight: 600;
    font-size: 1rem;
}

/* Report Main Content */
.report-main {
    background: #f8fafc;
    padding: 4rem 0;
}

.report-section {
    margin-bottom: 4rem;
}

.report-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.report-section h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Content Cards */
.content-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.content-card p:last-child {
    margin-bottom: 0;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.highlight-card h4 {
    color: #667eea;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.highlight-card p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

/* Objectives List */
.objectives-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.objective-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.objective-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.objective-item h4 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.objective-item p {
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

/* Achievement Categories */
.achievement-category {
    margin-bottom: 3rem;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.achievement-category h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 0.5rem;
}

.achievement-category > p {
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Pull Request Cards */
.pr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.pr-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pr-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pr-header h4 {
    color: #2d3748;
    font-weight: 600;
    flex: 1;
    min-width: 200px;
}

.pr-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pr-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    color: white;
}

.pr-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pr-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: #4a5568;
}

.pr-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Contributions Summary */
.contributions-summary {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contrib-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.stat-item .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-item .label {
    color: #718096;
    font-weight: 500;
}

/* Key Features */
.key-features h4 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-item h5 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

/* Challenges Grid */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.challenge-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.challenge-card h4 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.solution {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #48bb78;
    line-height: 1.6;
    color: #2d3748;
}

/* Impact Grid */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.impact-category {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.impact-category h3 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.impact-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.impact-category li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: #4a5568;
    border-bottom: 1px solid #f7fafc;
}

.impact-category li:last-child {
    border-bottom: none;
}

.impact-category li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

/* Repository References */
.repo-info {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.repo-link {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-align: center;
}

.repo-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.repo-link a:hover {
    color: #764ba2;
}

.pr-list h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
}

.pr-references {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
}

.pr-ref {
    display: block;
    padding: 1rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pr-ref:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #667eea;
}

/* Conclusion */
.conclusion-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.conclusion-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.conclusion-content p:last-child {
    margin-bottom: 0;
}

/* Acknowledgments */
.acknowledgments {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.acknowledgments p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.acknowledgments p:last-child {
    margin-bottom: 0;
}

/* Report Footer */
.report-footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.report-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design for Report */
@media (max-width: 768px) {
    .report-header h1 {
        font-size: 2rem;
    }
    
    .meta-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .report-meta {
        padding: 1.5rem;
    }
    
    .content-card {
        padding: 2rem;
    }
    
    .achievement-category {
        padding: 2rem;
    }
    
    .pr-grid {
        grid-template-columns: 1fr;
    }
    
    .pr-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .contrib-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pr-references {
        grid-template-columns: 1fr;
    }
    
    .report-footer .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .report-header {
        padding: 2rem 0;
    }
    
    .report-header h1 {
        font-size: 1.75rem;
    }
    
    .report-main {
        padding: 3rem 0;
    }
    
    .report-section {
        margin-bottom: 3rem;
    }
    
    .report-section h2 {
        font-size: 1.75rem;
    }
    
    .contrib-stats {
        grid-template-columns: 1fr;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .objectives-list {
        grid-template-columns: 1fr;
    }
}