.grammar-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.category-section {
    margin-bottom: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.category-header {
    background: #ff9800;
    color: white;
    padding: 1rem;
    font-size: 1.2rem;
}

.grammar-list {
    padding: 1rem;
}

.grammar-card {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.pattern-info {
    padding: 1rem;
    background: #fff3e0;
}

.pattern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.pattern {
    font-size: 1.5rem;
    color: #e65100;
}

.level-tag {
    background: #ff9800;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.meaning {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.explanation {
    color: #666;
    font-size: 0.9rem;
}

.examples {
    padding: 1rem;
    background: white;
}

.example {
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.example:hover {
    background: #f5f5f5;
}

.sentence {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.example-meaning {
    color: #666;
}

@media (max-width: 768px) {
    .grammar-container {
        padding: 1rem;
    }

    .pattern-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
} 