.readme-section {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    position: relative;
}

.readme-section:focus-within {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.readme-section.instructions {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    border-color: #4a7c59;
}

.readme-section.metadata {
    background: linear-gradient(135deg, #fdf4e3 0%, #fff8f0 100%);
    border-color: #d4a574;
}

.readme-section.warnings {
    background: linear-gradient(135deg, #ffeaea 0%, #fff5f5 100%);
    border-color: #e74c3c;
}

.section-label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: white;
    padding: 0 8px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #333;
}

.readme-section:hover .section-label,
.readme-section:focus-within .section-label {
    color: #111;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.meta-comment {
    font-style: italic;
    color: #333;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(255,255,255,0.7);
    border-left: 3px solid #ccc;
}

.recursive-note {
    background: #f8f9fa;
    border: 2px dashed #6c757d;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.recursive-note::before {
    content: "🔄 RECURSIVE NOTICE: ";
    font-weight: bold;
    color: #333;
}

.recursive-note {
    color: #222;
}

.self-reference {
    background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    color: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .readme-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    .section-label {
        position: relative;
        top: 0;
        left: 0;
        background: transparent;
        display: block;
        margin-bottom: 0.5rem;
    }
}
