/* SEO and Performance Enhancements */

/* Structured data styling improvements */

/* Schema.org Person microdata styling */
.user-profile-card {
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.user-profile-card .username {
    font-size: 24px;
    font-weight: bold;
    color: #f0f6fc;
    margin-bottom: 10px;
}

.user-profile-card .user-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.user-profile-card .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: #161b22;
    border-radius: 6px;
    min-width: 80px;
}

.user-profile-card .stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #58a6ff;
}

.user-profile-card .stat-label {
    font-size: 12px;
    color: #8b949e;
    text-transform: uppercase;
}

/* Challenge schema styling */
.challenge-schema {
    background: #0d1117;
    border-left: 3px solid #f85149;
    padding: 15px;
    margin: 15px 0;
}

.challenge-difficulty {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.challenge-difficulty.beginner { background: #238636; color: white; }
.challenge-difficulty.easy { background: #1f6feb; color: white; }
.challenge-difficulty.medium { background: #fb8500; color: white; }
.challenge-difficulty.hard { background: #f85149; color: white; }
.challenge-difficulty.expert { background: #8957e5; color: white; }

/* SEO-friendly content structure */
.content-section {
    margin: 30px 0;
}

.content-section h2 {
    color: #f0f6fc;
    border-bottom: 1px solid #30363d;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.content-section h3 {
    color: #58a6ff;
    margin: 20px 0 15px 0;
}

/* Rich snippets styling */
.news-article {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
}

.news-article .article-meta {
    color: #8b949e;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-article .article-title {
    color: #f0f6fc;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-article .article-content {
    color: #e6edf3;
    line-height: 1.6;
}

/* Performance optimization styles */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Accessibility improvements for SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #0969da;
    color: white;
    padding: 8px;
    text-decoration: none;
    transition: top 0.3s;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Mobile-first responsive design for better SEO */
@media (max-width: 768px) {
    .user-profile-card .user-stats {
        justify-content: center;
    }
    
    .challenge-schema {
        padding: 10px;
        margin: 10px 0;
    }
}